Include string.h in sysdeps/unix/sysv/linux/fxstatat.c.
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
4
5         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
6
7         * posix/getconf-speclist.c: New file.
8         * posix/posix-envs.def: Likewise.
9         * posix/confstr.c (START_ENV_GROUP): New macro.
10         (END_ENV_GROUP): Likewise.
11         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
12         (KNOWN_PRESENT_ENV_STRING): Likewise.
13         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
14         (UNKNOWN_ENVIRONMENT): Likewise.
15         (confstr): Include posix-envs.def instead of handling
16         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
17         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
18         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
19         (END_ENV_GROUP): Likewise.
20         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
21         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
22         (UNKNOWN_ENVIRONMENT): Likewise.
23         (__sysconf): Include posix-envs.def instead of handling associated
24         cases directly here.
25         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
26         preprocessing getconf-speclist.c rather than running getconf or
27         generating empty file.
28
29 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
30
31         * scripts/check-local-headers.sh: Ignore 'mach' headers.
32
33 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
34
35         [BZ #14672]
36         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
37
38 2012-11-16  David S. Miller  <davem@davemloft.net>
39
40         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
41         smaller than LDBL_EPSILON/2.0L, just return xm1.
42
43 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
44
45         * elf/tst-array1.c (init): Set constructor priority to 1000.
46         (fini): Set destructor priority to 1000.
47         * elf/tst-array2dep.c: Likewise.
48
49 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
50
51         [BZ #11741]
52         * libio/fileops.c (_IO_new_file_write): Correctly return error.
53         (_IO_new_file_xsputn): Also return EOF if none of the input
54         data was written when overflow failed.
55         * libio/iopadn.c (_IO_padn): Likewise.
56         * libio/iowpadn.c (_IO_wpadn): Likewise.
57         * stdio-common/tst-put-error.c: Add copyright notice.
58         (do_test): Add case for printing padded string.
59         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
60         _IO_padn returned error.
61         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
62         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
63         return EOF.
64
65 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
66
67         * libio/libioP.h: Add comment note that the references to C++
68         bits are now obsolete.
69
70 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
71
72         * math/libm-test.inc (check_complex): Use asprintf.
73
74 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
75
76         * debug/pcprofiledump.c (print_version): Update copyright year.
77         * malloc/memusagestat.c (print_version): Likewise.
78
79 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
80
81         [BZ #14831]
82         * elf/Makefile (tests): Add tst-audit8.
83         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
84         ($(objpfx)tst-audit8.out): New target.
85         (tst-audit8-ENV): New variable.
86         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
87         audit if l_reloc_result is NULL.
88         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
89         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
90         * elf/tst-audit8.c: New file.
91
92 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
93
94         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
95         * misc/Makefile (CFLAGS-select.c): Define.
96         * posix/Makefile (CFLAGS-pause.c): Define.
97
98 2012-11-13  David S. Miller  <davem@davemloft.net>
99
100         * crypt/Makefile: Move test targets after toplevel Rules
101         inclusion.  Grab any necessary sysdep routines when linking.
102         * crypt/md5.c (md5_process_block): Remove define, we will always
103         name it __md5_process_block.
104         (md5_finish_ctx): Update md5_process_block call.
105         (md5_stream): Likewise.
106         (md5_process_bytes): Likewise.
107         (md5_process_block): Rename to __md5_process_block and move to ...
108         * crypt/md5-block.c: ... here.
109         * crypt/sha256.c (sha256_process_block): Move to ...
110         * crypt/sha256-block.c: ... here.
111         * crypt/sha512.c (sha512_process_block): Move to ...
112         * crypt/sha512-block.c: ... here.
113         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
114         path.
115         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
116         * sysdeps/sparc/sparc64/multiarch/Makefile
117         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
118         crypt subdir.
119         (localedef-aux): Add md5 crypto assembler when in locale subdir.
120         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
121         multiarch changes.
122         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
123         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
124         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
125         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
126         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
127         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
128         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
129         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
130         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
131         file.
132         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
133         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
134         file.
135         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
136
137 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
138
139         * timezone/tzselect.ksh: Update from tzcode git revision
140         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
141         * timezone/zdump.c: Likewise.
142         * timezone/zic.c: Likewise.
143         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
144         in TZVERSION setting, not $(PKGVERSION).
145         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
146         REPORT_BUGS_TO settings.
147
148         [BZ #14838]
149         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
150         macro.
151
152 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
153
154         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
155         detection to immediately after _FP_ROUND().
156         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
157         bits are 0.
158
159 2012-11-11  David S. Miller  <davem@davemloft.net>
160
161         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
162         inttypes.h
163         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
164         __close rather than their public counterparts.
165
166 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
167
168         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
169         file.
170         [UNIX98] (sem_timedwait): Do not expect.
171         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
172         [XPG4 || UNIX98] (sockatmark): Do not expect.
173         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
174         (clock_getcpuclockid): Do not expect.
175         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
176         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
177         Do not expect.
178         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
179         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
180         [UNIX98] (vwscanf): Likewise.
181         [UNIX98] (vswscanf): Likewise.
182
183 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
184
185         * timezone/version.h: Remove file.
186         * timezone/README: Do not refer to version.h.
187         * timezone/Makefile ($(objpfx)zic.o): New dependency on
188         $(objpfx)version.h.
189         ($(objpfx)zdump.o): Likewise.
190         ($(objpfx)version.h): New target.
191
192         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
193         2012i.
194         * timezone/README: Don't mention modification to tzselect.ksh.
195         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
196         work on unmodified tzselect.ksh.  Substitute version numbers in
197         tzselect.ksh.
198
199         * Makefile (format-me): Remove.
200         (INSTALL): Adjust indentation.  Use commands directly instead of
201         using $(format-me).
202
203         * aclocal.m4 (ACX_PKGVERSION): New macro.
204         (ACX_BUGURL): Likewise.
205         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
206         (PKGVERSION): New AC_DEFINE_UNQUOTED.
207         (REPORT_BUGS_TO): Likewise.
208         * configure: Regenerated.
209         * config.h.in (PKGVERSION): New macro.
210         (REPORT_BUGS_TO): Likewise.
211         * config.make.in (PKGVERSION): New variable.
212         (PKGVERSION_TEXI): Likewise.
213         (REPORT_BUGS_TO): Likewise.
214         (REPORT_BUGS_TEXI): Likewise.
215         * Makefile (format-me): Use -I$(common-objpfx)manual.
216         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
217         ($(common-objpfx)manual/%): New target.
218         (manual/%): Remove target.
219         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
220         (print_version): Use PKGVERSION.
221         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
222         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
223         and REPORT_BUGS_TO.
224         ($(objpfx)xtrace): Likewise.
225         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
226         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
227         (print_version): Use PKGVERSION.
228         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
229         (do_version): Use PKGVERSION.
230         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
231         REPORT_BUGS_TO.
232         (common-ldd-rewrite): Likewise.
233         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
234         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
235         (print_version): Use PKGVERSION.
236         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
237         * elf/pldd.c (argp_program_bug_address): Remove variable.
238         (more_help): New function.
239         (argp): Use more_help.
240         (print_version): Use PKGVERSION.
241         * elf/sln.c (main): Use PKGVERSION.
242         (usage): Use REPORT_BUGS_TO.
243         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
244         (top level): Use PKGVERSION.
245         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
246         (print_version): Use PKGVERSION.
247         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
248         (print_version): Use PKGVERSION.
249         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
250         (print_version): Use PKGVERSION.
251         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
252         (print_version): Use PKGVERSION.
253         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
254         (print_version): Use PKGVERSION.
255         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
256         (print_version): Use PKGVERSION.
257         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
258         and BUGURL.
259         ($(objpfx)memusage): Likewise.
260         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
261         (do_version): Use PKGVERSION.
262         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
263         (print_version): Use PKGVERSION.
264         * malloc/mtrace.pl ($PACKAGE): Remove variable.
265         ($PKGVERSION): New variable.
266         ($REPORT_BUGS_TO): Likewise.
267         (usage): Use $REPORT_BUGS_TO.
268         (top level): Use $PKGVERSION.
269         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
270         ($(objpfx)pkgvers.texi): New rule.
271         ($(objpfx)stamp-pkgvers): Likewise.
272         * manual/install.texi: Include pkgvers.texi.
273         (--with-pkgversion): Document new configure option.
274         (--with-bugurl): Likewise.
275         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
276         than necessarily for this particular distribution.  Use
277         REPORT_BUGS_TO for where to report bugs.
278         * INSTALL: Regenerated.
279         * manual/libc.texinfo: Include pkgvers.texi.
280         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
281         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
282         (print_version): Use PKGVERSION.
283         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
284         (print_version): Use PKGVERSION.
285         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
286         (print_version): Use PKGVERSION.
287         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
288         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
289         macro.
290         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
291         (print_version): Use PKGVERSION.
292         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
293         (print_version): Use PKGVERSION.
294         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
295         and PKGVERSION.
296
297         * timezone/checktab.awk: Update from tzcode 2012i.
298         * timezone/ialloc.c: Likewise.
299         * timezone/private.h: Likewise.
300         * timezone/scheck.c: Likewise.
301         * timezone/tzfile.h: Likewise.
302         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
303         (TZVERSION): Hardcode tzcode version number.
304         * timezone/zdump.c: Update from tzcode 2012i.
305         * timezone/zic.c: Likewise.
306         * timezone/version.h: New file.
307         * timezone/README: Describe version.h.  Update upstream location.
308
309         [BZ #14824]
310         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
311         (mktemp): Enable declaration.
312         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
313         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
314         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
315         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
316         Likewise.
317         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
318         Likewise.
319         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
320         Likewise.
321         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
322         Likewise.
323         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
324         Likewise.
325         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
326         Likewise.
327
328         [BZ #14821]
329         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
330         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
331         for copies of such integer values.
332         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
333         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
334
335 2012-11-09  Andreas Jaeger  <aj@suse.de>
336
337         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
338         definitions and declarations that are provided by
339         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
340
341 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
342
343         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
344         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
345         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
346         definition.
347
348 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
349
350         * elf/elf.h: Update comment before AArch64 relocations.
351
352 2012-11-07  David S. Miller  <davem@davemloft.net>
353
354         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
355         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
356         (__start_context): Declare.
357         (__makecontext_ret): Delete.
358         (__makecontext): Hook up __start_context instead of
359         __makecontext_ret.
360         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
361         (sysdep_routines): Add __start_context when in stdlib.
362
363 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
364
365         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
366         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
367         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
368         hardcoded "nm".
369         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
370         (READELF): New variable.  Use it instead of hardcoded "readelf".
371
372 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
373
374         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
375         * sysdeps/x86/Makefile: Here.
376         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
377         * sysdeps/x86/tst-xmmymm.sh: This.
378
379 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
380
381         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
382         expectations.
383         [UNIX98] (pthread_barrier_t): Do not expect.
384         [UNIX98] (pthread_barrierattr_t): Likewise.
385         [UNIX98] (pthread_spinlock_t): Likewise.
386         [UNIX98] (pthread_barrier_destroy): Likewise.
387         [UNIX98] (pthread_barrier_init): Likewise.
388         [UNIX98] (pthread_barrier_wait): Likewise.
389         [UNIX98] (pthread_barrierattr_destroy): Likewise.
390         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
391         [UNIX98] (pthread_barrierattr_init): Likewise.
392         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
393         [UNIX98] (pthread_getcpuclockid): Likewise.
394         [UNIX98] (pthread_mutex_timedlock): Likewise.
395         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
396         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
397         [UNIX98] (pthread_sigmask): Likewise.
398         [UNIX98] (pthread_spin_destroy): Likewise.
399         [UNIX98] (pthread_spin_init): Likewise.
400         [UNIX98] (pthread_spin_lock): Likewise.
401         [UNIX98] (pthread_spin_trylock): Likewise.
402         [UNIX98] (pthread_spin_unlock): Likewise.
403         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
404         Do not expect.
405         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
406         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
407         [XPG3 || XPG4] (pthread_cond_t): Likewise.
408         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
409         [XPG3 || XPG4] (pthread_key_t): Likewise.
410         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
411         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
412         [XPG3 || XPG4] (pthread_once_t): Likewise.
413         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
414         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
415         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
416         [XPG3 || XPG4] (pthread_t): Likewise.
417
418         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
419         not expect.
420         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
421
422         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
423         Change function return type to int.
424
425         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
426         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
427         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
428         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
429         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
430         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
431         [!POSIX] (posix_madvise): Likewise.
432         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
433         && !UNIX98].
434         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
435         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
436         (mode_t): Likewise.
437         (posix_mem_offset): Likewise.
438         (posix_typed_mem_get_info): Likewise.
439         (posix_typed_mem_open): Likewise.
440
441         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
442         Change condition to [XOPEN2K8].
443
444         * conform/conformtest.pl: Preprocess allow-header data with -x c
445         instead of from stdin.
446         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
447         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
448         [C99-based standards] (cerfc): Likewise.
449         [C99-based standards] (cexp2): Likewise.
450         [C99-based standards] (cexpm1): Likewise.
451         [C99-based standards] (clog10): Likewise.
452         [C99-based standards] (clog1p): Likewise.
453         [C99-based standards] (clog2): Likewise.
454         [C99-based standards] (clgamma): Likewise.
455         [C99-based standards] (ctgamma): Likewise.
456         [C99-based standards] (cerff): Likewise.
457         [C99-based standards] (cerfcf): Likewise.
458         [C99-based standards] (cexp2f): Likewise.
459         [C99-based standards] (cexpm1f): Likewise.
460         [C99-based standards] (clog10f): Likewise.
461         [C99-based standards] (clog1pf): Likewise.
462         [C99-based standards] (clog2f): Likewise.
463         [C99-based standards] (clgammaf): Likewise.
464         [C99-based standards] (ctgammaf): Likewise.
465         [C99-based standards] (cerfl): Likewise.
466         [C99-based standards] (cerfcl): Likewise.
467         [C99-based standards] (cexp2l): Likewise.
468         [C99-based standards] (cexpm1l): Likewise.
469         [C99-based standards] (clog10l): Likewise.
470         [C99-based standards] (clog1pl): Likewise.
471         [C99-based standards] (clog2l): Likewise.
472         [C99-based standards] (clgammal): Likewise.
473         [C99-based standards] (ctgammal): Likewise.
474         * conform/data/inttypes.h-data [C99-based standards]: Include
475         stdint.h-data.  Remove all expectations for stdint.h contents.
476         [C99-based standards] (PRI*): Do not allow.
477         [C99-based standards] (SCN*): Likewise.
478         [C99-based standards] (*_t): Likewise.
479         [C99-based-standards] (PRId8): Expect macro.
480         [C99-based-standards] (PRIi8): Likewise.
481         [C99-based-standards] (PRIo8): Likewise.
482         [C99-based-standards] (PRIu8): Likewise.
483         [C99-based-standards] (PRIx8): Likewise.
484         [C99-based-standards] (PRIX8): Likewise.
485         [C99-based-standards] (SCNd8): Likewise.
486         [C99-based-standards] (SCNi8): Likewise.
487         [C99-based-standards] (SCNo8): Likewise.
488         [C99-based-standards] (SCNu8): Likewise.
489         [C99-based-standards] (SCNx8): Likewise.
490         [C99-based-standards] (PRIdLEAST8): Likewise.
491         [C99-based-standards] (PRIiLEAST8): Likewise.
492         [C99-based-standards] (PRIoLEAST8): Likewise.
493         [C99-based-standards] (PRIuLEAST8): Likewise.
494         [C99-based-standards] (PRIxLEAST8): Likewise.
495         [C99-based-standards] (PRIXLEAST8): Likewise.
496         [C99-based-standards] (SCNdLEAST8): Likewise.
497         [C99-based-standards] (SCNiLEAST8): Likewise.
498         [C99-based-standards] (SCNoLEAST8): Likewise.
499         [C99-based-standards] (SCNuLEAST8): Likewise.
500         [C99-based-standards] (SCNxLEAST8): Likewise.
501         [C99-based-standards] (PRIdFAST8): Likewise.
502         [C99-based-standards] (PRIiFAST8): Likewise.
503         [C99-based-standards] (PRIoFAST8): Likewise.
504         [C99-based-standards] (PRIuFAST8): Likewise.
505         [C99-based-standards] (PRIxFAST8): Likewise.
506         [C99-based-standards] (PRIXFAST8): Likewise.
507         [C99-based-standards] (SCNdFAST8): Likewise.
508         [C99-based-standards] (SCNiFAST8): Likewise.
509         [C99-based-standards] (SCNoFAST8): Likewise.
510         [C99-based-standards] (SCNuFAST8): Likewise.
511         [C99-based-standards] (SCNxFAST8): Likewise.
512         [C99-based-standards] (PRId16): Likewise.
513         [C99-based-standards] (PRIi16): Likewise.
514         [C99-based-standards] (PRIo16): Likewise.
515         [C99-based-standards] (PRIu16): Likewise.
516         [C99-based-standards] (PRIx16): Likewise.
517         [C99-based-standards] (PRIX16): Likewise.
518         [C99-based-standards] (SCNd16): Likewise.
519         [C99-based-standards] (SCNi16): Likewise.
520         [C99-based-standards] (SCNo16): Likewise.
521         [C99-based-standards] (SCNu16): Likewise.
522         [C99-based-standards] (SCNx16): Likewise.
523         [C99-based-standards] (PRIdLEAST16): Likewise.
524         [C99-based-standards] (PRIiLEAST16): Likewise.
525         [C99-based-standards] (PRIoLEAST16): Likewise.
526         [C99-based-standards] (PRIuLEAST16): Likewise.
527         [C99-based-standards] (PRIxLEAST16): Likewise.
528         [C99-based-standards] (PRIXLEAST16): Likewise.
529         [C99-based-standards] (SCNdLEAST16): Likewise.
530         [C99-based-standards] (SCNiLEAST16): Likewise.
531         [C99-based-standards] (SCNoLEAST16): Likewise.
532         [C99-based-standards] (SCNuLEAST16): Likewise.
533         [C99-based-standards] (SCNxLEAST16): Likewise.
534         [C99-based-standards] (PRIdFAST16): Likewise.
535         [C99-based-standards] (PRIiFAST16): Likewise.
536         [C99-based-standards] (PRIoFAST16): Likewise.
537         [C99-based-standards] (PRIuFAST16): Likewise.
538         [C99-based-standards] (PRIxFAST16): Likewise.
539         [C99-based-standards] (PRIXFAST16): Likewise.
540         [C99-based-standards] (SCNdFAST16): Likewise.
541         [C99-based-standards] (SCNiFAST16): Likewise.
542         [C99-based-standards] (SCNoFAST16): Likewise.
543         [C99-based-standards] (SCNuFAST16): Likewise.
544         [C99-based-standards] (SCNxFAST16): Likewise.
545         [C99-based-standards] (PRId32): Likewise.
546         [C99-based-standards] (PRIi32): Likewise.
547         [C99-based-standards] (PRIo32): Likewise.
548         [C99-based-standards] (PRIu32): Likewise.
549         [C99-based-standards] (PRIx32): Likewise.
550         [C99-based-standards] (PRIX32): Likewise.
551         [C99-based-standards] (SCNd32): Likewise.
552         [C99-based-standards] (SCNi32): Likewise.
553         [C99-based-standards] (SCNo32): Likewise.
554         [C99-based-standards] (SCNu32): Likewise.
555         [C99-based-standards] (SCNx32): Likewise.
556         [C99-based-standards] (PRIdLEAST32): Likewise.
557         [C99-based-standards] (PRIiLEAST32): Likewise.
558         [C99-based-standards] (PRIoLEAST32): Likewise.
559         [C99-based-standards] (PRIuLEAST32): Likewise.
560         [C99-based-standards] (PRIxLEAST32): Likewise.
561         [C99-based-standards] (PRIXLEAST32): Likewise.
562         [C99-based-standards] (SCNdLEAST32): Likewise.
563         [C99-based-standards] (SCNiLEAST32): Likewise.
564         [C99-based-standards] (SCNoLEAST32): Likewise.
565         [C99-based-standards] (SCNuLEAST32): Likewise.
566         [C99-based-standards] (SCNxLEAST32): Likewise.
567         [C99-based-standards] (PRIdFAST32): Likewise.
568         [C99-based-standards] (PRIiFAST32): Likewise.
569         [C99-based-standards] (PRIoFAST32): Likewise.
570         [C99-based-standards] (PRIuFAST32): Likewise.
571         [C99-based-standards] (PRIxFAST32): Likewise.
572         [C99-based-standards] (PRIXFAST32): Likewise.
573         [C99-based-standards] (SCNdFAST32): Likewise.
574         [C99-based-standards] (SCNiFAST32): Likewise.
575         [C99-based-standards] (SCNoFAST32): Likewise.
576         [C99-based-standards] (SCNuFAST32): Likewise.
577         [C99-based-standards] (SCNxFAST32): Likewise.
578         [C99-based-standards] (PRId64): Likewise.
579         [C99-based-standards] (PRIi64): Likewise.
580         [C99-based-standards] (PRIo64): Likewise.
581         [C99-based-standards] (PRIu64): Likewise.
582         [C99-based-standards] (PRIx64): Likewise.
583         [C99-based-standards] (PRIX64): Likewise.
584         [C99-based-standards] (SCNd64): Likewise.
585         [C99-based-standards] (SCNi64): Likewise.
586         [C99-based-standards] (SCNo64): Likewise.
587         [C99-based-standards] (SCNu64): Likewise.
588         [C99-based-standards] (SCNx64): Likewise.
589         [C99-based-standards] (PRIdLEAST64): Likewise.
590         [C99-based-standards] (PRIiLEAST64): Likewise.
591         [C99-based-standards] (PRIoLEAST64): Likewise.
592         [C99-based-standards] (PRIuLEAST64): Likewise.
593         [C99-based-standards] (PRIxLEAST64): Likewise.
594         [C99-based-standards] (PRIXLEAST64): Likewise.
595         [C99-based-standards] (SCNdLEAST64): Likewise.
596         [C99-based-standards] (SCNiLEAST64): Likewise.
597         [C99-based-standards] (SCNoLEAST64): Likewise.
598         [C99-based-standards] (SCNuLEAST64): Likewise.
599         [C99-based-standards] (SCNxLEAST64): Likewise.
600         [C99-based-standards] (PRIdFAST64): Likewise.
601         [C99-based-standards] (PRIiFAST64): Likewise.
602         [C99-based-standards] (PRIoFAST64): Likewise.
603         [C99-based-standards] (PRIuFAST64): Likewise.
604         [C99-based-standards] (PRIxFAST64): Likewise.
605         [C99-based-standards] (PRIXFAST64): Likewise.
606         [C99-based-standards] (SCNdFAST64): Likewise.
607         [C99-based-standards] (SCNiFAST64): Likewise.
608         [C99-based-standards] (SCNoFAST64): Likewise.
609         [C99-based-standards] (SCNuFAST64): Likewise.
610         [C99-based-standards] (SCNxFAST64): Likewise.
611         [C99-based-standards] (PRIdMAX): Likewise.
612         [C99-based-standards] (PRIiMAX): Likewise.
613         [C99-based-standards] (PRIoMAX): Likewise.
614         [C99-based-standards] (PRIuMAX): Likewise.
615         [C99-based-standards] (PRIxMAX): Likewise.
616         [C99-based-standards] (PRIXMAX): Likewise.
617         [C99-based-standards] (SCNdMAX): Likewise.
618         [C99-based-standards] (SCNiMAX): Likewise.
619         [C99-based-standards] (SCNoMAX): Likewise.
620         [C99-based-standards] (SCNuMAX): Likewise.
621         [C99-based-standards] (SCNxMAX): Likewise.
622         [C99-based-standards] (PRIdPTR): Likewise.
623         [C99-based-standards] (PRIiPTR): Likewise.
624         [C99-based-standards] (PRIoPTR): Likewise.
625         [C99-based-standards] (PRIuPTR): Likewise.
626         [C99-based-standards] (PRIxPTR): Likewise.
627         [C99-based-standards] (PRIXPTR): Likewise.
628         [C99-based-standards] (SCNdPTR): Likewise.
629         [C99-based-standards] (SCNiPTR): Likewise.
630         [C99-based-standards] (SCNoPTR): Likewise.
631         [C99-based-standards] (SCNuPTR): Likewise.
632         [C99-based-standards] (SCNxPTR): Likewise.
633         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
634         allow.
635         * conform/data/stdint.h-data: Update comments to clarify
636         requirements.
637         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
638         type.
639         [C99-based standards] (INT8_MAX): Likewise.
640         [C99-based standards] (INT16_MIN): Likewise.
641         [C99-based standards] (INT16_MAX): Likewise.
642         [C99-based standards] (INT32_MIN): Likewise.
643         [C99-based standards] (INT32_MAX): Likewise.
644         [C99-based standards] (INT64_MIN): Likewise.
645         [C99-based standards] (INT64_MAX): Likewise.
646         [C99-based standards] (UINT8_MAX): Likewise.
647         [C99-based standards] (UINT16_MAX): Likewise.
648         [C99-based standards] (UINT32_MAX): Likewise.
649         [C99-based standards] (UINT64_MAX): Likewise.
650         [C99-based standards] (INT_LEAST8_MIN): Likewise.
651         [C99-based standards] (INT_LEAST8_MAX): Likewise.
652         [C99-based standards] (INT_LEAST16_MIN): Likewise.
653         [C99-based standards] (INT_LEAST16_MAX): Likewise.
654         [C99-based standards] (INT_LEAST32_MIN): Likewise.
655         [C99-based standards] (INT_LEAST32_MAX): Likewise.
656         [C99-based standards] (INT_LEAST64_MIN): Likewise.
657         [C99-based standards] (INT_LEAST64_MAX): Likewise.
658         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
659         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
660         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
661         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
662         [C99-based standards] (INT_FAST8_MIN): Likewise.
663         [C99-based standards] (INT_FAST8_MAX): Likewise.
664         [C99-based standards] (INT_FAST16_MIN): Likewise.
665         [C99-based standards] (INT_FAST16_MAX): Likewise.
666         [C99-based standards] (INT_FAST32_MIN): Likewise.
667         [C99-based standards] (INT_FAST32_MAX): Likewise.
668         [C99-based standards] (INT_FAST64_MIN): Likewise.
669         [C99-based standards] (INT_FAST64_MAX): Likewise.
670         [C99-based standards] (UINT_FAST8_MAX): Likewise.
671         [C99-based standards] (UINT_FAST16_MAX): Likewise.
672         [C99-based standards] (UINT_FAST32_MAX): Likewise.
673         [C99-based standards] (UINT_FAST64_MAX): Likewise.
674         [C99-based standards] (INTPTR_MIN): Likewise.
675         [C99-based standards] (INTPTR_MAX): Likewise.
676         [C99-based standards] (UINTPTR_MAX): Likewise.
677         [C99-based standards] (INTMAX_MIN): Likewise.
678         [C99-based standards] (INTMAX_MAX): Likewise.
679         [C99-based standards] (UINTMAX_MAX): Likewise.
680         [C99-based standards] (PTRDIFF_MIN): Likewise.
681         [C99-based standards] (PTRDIFF_MAX): Likewise.
682         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
683         [C99-based standards] (SIZE_MAX): Likewise.
684         [C99-based standards] (WCHAR_MAX): Likewise.
685         [C99-based standards] (WINT_MAX): Likewise.
686         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
687         constraint on value.
688         [C99-based standards] (WCHAR_MIN): Likewise.
689         [C99-based standards] (WINT_MIN): Likewise.
690         [C99-based standards] (*_t): Allow.
691         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
692         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
693         Include math.h-data and complex.h-data.  Remove all expectations
694         of math.h and complex.h contents.
695         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
696         at end of line.
697         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
698         (struct tm): Expect tag.
699         [C99-based-standards] (wcstof): Expect function.
700         [C99-based-standards] (wcstold): Likewise.
701         [C99-based-standards] (wcstoll): Likewise.
702         [C99-based-standards] (wcstoull): Likewise.
703         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
704         macro-int-constant.  Specify type.
705         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
706         constraint on value.
707         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
708         Specify type.
709         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
710         Specify value.
711         [ISO C standards]: Do not allow headers.
712         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
713         wcs[abcdefghijklmnopqrstuvwxyz]*.
714         [ISO C standards] (*_t): Do not allow.
715         * conform/data/wctype.h-data [C99-based standards] (iswblank):
716         Expect function.
717         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
718         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
719         Specify type.
720         [ISO C standards]: Do not allow headers.
721         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
722         is[abcdefghijklmnopqrstuvwxyz]*.
723         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
724         to[abcdefghijklmnopqrstuvwxyz]*.
725         [ISO C standards] (*_t): Do not allow.
726         * conform/data/stdalign.h-data: New file.
727         * conform/data/stdbool.h-data: Likewise.
728         * conform/data/stdnoreturn.h-data: Likewise.
729
730 2012-11-07  Andreas Jaeger  <aj@suse.de>
731
732         [BZ #14809]
733         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
734         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
735         guards are changed.  Only define if not yet defined, #undef back
736         after including linux/sysctl.h if defined here.
737
738 2012-11-07  Roland McGrath  <roland@hack.frob.com>
739
740         [BZ #14815]
741         * manual/filesys.texi (Directory Entries): Typo fix.
742         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
743
744 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
745
746         * elf/elf.h (EM_AARCH64): New macro.
747         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
748         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
749         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
750         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
751         (R_AARCH64_TLSDESC): Likewise.
752         (NT_ARM_TLS): Likewise.
753         (NT_ARM_HW_BREAK): Likewise.
754         (NT_ARM_HW_WATCH): Likewise.
755
756 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
757
758         [BZ #14811]
759         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
760         (__ieee754_powl): Saturate nonzero exponents with absolute value
761         below 0x1p-79 to +/- 0x1p-79.
762         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
763         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
764         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
765         nonzero exponents with absolute value below 0x1p-32 to +/-
766         0x1p-32.
767         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
768         (__ieee754_powl): Saturate nonzero exponents with absolute value
769         below 0x1p-79 to +/- 0x1p-79.
770         * math/libm-test.inc (pow_test): Add more tests.
771
772 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
773
774         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
775         _dl_s390_cap_flags with kernel. Increase string length.
776         (_dl_s390_platforms): Add z196 and zEC12.
777
778 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
779
780         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
781         Change XOPEN21K to XOPEN2K.
782
783 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
784
785         * string/memmove.c: Use memcpy when possible.
786
787 2012-11-06  Andreas Jaeger  <aj@suse.de>
788
789         * po/eo.po: Update from translation team.
790
791 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
792
793         [BZ #14793]
794         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
795         exponent and small x and y exponents, scale x or y up.  Increase
796         by 2 the exponent used in scaling up.
797         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
798         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
799         * math/libm-test.inc (fma_test): Add more tests.
800         (fma_test_towardzero): Likewise.
801         (fma_test_downward): Likewise.
802         (fma_test_upward): Likewise.
803
804 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
805
806         [BZ #14805]
807         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
808         fenv_t *.
809
810         [BZ #14801]
811         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
812         namespace for names of struct fields.
813         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
814         fenv_t fields.
815         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
816         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
817
818 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
819
820         [BZ #3665]
821         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
822
823 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
824
825         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
826         PTR_DEMANGLE.
827
828         [BZ #5246]
829         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
830         PTR_DEMANGLE.
831
832 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
833
834         [BZ #14797]
835         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
836         definitely overflow as x * y not x * y + z.
837         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
838         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
839         * math/libm-test.inc (fma_test): Add more tests.
840         (fma_test_towardzero): Likewise.
841         (fma_test_downward): Likewise.
842         (fma_test_upward): Likewise.
843
844 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
845
846         [BZ #157]
847
848         * include/stub-tag.h: Remove file.
849         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
850         '#include' of it.
851         * manual/maint.texi (Porting): Don't reference it.
852         * Makerules ($(objpfx)stubs): Likewise.
853         * dirent/closedir.c: Don't include <stub-tag.h>.
854         * dirent/dirfd.c: Likewise.
855         * dirent/fdopendir.c: Likewise.
856         * dirent/getdents.c: Likewise.
857         * dirent/getdents64.c: Likewise.
858         * dirent/opendir.c: Likewise.
859         * dirent/readdir.c: Likewise.
860         * dirent/readdir64.c: Likewise.
861         * dirent/readdir64_r.c: Likewise.
862         * dirent/readdir_r.c: Likewise.
863         * dirent/rewinddir.c: Likewise.
864         * dirent/seekdir.c: Likewise.
865         * dirent/telldir.c: Likewise.
866         * gmon/profil.c: Likewise.
867         * grp/setgroups.c: Likewise.
868         * inet/if_index.c: Likewise.
869         * io/access.c: Likewise.
870         * io/chdir.c: Likewise.
871         * io/chmod.c: Likewise.
872         * io/chown.c: Likewise.
873         * io/close.c: Likewise.
874         * io/dup.c: Likewise.
875         * io/dup2.c: Likewise.
876         * io/dup3.c: Likewise.
877         * io/euidaccess.c: Likewise.
878         * io/faccessat.c: Likewise.
879         * io/fchdir.c: Likewise.
880         * io/fchmod.c: Likewise.
881         * io/fchmodat.c: Likewise.
882         * io/fchown.c: Likewise.
883         * io/fchownat.c: Likewise.
884         * io/fcntl.c: Likewise.
885         * io/flock.c: Likewise.
886         * io/fstatfs.c: Likewise.
887         * io/fstatfs64.c: Likewise.
888         * io/fstatvfs.c: Likewise.
889         * io/fstatvfs64.c: Likewise.
890         * io/futimens.c: Likewise.
891         * io/fxstat.c: Likewise.
892         * io/fxstat64.c: Likewise.
893         * io/fxstatat.c: Likewise.
894         * io/fxstatat64.c: Likewise.
895         * io/getcwd.c: Likewise.
896         * io/isatty.c: Likewise.
897         * io/lchmod.c: Likewise.
898         * io/lchown.c: Likewise.
899         * io/link.c: Likewise.
900         * io/linkat.c: Likewise.
901         * io/lseek.c: Likewise.
902         * io/lseek64.c: Likewise.
903         * io/lxstat64.c: Likewise.
904         * io/mkdir.c: Likewise.
905         * io/mkdirat.c: Likewise.
906         * io/mkfifo.c: Likewise.
907         * io/mkfifoat.c: Likewise.
908         * io/open.c: Likewise.
909         * io/open64.c: Likewise.
910         * io/openat.c: Likewise.
911         * io/openat64.c: Likewise.
912         * io/pipe.c: Likewise.
913         * io/pipe2.c: Likewise.
914         * io/poll.c: Likewise.
915         * io/posix_fadvise.c: Likewise.
916         * io/posix_fadvise64.c: Likewise.
917         * io/posix_fallocate.c: Likewise.
918         * io/posix_fallocate64.c: Likewise.
919         * io/read.c: Likewise.
920         * io/readlink.c: Likewise.
921         * io/readlinkat.c: Likewise.
922         * io/rmdir.c: Likewise.
923         * io/sendfile.c: Likewise.
924         * io/sendfile64.c: Likewise.
925         * io/statfs.c: Likewise.
926         * io/statfs64.c: Likewise.
927         * io/statvfs.c: Likewise.
928         * io/statvfs64.c: Likewise.
929         * io/symlink.c: Likewise.
930         * io/symlinkat.c: Likewise.
931         * io/ttyname.c: Likewise.
932         * io/ttyname_r.c: Likewise.
933         * io/umask.c: Likewise.
934         * io/unlink.c: Likewise.
935         * io/unlinkat.c: Likewise.
936         * io/utime.c: Likewise.
937         * io/utimensat.c: Likewise.
938         * io/write.c: Likewise.
939         * io/xmknod.c: Likewise.
940         * io/xmknodat.c: Likewise.
941         * io/xstat.c: Likewise.
942         * io/xstat64.c: Likewise.
943         * login/getpt.c: Likewise.
944         * login/grantpt.c: Likewise.
945         * login/unlockpt.c: Likewise.
946         * math/e_acoshl.c: Likewise.
947         * math/e_acosl.c: Likewise.
948         * math/e_asinl.c: Likewise.
949         * math/e_atan2l.c: Likewise.
950         * math/e_atanhl.c: Likewise.
951         * math/e_coshl.c: Likewise.
952         * math/e_expl.c: Likewise.
953         * math/e_fmodl.c: Likewise.
954         * math/e_gammal_r.c: Likewise.
955         * math/e_hypotl.c: Likewise.
956         * math/e_j0l.c: Likewise.
957         * math/e_j1l.c: Likewise.
958         * math/e_jnl.c: Likewise.
959         * math/e_lgammal_r.c: Likewise.
960         * math/e_log10l.c: Likewise.
961         * math/e_log2l.c: Likewise.
962         * math/e_logl.c: Likewise.
963         * math/e_powl.c: Likewise.
964         * math/e_rem_pio2l.c: Likewise.
965         * math/e_sinhl.c: Likewise.
966         * math/e_sqrtl.c: Likewise.
967         * math/fclrexcpt.c: Likewise.
968         * math/fedisblxcpt.c: Likewise.
969         * math/feenablxcpt.c: Likewise.
970         * math/fegetenv.c: Likewise.
971         * math/fegetexcept.c: Likewise.
972         * math/fegetround.c: Likewise.
973         * math/feholdexcpt.c: Likewise.
974         * math/fesetenv.c: Likewise.
975         * math/fesetround.c: Likewise.
976         * math/feupdateenv.c: Likewise.
977         * math/fgetexcptflg.c: Likewise.
978         * math/fraiseexcpt.c: Likewise.
979         * math/fsetexcptflg.c: Likewise.
980         * math/ftestexcept.c: Likewise.
981         * math/k_cosl.c: Likewise.
982         * math/k_rem_pio2l.c: Likewise.
983         * math/k_sinl.c: Likewise.
984         * math/k_tanl.c: Likewise.
985         * math/s_asinhl.c: Likewise.
986         * math/s_atanl.c: Likewise.
987         * math/s_cbrtl.c: Likewise.
988         * math/s_erfl.c: Likewise.
989         * math/s_expm1l.c: Likewise.
990         * math/s_log1pl.c: Likewise.
991         * math/s_tanhl.c: Likewise.
992         * misc/acct.c: Likewise.
993         * misc/brk.c: Likewise.
994         * misc/chflags.c: Likewise.
995         * misc/chroot.c: Likewise.
996         * misc/fchflags.c: Likewise.
997         * misc/fgetxattr.c: Likewise.
998         * misc/flistxattr.c: Likewise.
999         * misc/fremovexattr.c: Likewise.
1000         * misc/fsetxattr.c: Likewise.
1001         * misc/fsync.c: Likewise.
1002         * misc/ftruncate.c: Likewise.
1003         * misc/futimes.c: Likewise.
1004         * misc/futimesat.c: Likewise.
1005         * misc/getdomain.c: Likewise.
1006         * misc/getdtsz.c: Likewise.
1007         * misc/gethostid.c: Likewise.
1008         * misc/gethostname.c: Likewise.
1009         * misc/getloadavg.c: Likewise.
1010         * misc/getpagesize.c: Likewise.
1011         * misc/getsysstats.c: Likewise.
1012         * misc/getxattr.c: Likewise.
1013         * misc/gtty.c: Likewise.
1014         * misc/ioctl.c: Likewise.
1015         * misc/lgetxattr.c: Likewise.
1016         * misc/listxattr.c: Likewise.
1017         * misc/llistxattr.c: Likewise.
1018         * misc/lremovexattr.c: Likewise.
1019         * misc/lsetxattr.c: Likewise.
1020         * misc/lutimes.c: Likewise.
1021         * misc/madvise.c: Likewise.
1022         * misc/mincore.c: Likewise.
1023         * misc/mlock.c: Likewise.
1024         * misc/mlockall.c: Likewise.
1025         * misc/mmap.c: Likewise.
1026         * misc/mprotect.c: Likewise.
1027         * misc/msync.c: Likewise.
1028         * misc/munlock.c: Likewise.
1029         * misc/munlockall.c: Likewise.
1030         * misc/munmap.c: Likewise.
1031         * misc/preadv.c: Likewise.
1032         * misc/preadv64.c: Likewise.
1033         * misc/ptrace.c: Likewise.
1034         * misc/pwritev.c: Likewise.
1035         * misc/pwritev64.c: Likewise.
1036         * misc/readv.c: Likewise.
1037         * misc/reboot.c: Likewise.
1038         * misc/remap_file_pages.c: Likewise.
1039         * misc/removexattr.c: Likewise.
1040         * misc/revoke.c: Likewise.
1041         * misc/select.c: Likewise.
1042         * misc/setdomain.c: Likewise.
1043         * misc/setegid.c: Likewise.
1044         * misc/seteuid.c: Likewise.
1045         * misc/sethostid.c: Likewise.
1046         * misc/sethostname.c: Likewise.
1047         * misc/setregid.c: Likewise.
1048         * misc/setreuid.c: Likewise.
1049         * misc/setxattr.c: Likewise.
1050         * misc/sstk.c: Likewise.
1051         * misc/stty.c: Likewise.
1052         * misc/swapoff.c: Likewise.
1053         * misc/swapon.c: Likewise.
1054         * misc/sync.c: Likewise.
1055         * misc/syncfs.c: Likewise.
1056         * misc/syscall.c: Likewise.
1057         * misc/truncate.c: Likewise.
1058         * misc/ualarm.c: Likewise.
1059         * misc/usleep.c: Likewise.
1060         * misc/ustat.c: Likewise.
1061         * misc/utimes.c: Likewise.
1062         * misc/vhangup.c: Likewise.
1063         * misc/writev.c: Likewise.
1064         * posix/_exit.c: Likewise.
1065         * posix/alarm.c: Likewise.
1066         * posix/execve.c: Likewise.
1067         * posix/fexecve.c: Likewise.
1068         * posix/fork.c: Likewise.
1069         * posix/fpathconf.c: Likewise.
1070         * posix/getaddrinfo.c: Likewise.
1071         * posix/getegid.c: Likewise.
1072         * posix/geteuid.c: Likewise.
1073         * posix/getgid.c: Likewise.
1074         * posix/getgroups.c: Likewise.
1075         * posix/getlogin.c: Likewise.
1076         * posix/getlogin_r.c: Likewise.
1077         * posix/getpgid.c: Likewise.
1078         * posix/getpid.c: Likewise.
1079         * posix/getppid.c: Likewise.
1080         * posix/getresgid.c: Likewise.
1081         * posix/getresuid.c: Likewise.
1082         * posix/getsid.c: Likewise.
1083         * posix/getuid.c: Likewise.
1084         * posix/glob64.c: Likewise.
1085         * posix/nanosleep.c: Likewise.
1086         * posix/pathconf.c: Likewise.
1087         * posix/pause.c: Likewise.
1088         * posix/posix_madvise.c: Likewise.
1089         * posix/pread.c: Likewise.
1090         * posix/pread64.c: Likewise.
1091         * posix/pwrite.c: Likewise.
1092         * posix/pwrite64.c: Likewise.
1093         * posix/sched_getaffinity.c: Likewise.
1094         * posix/sched_getp.c: Likewise.
1095         * posix/sched_gets.c: Likewise.
1096         * posix/sched_primax.c: Likewise.
1097         * posix/sched_primin.c: Likewise.
1098         * posix/sched_rr_gi.c: Likewise.
1099         * posix/sched_setaffinity.c: Likewise.
1100         * posix/sched_setp.c: Likewise.
1101         * posix/sched_sets.c: Likewise.
1102         * posix/sched_yield.c: Likewise.
1103         * posix/setgid.c: Likewise.
1104         * posix/setlogin.c: Likewise.
1105         * posix/setpgid.c: Likewise.
1106         * posix/setresgid.c: Likewise.
1107         * posix/setresuid.c: Likewise.
1108         * posix/setsid.c: Likewise.
1109         * posix/setuid.c: Likewise.
1110         * posix/sleep.c: Likewise.
1111         * posix/spawni.c: Likewise.
1112         * posix/sysconf.c: Likewise.
1113         * posix/times.c: Likewise.
1114         * posix/wait.c: Likewise.
1115         * posix/wait3.c: Likewise.
1116         * posix/wait4.c: Likewise.
1117         * posix/waitpid.c: Likewise.
1118         * resolv/gai_sigqueue.c: Likewise.
1119         * resource/getpriority.c: Likewise.
1120         * resource/getrlimit.c: Likewise.
1121         * resource/getrusage.c: Likewise.
1122         * resource/nice.c: Likewise.
1123         * resource/setpriority.c: Likewise.
1124         * resource/setrlimit.c: Likewise.
1125         * resource/ulimit.c: Likewise.
1126         * rt/aio_cancel.c: Likewise.
1127         * rt/aio_fsync.c: Likewise.
1128         * rt/aio_read.c: Likewise.
1129         * rt/aio_sigqueue.c: Likewise.
1130         * rt/aio_suspend.c: Likewise.
1131         * rt/aio_write.c: Likewise.
1132         * rt/clock_getres.c: Likewise.
1133         * rt/clock_gettime.c: Likewise.
1134         * rt/clock_nanosleep.c: Likewise.
1135         * rt/clock_settime.c: Likewise.
1136         * rt/lio_listio.c: Likewise.
1137         * rt/mq_close.c: Likewise.
1138         * rt/mq_getattr.c: Likewise.
1139         * rt/mq_notify.c: Likewise.
1140         * rt/mq_open.c: Likewise.
1141         * rt/mq_receive.c: Likewise.
1142         * rt/mq_send.c: Likewise.
1143         * rt/mq_setattr.c: Likewise.
1144         * rt/mq_timedreceive.c: Likewise.
1145         * rt/mq_timedsend.c: Likewise.
1146         * rt/mq_unlink.c: Likewise.
1147         * rt/shm_open.c: Likewise.
1148         * rt/shm_unlink.c: Likewise.
1149         * rt/timer_create.c: Likewise.
1150         * rt/timer_delete.c: Likewise.
1151         * rt/timer_getoverr.c: Likewise.
1152         * rt/timer_gettime.c: Likewise.
1153         * rt/timer_settime.c: Likewise.
1154         * setjmp/__longjmp.c: Likewise.
1155         * setjmp/setjmp.c: Likewise.
1156         * signal/kill.c: Likewise.
1157         * signal/killpg.c: Likewise.
1158         * signal/raise.c: Likewise.
1159         * signal/sigaction.c: Likewise.
1160         * signal/sigaltstack.c: Likewise.
1161         * signal/sigblock.c: Likewise.
1162         * signal/sigignore.c: Likewise.
1163         * signal/sigintr.c: Likewise.
1164         * signal/signal.c: Likewise.
1165         * signal/sigpause.c: Likewise.
1166         * signal/sigpending.c: Likewise.
1167         * signal/sigqueue.c: Likewise.
1168         * signal/sigreturn.c: Likewise.
1169         * signal/sigset.c: Likewise.
1170         * signal/sigsetmask.c: Likewise.
1171         * signal/sigstack.c: Likewise.
1172         * signal/sigsuspend.c: Likewise.
1173         * signal/sigtimedwait.c: Likewise.
1174         * signal/sigvec.c: Likewise.
1175         * signal/sigwait.c: Likewise.
1176         * signal/sigwaitinfo.c: Likewise.
1177         * signal/sysv_signal.c: Likewise.
1178         * socket/accept.c: Likewise.
1179         * socket/accept4.c: Likewise.
1180         * socket/bind.c: Likewise.
1181         * socket/connect.c: Likewise.
1182         * socket/getpeername.c: Likewise.
1183         * socket/getsockname.c: Likewise.
1184         * socket/getsockopt.c: Likewise.
1185         * socket/isfdtype.c: Likewise.
1186         * socket/listen.c: Likewise.
1187         * socket/recv.c: Likewise.
1188         * socket/recvfrom.c: Likewise.
1189         * socket/recvmsg.c: Likewise.
1190         * socket/send.c: Likewise.
1191         * socket/sendmsg.c: Likewise.
1192         * socket/sendto.c: Likewise.
1193         * socket/setsockopt.c: Likewise.
1194         * socket/shutdown.c: Likewise.
1195         * socket/sockatmark.c: Likewise.
1196         * socket/socket.c: Likewise.
1197         * socket/socketpair.c: Likewise.
1198         * stdio-common/ctermid.c: Likewise.
1199         * stdio-common/cuserid.c: Likewise.
1200         * stdio-common/remove.c: Likewise.
1201         * stdio-common/rename.c: Likewise.
1202         * stdio-common/renameat.c: Likewise.
1203         * stdio-common/tempname.c: Likewise.
1204         * stdlib/getcontext.c: Likewise.
1205         * stdlib/makecontext.c: Likewise.
1206         * stdlib/setcontext.c: Likewise.
1207         * stdlib/swapcontext.c: Likewise.
1208         * stdlib/system.c: Likewise.
1209         * streams/fattach.c: Likewise.
1210         * streams/fdetach.c: Likewise.
1211         * streams/getmsg.c: Likewise.
1212         * streams/getpmsg.c: Likewise.
1213         * streams/putmsg.c: Likewise.
1214         * streams/putpmsg.c: Likewise.
1215         * sysdeps/unix/bsd/getpt.c: Likewise.
1216         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1217         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1218         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1220         Likewise.
1221         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1222         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1223         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1224         * sysvipc/msgctl.c: Likewise.
1225         * sysvipc/msgget.c: Likewise.
1226         * sysvipc/msgrcv.c: Likewise.
1227         * sysvipc/msgsnd.c: Likewise.
1228         * sysvipc/semctl.c: Likewise.
1229         * sysvipc/semget.c: Likewise.
1230         * sysvipc/semop.c: Likewise.
1231         * sysvipc/semtimedop.c: Likewise.
1232         * sysvipc/shmat.c: Likewise.
1233         * sysvipc/shmctl.c: Likewise.
1234         * sysvipc/shmdt.c: Likewise.
1235         * sysvipc/shmget.c: Likewise.
1236         * termios/tcdrain.c: Likewise.
1237         * termios/tcflow.c: Likewise.
1238         * termios/tcflush.c: Likewise.
1239         * termios/tcgetattr.c: Likewise.
1240         * termios/tcgetpgrp.c: Likewise.
1241         * termios/tcsendbrk.c: Likewise.
1242         * termios/tcsetattr.c: Likewise.
1243         * termios/tcsetpgrp.c: Likewise.
1244         * time/adjtime.c: Likewise.
1245         * time/clock.c: Likewise.
1246         * time/getitimer.c: Likewise.
1247         * time/gettimeofday.c: Likewise.
1248         * time/setitimer.c: Likewise.
1249         * time/settimeofday.c: Likewise.
1250         * time/stime.c: Likewise.
1251         * time/time.c: Likewise.
1252
1253 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1254
1255         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1256         /usr/old/bin.
1257
1258         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1259         instead of spaces.
1260         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1261
1262 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1263
1264         [BZ #14796]
1265         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1266         FE_TONEAREST before applying Dekker multiplication and Knuth
1267         addition.  Clear inexact exceptions and check for exact zero
1268         results afterwards.
1269         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1270         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1271         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1272         * math/libm-test.inc (fma_test): Add more tests.
1273         (fma_test_towardzero): Likewise.
1274         (fma_test_downward): Likewise.
1275         (fma_test_upward): Likewise.
1276         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1277         function.
1278         (libc_fesetround): New macro.
1279         (libc_fesetroundf): Likewise.
1280         (libc_fesetroundl): Likewise.
1281         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1282         function.
1283         (libc_fesetround_387): Likewise.
1284         (libc_fesetroundf): New macro.
1285         (libc_fesetround): Likewise.
1286         (libc_fesetroundl): Likewise.
1287         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1288         function.
1289         (libc_fesetroundf): New macro.
1290         (libc_fesetround): Likewise.
1291         (libc_fesetroundl): Likewise.
1292         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1293         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1294         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1295         libm_hidden_ver.
1296         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1297         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1298         libm_hidden_def.
1299         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1300         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1301         libm_hidden_ver.
1302         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1303         libm_hidden_def.
1304
1305         [BZ #3439]
1306         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1307         integer constant usable in #if and use that to give value to enum
1308         constant.
1309         (FE_DIVBYZERO): Likewise.
1310         (FE_UNDERFLOW): Likewise.
1311         (FE_OVERFLOW): Likewise.
1312         (FE_INVALID): Likewise.
1313         (FE_INVALID_SNAN): Likewise.
1314         (FE_INVALID_ISI): Likewise.
1315         (FE_INVALID_IDI): Likewise.
1316         (FE_INVALID_ZDZ): Likewise.
1317         (FE_INVALID_IMZ): Likewise.
1318         (FE_INVALID_COMPARE): Likewise.
1319         (FE_INVALID_SOFTWARE): Likewise.
1320         (FE_INVALID_SQRT): Likewise.
1321         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1322         (FE_TONEAREST): Likewise.
1323         (FE_TOWARDZERO): Likewise.
1324         (FE_UPWARD): Likewise.
1325         (FE_DOWNWARD): Likewise.
1326         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1327         (FE_DIVBYZERO): Likewise.
1328         (FE_OVERFLOW): Likewise.
1329         (FE_UNDERFLOW): Likewise.
1330         (FE_INEXACT): Likewise.
1331         (FE_TONEAREST): Likewise.
1332         (FE_DOWNWARD): Likewise.
1333         (FE_UPWARD): Likewise.
1334         (FE_TOWARDZERO): Likewise.
1335         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1336         (FE_UNDERFLOW): Likewise.
1337         (FE_OVERFLOW): Likewise.
1338         (FE_DIVBYZERO): Likewise.
1339         (FE_INVALID): Likewise.
1340         (FE_TONEAREST): Likewise.
1341         (FE_TOWARDZERO): Likewise.
1342         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1343         (FE_OVERFLOW): Likewise.
1344         (FE_UNDERFLOW): Likewise.
1345         (FE_DIVBYZERO): Likewise.
1346         (FE_INEXACT): Likewise.
1347         (FE_TONEAREST): Likewise.
1348         (FE_TOWARDZERO): Likewise.
1349         (FE_UPWARD): Likewise.
1350         (FE_DOWNWARD): Likewise.
1351         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1352         (FE_DIVBYZERO): Likewise.
1353         (FE_OVERFLOW): Likewise.
1354         (FE_UNDERFLOW): Likewise.
1355         (FE_INEXACT): Likewise.
1356         (FE_TONEAREST): Likewise.
1357         (FE_DOWNWARD): Likewise.
1358         (FE_UPWARD): Likewise.
1359         (FE_TOWARDZERO): Likewise.
1360
1361 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1362
1363         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1364
1365 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1366
1367         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1368         commands.  Quote $PWD.
1369         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1370         -x" by "export".
1371         (remove_newlines): Remove.
1372
1373 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1374
1375         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1376         * stdlib/stdlib.h (atof): Moved to ...
1377         * include/bits/stdlib-float.h: Here.  New file.
1378         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1379         * stdlib/bits/stdlib-float.h: New file.
1380         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1381         -mno-sse -mno-mmx.
1382         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1383         <xmmintrin.h>.
1384
1385 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1386
1387         * conform/conformtest.pl (@headers): Add fenv.h.
1388         * conform/data/fenv.h-data: New file.
1389         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1390         include of <math/fenv.h>.
1391
1392         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1393         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1394         && !UNIX98].  Enables tests for XOPEN2K8.
1395         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1396         POSIX2008]: Likewise.
1397
1398         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1399         (struct rusage): Do not expect type or its members.
1400
1401         [BZ #3439]
1402         * math/math.h (FP_NAN): Define macro to integer constant usable in
1403         #if and use that to give value to enum constant.
1404         (FP_INFINITE): Likewise.
1405         (FP_ZERO): Likewise.
1406         (FP_SUBNORMAL): Likewise.
1407         (FP_NORMAL): Likewise.
1408
1409 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1410
1411         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1412         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1413         arguments.
1414
1415 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1416
1417         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1418         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1419         autoconf-time if not.
1420         * configure.in: Remove AC_PREREQ.
1421
1422 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1423
1424         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1425         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1426         of the internal implementation.
1427
1428 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1429
1430         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1431         except include of <misc/sys/syslog.h>.
1432
1433 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1434
1435         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1436         function returns with a NULL context exit with zero.
1437
1438 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1439
1440         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1441
1442 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1443
1444         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1445         (run_program_cmd): This.
1446         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1447         (tst_langinfo): New variable.  Use it.
1448
1449 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1450
1451         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1452         floating point opcodes.
1453
1454 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1455
1456         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1457         variable.
1458
1459         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1460
1461         * sysdeps/mach/hurd/powerpc: Remove directory.
1462         * sysdeps/mach/powerpc: Likewise.
1463
1464 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1465
1466         * scripts/check-local-headers.sh: Ignore c++ headers.
1467
1468 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1469
1470         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1471         __libc_cleanup_region_start argument.
1472
1473 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1474
1475         [BZ #14784]
1476         [BZ #14785]
1477         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1478         x * y using scaling, not as x * y + z.
1479         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1480         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1481         * math/libm-test.inc (fma_test): Add more tests.
1482         (fma_test_towardzero): Likewise.
1483         (fma_test_downward): Likewise.
1484         (fma_test_upward): Likewise.
1485
1486 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1487
1488         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1489
1490 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1491
1492         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1493         New variable.
1494
1495 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1496
1497         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1498
1499 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1500
1501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1502         Fix sort order.
1503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1504         Likewise.
1505
1506 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1507
1508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1509         Fix the order of the list for glibc 2.17.
1510         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1511         Likewise.
1512
1513 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1514
1515         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1516
1517 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1518
1519         [BZ #14610]
1520         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1521         for low part of x being zero before using __atanl (y).
1522         * math/libm-test.inc (atan2_test): Add another test.
1523
1524         * manual/install.texi (Configuring and compiling): Document
1525         general use of test-wrapper and test-wrapper-env.
1526         * INSTALL: Regenerated.
1527
1528         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1529         (__fma): 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-128/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         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1537         (__fmal): Do not extract and scale down low bits on after-rounding
1538         systems when result rounded to normal precision would have normal
1539         exponent.
1540         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1541         macro.
1542         (fma_test): Add more tests.
1543         (fma_test_towardzero): Likewise.
1544         (fma_test_downward): Likewise.
1545         (fma_test_upward): Likewise.
1546
1547 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1548
1549         * sysdeps/i386/tininess.h: Renamed to ...
1550         * sysdeps/x86/tininess.h: This.
1551         * sysdeps/x86_64/tininess.h: Removed.
1552
1553 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1554
1555         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1556         input.  Use $(build-program-cmd).
1557         ($(objpfx)tst-array1-static.out): Likewise.
1558         ($(objpfx)tst-array2.out): Likewise.
1559         ($(objpfx)tst-array3.out): Likewise.
1560         ($(objpfx)tst-array4.out): Likewise.
1561         ($(objpfx)tst-array5.out): Likewise.
1562         ($(objpfx)tst-array5-static.out): Likewise.
1563
1564 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1565
1566         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1567         if defined.
1568
1569         * nss/nsswitch.h (nss_interface_function): Provide new
1570         macro for use with NSS functions.
1571         * grp/initgroups.c: Use new macro.
1572         * nss/getXXbyYY.c: Likewise.
1573         * nss/getXXbyYY_r.c: Likewise.
1574         * nss/getXXent.c: Likewise.
1575         * nss/getXXent_r.c: Likewise.
1576         * sysdeps/posix/getaddrinfo.c: Likewise.
1577
1578 2012-10-30  Andreas Jaeger  <aj@suse.de>
1579
1580         * po/ru.po: Update Russion translation from translation project.
1581
1582 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1583
1584         [BZ #14152]
1585         [BZ #14783]
1586         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1587         result and shift together with sticky bit instead of replicating
1588         round-to-nearest rounding.
1589         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1590         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1591         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1592         missing underflow exceptions.
1593         (fma_test_towardzero): Add more tests.
1594         (fma_test_downward): Likewise.
1595         (fma_test_upward): Likewise.
1596
1597         [BZ #14047]
1598         * sysdeps/generic/tininess.h: New file.
1599         * sysdeps/i386/tininess.h: Likewise.
1600         * sysdeps/sh/tininess.h: Likewise.
1601         * sysdeps/x86_64/tininess.h: Likewise.
1602         * stdlib/tst-strtod-underflow.c: Likewise.
1603         * stdlib/tst-tininess.c: Likewise.
1604         * stdlib/strtod_l.c: Include <tininess.h>.
1605         (round_and_return): Do not set errno for exact underflow cases.
1606         Force an underflow exception when setting errno for underflow.
1607         Determine underflow based on rounding to normal precision if
1608         TININESS_AFTER_ROUNDING.
1609         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1610         ERANGE for exact underflow cases.
1611         * stdlib/Makefile (tests): Add tst-tininess and
1612         tst-strtod-underflow.
1613         ($(objpfx)tst-tininess): Use $(link-libm).
1614         ($(objpfx)tst-strtod-underflow): Likewise.
1615
1616 2012-10-30  Andreas Jaeger  <aj@suse.de>
1617
1618         [BZ#14767]
1619         * elf/Makefile (tests): Remove conditional for have-initfini-array
1620         since this is now always required and the variable does not exist
1621         anymore.
1622         (tests-static): Likewise.
1623         (modules-names): Likewise.
1624
1625         * po/eo.po: Add Esperanto translation from translation project.
1626
1627         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1628         merged with constructor/destructor.
1629         (init_array): Likewise.
1630         * elf/tst-array2dep.c (fini_array): Likewise.
1631         (init_array): Likewise.
1632
1633 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1634
1635         * manual/message.texi: Delete @cartouche tags.
1636
1637 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1638
1639         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1640         EOPNOTSUPP.
1641         * sysdeps/mach/hurd/fsync.c: Likewise.
1642
1643         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1644         [_POSIX_REALTIME_SIGNALS]: Change condition to
1645         [_POSIX_REALTIME_SIGNALS > 0].
1646
1647 2012-10-27  Andreas Jaeger  <aj@suse.de>
1648
1649         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1650         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1651         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1652         [__WORDSIZE != 64]: Likewise.
1653
1654 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1655
1656         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1657         *  iconvdata/tst-tables.sh: Likewise.
1658
1659 2012-10-25  David S. Miller  <davem@davemloft.net>
1660
1661         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1662         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1663         of strtoull.
1664
1665         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1666         ifunc-impl-list.c
1667         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1668         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1669         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1670         file.
1671
1672 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1673
1674         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1675         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1676         __getdirentries.
1677
1678 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1679             Jim Blandy  <jimb@codesourcery.com>
1680
1681         * scripts/cross-test-ssh.sh: New file.
1682         * manual/install.texi (Configuring and compiling): Document use of
1683         cross-test-ssh.sh.
1684         * INSTALL: Regenerated.
1685
1686 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1687
1688         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1689         EOPNOTSUPP.
1690
1691 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1692
1693         * Makeconfig (run-program-prefix): Fix comment.
1694
1695 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1696             Jim Blandy  <jimb@codesourcery.com>
1697
1698         * Makeconfig (test-wrapper): New variable,
1699         (test-wrapper-env): Likewise.
1700         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1701         (run-built-tests): Define to yes.
1702         (run-program-prefix): Use $(test-wrapper).
1703         (built-program-cmd): Likewise.
1704         * Rules (make-test-out): Use $(test-wrapper-env) and
1705         $(host-built-program-cmd).
1706         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1707         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1708         tst-pathopt.sh.
1709         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1710         $(test-wrapper-env) to tst-rtld-load-self.sh.
1711         ($(objpfx)order2.out): Use $(test-wrapper).
1712         ($(objpfx)tst-initorder.out): Likewise.
1713         ($(objpfx)tst-initorder2.out): Likewise.
1714         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1715         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1716         (test_wrapper_env): New variable.  Use it to run ld.so.
1717         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1718         Use it to run ld.so.
1719         (test_wrapper_env): Likewise.
1720         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1721         $(test-wrapper) to run-iconv-test.sh.
1722         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1723         (ICONV): Use $test_wrapper.
1724         * posix/Makefile ($(objpfx)globtest.out): Pass
1725         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1726         globtest.sh, not $(run-program-prefix).
1727         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1728         (test_wrapper): Likewise.
1729         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1730         set together with run_via_rtld_prefix.
1731         (run_program_prefix): Define in terms of test_wrapper and
1732         run_via_rtld_prefix.
1733
1734 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1735
1736         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1737         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1738         Targets removed.
1739
1740         [BZ #14743]
1741         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1742         Declare __clock_getres, __clock_gettime, __clock_settime,
1743         __clock_nanosleep, and __clock_getcpuclockid.
1744         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1745         Remove librt_hidden_def (clock_gettime).
1746         * sysdeps/unix/clock_gettime.c: Likewise.
1747         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1748         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1749         * rt/clock_getres.c: Define __clock_getres as an alias.
1750         * sysdeps/posix/clock_getres.c: Likewise.
1751         * rt/clock_settime.c: Define __clock_settime as an alias.
1752         * sysdeps/unix/clock_settime.c: Likewise.
1753         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1754         * sysdeps/unix/clock_nanosleep.c: Likewise.
1755         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1756         * rt/clock-compat.c: New file.
1757         * rt/Makefile (librt-routines): Add clock-compat and move
1758         $(clock-routines) to ...
1759         (routines): ... here, new variable.
1760         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1761         Don't add get_clockfreq here.
1762         * rt/Versions (libc: GLIBC_2.17): New version set.
1763         Add clock_* symbols here.
1764         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1765         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1766         (GLIBC_2.17): Add clock_* symbols.
1767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1768         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1769         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1771         Likewise.
1772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1773         Likewise.
1774         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1775         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1776         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1777         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1778         * NEWS: Mention the move.
1779
1780         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1781         Use __open, __read, __close rather than their public counterparts.
1782         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1783         (__get_clockfreq_via_cpuinfo): Likewise.
1784         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1785         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1786
1787         * config.h.in (HAVE_IFUNC): New #undef.
1788         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1789         was successful.
1790         * configure: Regenerated.
1791
1792 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1793
1794         * configure.in: Move READELF check to start of file.
1795         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1796         libc_cv_asm_gnu_indirect_function in the process.
1797         * configure: Regenerated.
1798
1799 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1800
1801         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1802         send the output to /dev/null.
1803         (libc_cv_cc_with_libunwind): Likewise.
1804         (libc_cv_as_noexecstack): Likewise.
1805         * configure: Regenerate.
1806
1807 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1808
1809         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1810
1811         * posix/globtest.sh (TMPDIR): Do not set.
1812         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1813         (testout): Likewise.
1814
1815 2012-10-24  Andreas Jaeger  <aj@suse.de>
1816
1817         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1818         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1819         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1820         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1821         posix_fadvise64, posix_fallocate64.
1822
1823         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1824         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1825         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1826         Likewise.
1827         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1828         Likewise.
1829         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1830
1831         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1832         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1833         <bits/fcntl-linux.h>.
1834         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1835
1836         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1837         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1838         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1839         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1840         [__WORDSIZE != 64]: Likewise.
1841
1842 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1843
1844         * Makeconfig (run-built-tests): New variable.
1845         * Rules [$(cross-compiling) = yes]: Change condition to
1846         [$(run-built-tests) = no].
1847         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1848         to [$(run-built-tests) = yes].
1849         * elf/Makefile [$(cross-compiling) = no]: Likewise
1850         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1851         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1852         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1853         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1854         * io/Makefile [$(cross-compiling) = no]: Likewise.
1855         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1856         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1857         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1858         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1859         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1860         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1861         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1862         * string/Makefile [$(cross-compiling) = no]: Likewise.
1863
1864         * posix/Makefile ($(objpfx)globtest.out): Pass
1865         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1866         $(rtld-installed-name).
1867         * posix/globtest.sh (elf_objpfx): Remove variable.
1868         (rtld_installed_name): Likewise.
1869         (library_path): Likewise.
1870         (run_program_prefix): New variable.  Use for running globtest
1871         binary.
1872
1873 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1874             Joseph Myers  <joseph@codesourcery.com>
1875
1876         * Makeconfig (host-built-program-cmd): New variable.
1877         * elf/Makefile (tst-stackguard1-ARGS): Use
1878         $(host-built-program-cmd).
1879         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1880         (tst-spawn-ARGS): Likewise.
1881         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1882
1883 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1884             Jim Blandy  <jimb@codesourcery.com>
1885
1886         * Makeconfig (run-via-rtld-prefix): New variable.
1887         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1888         (built-program-cmd): Likewise.
1889
1890 2012-10-22  Andreas Jaeger  <aj@suse.de>
1891
1892         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1893         __O_RSYNC if it exists, otherwise to O_SYNC.
1894
1895 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1896             Joseph Myers  <joseph@codesourcery.com>
1897
1898         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1899         /dev/null.
1900         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1901         from /dev/null
1902         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1903         /dev/null.
1904
1905 2012-10-22  Andreas Jaeger  <aj@suse.de>
1906
1907         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1908         Define always.
1909         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1910
1911         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1912         bits/fcntl-linux.h.
1913
1914         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1915         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1916
1917         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1918         to __O_LARGEFILE.
1919         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1920         to __O_LARGEFILE.
1921
1922 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1923             Joseph Myers  <joseph@codesourcery.com>
1924
1925         * config.make.in (NM): New variable.
1926
1927 2012-10-21  Andreas Jaeger  <aj@suse.de>
1928
1929         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1930         definitions and declarations that are provided by
1931         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1932
1933 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1934
1935         [BZ #14683]
1936         * elf/Makefile (tests-static): Add tst-leaks1-static.
1937         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1938         ($(objpfx)tst-leaks1-static): New rule.
1939         ($(objpfx)tst-leaks1-static-mem): Likewise.
1940         (tst-leaks1-static-ENV): New macro.
1941         * elf/dl-open.c (dl_open_worker): Check the main application
1942         only if SHARED is defined.
1943         * elf/tst-leaks1-static.c: New file.
1944
1945 2012-10-20  Andreas Jaeger  <aj@suse.de>
1946
1947         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1948         generic values for Linux.
1949         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1950         and declarations that are provided by <bits/fcntl-linux.h> and
1951         include <bits/fcntl-linux.h>.
1952         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1953         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1954
1955 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1956
1957         * io/fcntl.h: Move include of <bits/types.h> to the top and
1958         include it unconditionally.
1959
1960 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1961
1962         * wcsmbs/Makefile (tests-ifunc): New variable.
1963         (tests): Add $(tests-ifunc).
1964         * wcsmbs/test-wcschr-ifunc.c: New file.
1965         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
1966         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
1967         * wcsmbs/test-wcslen-ifunc.c: Likewise.
1968         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
1969         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
1970
1971         * string/Makefile (tests-ifunc): New variable.
1972         (tests): Add $(tests-ifunc).
1973         * string/test-memccpy.c (TEST_NAME): New macro.
1974         * string/test-memchr.c (TEST_NAME): Likewise.
1975         * string/test-memcmp.c (TEST_NAME): Likewise.
1976         * string/test-memcpy.c (TEST_NAME): Likewise.
1977         * string/test-memmem.c (TEST_NAME): Likewise.
1978         * string/test-memmove.c (TEST_NAME): Likewise.
1979         * string/test-memset.c (TEST_NAME): Likewise.
1980         * string/test-rawmemchr.c (TEST_NAME): Likewise.
1981         * string/test-stpcpy.c (TEST_NAME): Likewise.
1982         * string/test-stpncpy.c (TEST_NAME): Likewise.
1983         * string/test-strcasecmp.c (TEST_NAME): Likewise.
1984         * string/test-strcasestr.c (TEST_NAME): Likewise.
1985         * string/test-strcat.c (TEST_NAME): Likewise.
1986         * string/test-strchr.c (TEST_NAME): Likewise.
1987         * string/test-strcmp.c(TEST_NAME): Likewise.
1988         * string/test-strcpy.c (TEST_NAME): Likewise.
1989         * string/test-strcspn.c (TEST_NAME): Likewise.
1990         * string/test-strlen.c (TEST_NAME): Likewise.
1991         * string/test-strncasecmp.c (TEST_NAME): Likewise.
1992         * string/test-strncmp.c (TEST_NAME): Likewise.
1993         * string/test-strncpy.c (TEST_NAME): Likewise.
1994         * string/test-strnlen.c (TEST_NAME): Likewise.
1995         * string/test-strpbrk.c (TEST_NAME): Likewise.
1996         * string/test-strrchr.c (TEST_NAME): Likewise.
1997         * string/test-strspn.c (TEST_NAME): Likewise.
1998         * string/test-strstr.c (TEST_NAME): Likewise.
1999         * string/test-bcopy-ifunc.c: New file.
2000         * string/test-bzero-ifunc.c: Likewise.
2001         * string/test-memccpy-ifunc.c: Likewise.
2002         * string/test-memchr-ifunc.c: Likewise.
2003         * string/test-memcmp-ifunc.c: Likewise.
2004         * string/test-memcpy-ifunc.c: Likewise.
2005         * string/test-memmem-ifunc.c: Likewise.
2006         * string/test-memmove-ifunc.c: Likewise.
2007         * string/test-mempcpy-ifunc.c: Likewise.
2008         * string/test-memset-ifunc.c: Likewise.
2009         * string/test-rawmemchr-ifunc.c: Likewise.
2010         * string/test-stpcpy-ifunc.c: Likewise.
2011         * string/test-stpncpy-ifunc.c: Likewise.
2012         * string/test-strcasecmp-ifunc.c: Likewise.
2013         * string/test-strcasestr-ifunc.c: Likewise.
2014         * string/test-strcat-ifunc.c: Likewise.
2015         * string/test-strchr-ifunc.c: Likewise.
2016         * string/test-strchrnul-ifunc.c: Likewise.
2017         * string/test-strcmp-ifunc.c: Likewise.
2018         * string/test-strcpy-ifunc.c: Likewise.
2019         * string/test-strcspn-ifunc.c: Likewise.
2020         * string/test-strlen-ifunc.c: Likewise.
2021         * string/test-strncasecmp-ifunc.c: Likewise.
2022         * string/test-strncat-ifunc.c: Likewise.
2023         * string/test-strncmp-ifunc.c: Likewise.
2024         * string/test-strncpy-ifunc.c: Likewise.
2025         * string/test-strnlen-ifunc.c: Likewise.
2026         * string/test-strpbrk-ifunc.c: Likewise.
2027         * string/test-strrchr-ifunc.c: Likewise.
2028         * string/test-strspn-ifunc.c: Likewise.
2029         * string/test-strstr-ifunc.c: Likewise.
2030
2031         * debug/Makefile (tests-ifunc): New variable.
2032         (tests): Add $(tests-ifunc).
2033         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
2034         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
2035         * debug/test-stpcpy_chk-ifunc.c: New file.
2036         * debug/test-strcpy_chk-ifunc.c: Likewise.
2037
2038 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2039
2040         [BZ #13601]
2041         * elf/dl-load.c (open_verify): Retry read if the entire ELF
2042         header is not read in.
2043
2044 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
2045
2046         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
2047         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2048         directly.  Pass built executable to script as
2049         $(built-program-cmd).
2050         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2051         $testprogram without using LD_LIBRARY_PATH and $ldso.
2052
2053         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2054         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2055         $(rtld-installed-name).
2056         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2057         (rtld_installed_name): Likewise.
2058         (library_path): Likewise.
2059         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2060         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2061         $(run-program-prefix) to tst-tables.sh.
2062         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2063         it to run tst-table-from and tst-table-to.
2064         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2065         Pass it to tst-table.sh.
2066         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2067         $(run-program-prefix) to tst-gettext.sh.
2068         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2069         tst-translit.sh.
2070         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2071         tst-gettext2.sh.
2072         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2073         to run tst-gettext.
2074         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2075         to run tst-gettext2.
2076         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2077         to run tst-translit.
2078         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2079         $(run-program-prefix) to tst-mtrace.sh.
2080         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2081         to run tst-mtrace.
2082         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2083         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2084         $(rtld-installed-name).
2085         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2086         (rtld_installed_name): Likewise.
2087         (run_program_prefix): New variable.  Use it to run wordexp-test.
2088
2089         * Makeconfig (ARCH): Remove all definitions.
2090         (machine): Likewise.
2091         [ARCH]: Remove conditional code.
2092         [!objdir]: Give error.
2093         [!objdir] (objpfx): Remove.
2094         [!objdir] (common-objpfx): Likewise.
2095         [!objdir] (common-objdir): Likewise.
2096         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2097         AC_CONFIG_FILES call.
2098         * configure: Regenerated.
2099
2100         [BZ #13888]
2101         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2102         or TMPDIR.
2103         (testout): Likewise.
2104
2105         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2106         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2107         $(rtld-installed-name).
2108         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2109         (rtld_installed_name): Likwise.
2110         (runit): Remove function.
2111         (run_getconf): New variable,  Use it for running getconf binary.
2112
2113 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2114
2115         [BZ #14716]
2116         * string/test-memmem.c (check_result): New function.
2117         (do_one_test): Use it.
2118         (check1): New function.
2119         (test_main): Use it.
2120
2121 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2122
2123         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2124
2125 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2126
2127         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2128         (_G_LSEEK64): Likewise.
2129         (_G_MMAP64): Likewise.
2130         (_G_FSTAT64): Likewise.
2131         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2132         (_G_LSEEK64): Likewise.
2133         (_G_MMAP64): Likewise.
2134         (_G_FSTAT64): Likewise.
2135         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2136         unconditional.  Call __mmap64 directly.
2137         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2138         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2139         __lseek64 directly.
2140         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2141         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2142         __mmap64 directly.
2143         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2144         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2145         __lseek64 directly.
2146         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2147         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2148         __lseek64 directly.
2149         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2150         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2151         __lseek64 directly.
2152         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2153         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2154         __fxstat64 directly.
2155         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2156         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2157         unconditional.
2158         (freopen64) [!_G_OPEN64]: Remove conditional code.
2159         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2160         unconditional.
2161         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2162         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2163         unconditional.
2164         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2165         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2166         unconditional.
2167         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2168         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2169         unconditional.
2170         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2171         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2172         unconditional.
2173         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2174         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2175         unconditional.
2176         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2177         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2178         unconditional.
2179         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2180
2181 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2182
2183         [BZ #12140]
2184         * manual/memory.texi (Malloc Tunable Parameters): Add note
2185         about free list pointers overwriting some perturb bytes.
2186         Wording suggested by Roland McGrath.
2187
2188 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2189
2190         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2191         (lgamma_test): Likewise.
2192         (tgamma_test): Likewise.
2193
2194 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2195
2196         [BZ #14700]
2197         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2198         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2199
2200 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2201
2202         * NEWS: Mention BZ #14716.
2203         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2204         when removing AVAILABLE1_USES_J macro.
2205
2206 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2207
2208         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2209         (__bswap_64): __uint64_t for unsigned 64-bit int.
2210
2211 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2212
2213         * include/string.h (memmem): Declare libc hidden alias.
2214         * string/memmem.c (memmem): Define libc hidden alias.
2215         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2216         __read, __close instead of open, read, close.
2217
2218 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2221         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2222         global and hidden.
2223         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2224         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2225         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2226         Likewise.
2227         (__rawmemchr_sse2): Likewise.
2228         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2229         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2230         (__strchr_sse2): Likewise.
2231         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2232         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2233         (__strcasecmp_sse2): Likewise.
2234         (__strncasecmp_sse2): Likewise.
2235         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2236         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2237         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2238         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2239         (__strrchr_sse2): Likewise.
2240         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2241         ifunc-impl-list.c.
2242         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2243         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2244         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2245         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2246         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2247         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2248         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2249         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2250         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2251         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2252         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2253         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2254         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2255         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2256         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2257         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2258         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2259         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2260         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2261         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2262         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2263         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2264         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2265         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2266         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2267         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2268         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2269         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2270         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2271         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2272
2273         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2274         global and hidden.
2275         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2276         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2277         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2278         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2279         Likewise.
2280         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2281         Likewise.
2282         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2283         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2284         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2285         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2286         ifunc-impl-list.c.
2287         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2288         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2289         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2290         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2291         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2292         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2293         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2294         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2295         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2296         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2297         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2298         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2299         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2300         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2301         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2302         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2303         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2304         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2305         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2306         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2307         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2308         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2309         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2310         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2311         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2312         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2313         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2314         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2315         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2316         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2317         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2318         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2319         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2320         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2321         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2322         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2323         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2324         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2325         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2326         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2327         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2328
2329         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2330         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2331         * include/ifunc-impl-list.h: New file.
2332         * misc/ifunc-impl-list.c: Likewise.
2333         * misc/Makefile (routines): Add ifunc-impl-list.
2334         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2335         * string/test-string.h: Include <ifunc-impl-list.h>.
2336         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2337         impl_array): New variables.
2338         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2339         are defined.
2340         (test_init): Call __libc_ifunc_impl_list to initialize
2341         func_list if TEST_IFUNC and TEST_NAME are defined.
2342
2343         * string/Makefile (strop-tests): Add bcopy and bzero.
2344         * string/test-bcopy.c: New file.
2345         * string/test-bzero.c: Likewise.
2346         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2347         defined.
2348         * string/test-memset.c: Support bzero test if TEST_BZERO is
2349         defined.
2350         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2351         __libc_memmove.
2352         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2353         __libc_memset.
2354         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2355         of memset.
2356
2357 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2358
2359         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2360         * configure: Regenerated.
2361
2362         * Makeconfig (+link-static-before-libc): Don't include
2363         $(link-static-libc).
2364
2365         * libio/libio.h (_IO_pos_t): Remove.
2366
2367 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2368
2369         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2370         McGrath.
2371
2372 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2373
2374         * crypt/crypt-entry.c: Include fips-private.h.
2375         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2376         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2377         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2378         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2379
2380 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2381
2382         * crypt/crypt-private.h: Include stdbool.h.
2383         (_ufc_setup_salt_r): Return bool.
2384         * crypt/crypt-entry.c: Include errno.h.
2385         (__crypt_r): Return NULL with EINVAL for bad salt.
2386         * crypt/crypt_util.c (bad_for_salt): New.
2387         (_ufc_setup_salt_r): Check that salt is long enough and within
2388         the specified alphabet.
2389         * crypt/badsalttest.c: New file.
2390         * crypt/Makefile (tests): Add it.
2391         ($(objpfx)badsalttest): New.
2392
2393 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2394
2395         * NEWS: Add entry for BZ #14602.
2396
2397 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2398
2399         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2400         type-generic.
2401         * math/libm-test.inc: Update comment listing what functions and
2402         macros are tested.
2403         (isgreater_test): New function.
2404         (isgreaterequal_test): Likewise.
2405         (isless_test): Likewise.
2406         (islessequal_test): Likewise.
2407         (islessgreater_test): Likewise.
2408         (isunordered_test): Likewise.
2409         (main): Call the new functions.
2410
2411 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2412
2413         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2414         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2415         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2416         * sysdeps/i386/configure: Regenerated.
2417         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2418         * sysdeps/mach/configure: Regenerated.
2419         * sysdeps/mach/hurd/configure: Regenerated.
2420         * sysdeps/powerpc/configure: Regenerated.
2421         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2422         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2423         * sysdeps/s390/s390-32/configure: Regenerated.
2424         * sysdeps/s390/s390-64/configure: Regenerated.
2425         * sysdeps/sh/configure: Regenerated.
2426         * sysdeps/sparc/configure: Regenerated.
2427         * sysdeps/unix/sysv/linux/configure: Regenerated.
2428         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2429         * sysdeps/x86_64/configure: Regenerated.
2430
2431         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2432         defined.  Don't check if MAP is NULL.
2433
2434 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2435
2436         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2437         (_G_stat64): Likewise.
2438         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2439         (_G_stat64): Likewise.
2440         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2441         instead of struct _G_stat64.
2442         * libio/fileops.c (mmap_remap_check): Likewise.
2443         (decide_maybe_mmap): Likewise.
2444         (_IO_new_file_seekoff): Likewise.
2445         (_IO_file_stat): Likewise.
2446         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2447         _G_off64_t.
2448         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2449         instead of struct _G_stat64.
2450         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2451
2452 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2453
2454         [BZ #14602]
2455         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2456         Replace with ...
2457         (CHECK_EOL): New macro.
2458         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2459         CHECK_EOL.
2460         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2461         Replace with CHECK_EOL.
2462         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2463         Replace with CHECK_EOL.
2464
2465 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2466
2467         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2468         type-generic.
2469         * math/libm-test.inc: Update comment listing what functions and
2470         macros are tested.
2471         (finite_test): New function.
2472         (isinf_test): Likewise.
2473         (isnan_test): Likewise.
2474         (fpclassify_test): Test subnormal input.
2475         (isfinite_test): Likewise.
2476         (isnormal_test): Likewise.
2477         (main): Call the new functions.
2478
2479 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2480
2481         [BZ #14660]
2482         * Makerules (%.dynsym): Force C locale when running
2483         $(OBJDUMP) --dynamic-syms.
2484
2485 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2486
2487         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2488         <stdint.h>.
2489
2490 2012-10-06  David S. Miller  <davem@davemloft.net>
2491
2492         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2493         upper 32-bits of the length value in %o2 since we use branch-on-register
2494         tests which consider the entire 64-bit register.
2495
2496 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2497
2498         * string/test-strstr.c (check2): Add a test for page boundary.
2499
2500 2012-10-05  David S. Miller  <davem@davemloft.net>
2501
2502         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2503         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2504         file.
2505         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2506         sysdep_routines.
2507         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2508         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2509         and bzero when HWCAP_SPARC_CRYPTO is present.
2510
2511 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2512
2513         [BZ #14602]
2514         * string/test-strstr.c (check2): New function.
2515         (test_main): Call check2.
2516
2517         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2518         and bug-strchr1.
2519         * string/bug-strcasestr1.c (do_test): Moved to ...
2520         * string/test-strcasestr.c (check1): Here.  New function.
2521         (do_one_test): Break out result checking code into ...
2522         (check_result): This.  New function.
2523         (do_one_test): Call check_result.
2524         (test_main): Call check1.
2525         * string/bug-strchr1.c (do_test): Moved to ...
2526         * string/test-strchr.c (check1): Here.  New function.
2527         (do_one_test): Break out result checking code into ...
2528         (check_result): This.  New function.
2529         (do_one_test): Call check_result.
2530         (test_main): Call check1.
2531         * string/bug-strstr1.c (main): Moved to ...
2532         * string/test-strchr.c (check1): Here.  New function.
2533         (do_one_test): Break out result checking code into ...
2534         (check_result): This.  New function.
2535         (do_one_test): Call check_result.
2536         (test_main): Call check1.
2537         * string/bug-strcasestr1.c: Removed.
2538         * string/bug-strchr1.c: Likewise.
2539         * string/bug-strstr1.c: Likewise.
2540
2541         * elf/Makefile (dl-routines): Add hwcaps.
2542         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2543         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2544         (_dl_important_hwcaps): Moved to ...
2545         * elf/dl-hwcaps.c: Here.  New file.
2546         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2547
2548         [BZ #14557]
2549         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2550         if IS_IN_rtld isn't defined.
2551
2552         * elf/dl-support.c (_dl_sysinfo_map): New.
2553         Include "get-dynamic-info.h" and "setup-vdso.h".
2554         (_dl_non_dynamic_init): Call setup_vdso.
2555         * elf/dynamic-link.h: Don't include <assert.h>.
2556         (elf_get_dynamic_info): Moved to ...
2557         * elf/get-dynamic-info.h: Here.  New file.
2558         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2559         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2560         * elf/setup-vdso.h: Here.  New file.
2561         * elf/rtld.c: Include "setup-vdso.h".
2562         (dl_main): Call setup_vdso.
2563
2564 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2565
2566         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2567         creal in comment listing functions tested.  List finite, isinf,
2568         isnan, isless, islessequal, isgreater, isgreaterequal,
2569         islessgreater, isunordered, lgamma_r and pow10 as functions and
2570         macros not tested.  Mention which functions not tested are aliases
2571         for other functions.  Fix typo.  Note that signs of NaNs are not
2572         tested.
2573
2574         * scripts/config.guess: Update from config.git.
2575         * scripts/config.sub: Likewise.
2576
2577 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2578
2579         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2580         * misc/madvise.c (madvise): Renamed to __madvise.
2581         Make madvise a weak alias.
2582         * include/sys/mman.h: Declare __madvise.
2583         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2584         * sysdeps/unix/syscalls.list
2585         (madvise): Make __madvise the strong name, and madvise a weak alias.
2586         * sysdeps/unix/sysv/linux/syscalls.list
2587         (madvise, mmap): Remove redundant entries.
2588         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2589         * malloc/malloc.c (mtrim): Likewise.
2590         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2591
2592 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2593
2594         * sysdeps/mach/hurd/dl-cache.c: File removed.
2595         * config.h.in (USE_LDCONFIG): New #undef.
2596         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2597         * configure: Regenerated.
2598         * elf/Makefile (dl-routines): Add dl-cache only under
2599         [$(use-ldconfig) = yes].
2600         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2601         cache on [USE_LDCONFIG].
2602         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2603         [USE_LDCONFIG].
2604         * elf/rtld.c (dl_main): Likewise.
2605
2606 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2607
2608         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2609         _SC_LEVEL4_CACHE_LINESIZE.
2610
2611 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2612
2613         * sysdeps/unix/bsd/confstr.h: File removed.
2614
2615 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2616
2617         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2618         sys/sdt-config.h.
2619
2620 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2621
2622         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2623         Make 'mapoff' field ElfW(Off) rather than off_t.
2624
2625 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2626
2627         * nscd/Makefile: Remove nscd-cflags and all its users.
2628         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2629         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2630
2631         [BZ #10631]
2632         * malloc.c (malloc_printerr): Clarify error message.
2633
2634 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2635
2636         [BZ #14648]
2637         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2638         Set bit_FMA_Usable if FMA is supported.
2639         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2640         macro.
2641         (bit_FMA4_Usable): Updated.
2642         (index_FMA_Usable): New macro.
2643         (CPUID_FMA): Likewise
2644         (HAS_FMA): Defined with bit_FMA_Usable.
2645
2646 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2647
2648         * bits/types.h (__swblk_t): Type removed.
2649         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2650         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2651         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2652         (__SWBLK_T_TYPE): Likewise.
2653         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2654         (__SWBLK_T_TYPE): Likewise.
2655         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2656         (__SWBLK_T_TYPE): Likewise.
2657         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2658         (__SWBLK_T_TYPE): Likewise.
2659
2660 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2661             Honza Horak <hhorak@redhat.com>
2662
2663         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2664         (xdr_mapname): Use YPMAXMAP as maxsize.
2665         (xdr_peername): Use YPMAXPEER as maxsize.
2666         (xdr_keydat): Use YPAXRECORD as maxsize.
2667         (xdr_valdat): Use YPMAXRECORD as maxsize.
2668
2669 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2670
2671         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2672
2673         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2674         * csu/init-first.c: ... here.
2675         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2676         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2677         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2678         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2679         * sysdeps/i386/init-first.c: File removed.
2680         * sysdeps/sh/init-first.c: File removed.
2681
2682 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2683
2684         [BZ #14645]
2685         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2686         if x * y might underflow to zero and z is zero.
2687         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2688         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2689         * math/libm-test.inc (min_subnorm_value): New variable.
2690         (fma_test): Add more tests.
2691         (fma_test_towardzero): Likewise.
2692         (fma_test_downward): Likewise
2693         (fma_test_upward): Likewise.
2694         (initialize): Set min_subnorm_value.
2695
2696 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2697
2698         [BZ #14638]
2699         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2700         0 + 0.
2701         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2702         mode for addition resulting in exact zero.
2703         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2704         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2705         exact 0 + 0.
2706         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2707         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2708         * math/libm-test.inc (fma_test): Add more tests.
2709         (fma_test_towardzero): New function.
2710         (fma_test_downward): Likewise.
2711         (fma_test_upward): Likewise.
2712         (main): Call the new functions.
2713
2714 2012-09-28  David S. Miller  <davem@davemloft.net>
2715
2716         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2717
2718 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2719
2720         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2721         instead of SIGALRM.
2722
2723         * sysdeps/gnu/_G_config.h: Moved to ...
2724         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2725         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2726         * sysdeps/generic/_G_config.h: ... here.
2727
2728         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2729
2730         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2731
2732         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2733         Conditionalize target on [libnss_test1.so-version].
2734
2735         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2736
2737         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2738         (elfobjdir): Move out of conditionals.
2739
2740         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2741         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2742         (__nss_lookup_function): Conditionalize label remove_from_tree on
2743         [!DO_STATIC_NSS || SHARED], matching its only use.
2744
2745 2012-09-28  David S. Miller  <davem@davemloft.net>
2746
2747         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2748         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2749         file.
2750         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2751         sysdep_routines.
2752         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2753         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2754         when HWCAP_SPARC_CRYPTO is present.
2755
2756 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2757
2758         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2759
2760 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2761
2762         [BZ #6530]
2763         * stdio-common/vfprintf.c (process_string_arg): Revert
2764         2000-07-22 change.
2765
2766 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2767
2768         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2769         for testcase.
2770         * stdio-common/tst-sprintf.c: Include <locale.h>
2771         (main): Test sprintf's handling of incomplete multibyte
2772         characters.
2773
2774 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2775
2776         * elf/dl-runtime.c (VERSYMIDX): Removed.
2777         * elf/dl-version.c (VERSYMIDX): Likewise.
2778         * elf/do-rel.h (VERSYMIDX): Likewise.
2779         (VALIDX): Likewise.
2780         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2781         * elf/rtld.c (VALIDX): Likewise.
2782         (ADDRIDX): Likewise.
2783         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2784         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2785         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2786         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2787         (VALIDX): Likewise.
2788         (ADDRIDX): Likewise.
2789
2790 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2791
2792         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2793
2794 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2795
2796         [BZ #11438]
2797         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2798         to global scope.
2799         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2800         addresses are in the same scope as 192.0.2/24.
2801         * posix/gai.conf: Document new scope table defaults.
2802
2803 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2804
2805         [BZ #5298]
2806         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2807         for ftell.  Compute offsets from write pointers instead.
2808         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2809
2810 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2811
2812         [BZ #14543]
2813         * libio/Makefile (tests): New test case tst-fseek.
2814         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2815         combination works in wide mode.
2816         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2817         state when the external buffer state changes.
2818
2819 2012-09-27  David S. Miller  <davem@davemloft.net>
2820
2821         [BZ #14376]
2822         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2823         pass reloc->r_addend in as the 'high' argument to
2824         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2825
2826         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2827
2828 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2829
2830         * rt/tst-aio2.c: Include <pthread.h>.
2831         * rt/tst-aio3.c: Likewise.
2832
2833 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2834
2835         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2836
2837 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2838
2839         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2840         contents on [SHARED].
2841
2842 2012-09-26  Marek Polacek  <polacek@redhat.com>
2843
2844         [BZ #14530]
2845         [BZ #13741]
2846         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2847         for C++ and GCC <4.3 as well as for non GCC compilers.
2848
2849 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2850
2851         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2852
2853 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2854
2855         * Makefile.in (all, install): Declare with .PHONY.
2856         Reported by Michael Hope <michael.hope@linaro.org>.
2857
2858 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2859
2860         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2861         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2862         system header.
2863         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2864         Likewise.
2865         (sydep_routines): Add the new and the internal functions.
2866         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2867         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2869         (GLIBC_2.17): Add the new function.
2870         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2871         (GLIBC_2.17): Likewise.
2872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2873         (GLIBC_2.17): Likewise.
2874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2875         (GLIBC_2.17): Likewise.
2876         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2877
2878 2012-09-25  Alan Modra  <amodra@gmail.com>
2879
2880         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2881         Add release barrier before setting once_control to say
2882         initialisation is done.  Add hints on lwarx.  Use macro in
2883         place of isync.
2884         (clear_once_control): Add release barrier.
2885
2886 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2887
2888         [BZ #13629]
2889         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2890         specially.
2891         * math/s_clog10.c (__clog10): Likewise.
2892         * math/s_clog10f.c (__clog10f): Likewise.
2893         * math/s_clog10l.c (__clog10l): Likewise.
2894         * math/s_clogf.c (__clogf): Likewise.
2895         * math/s_clogl.c (__clogl): Likewise.
2896         * math/Makefile (libm-calls): Add x2y2m1.
2897         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2898         (__x2y2m1): Likewise.
2899         (__x2y2m1l): Likewise.
2900         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2901         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2902         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2903         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2904         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2905         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2906         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2907         * sysdeps/i386/fpu/libm-test-ulps: Update.
2908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2909
2910         [BZ #14621]
2911         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2912         int as type of variable DEPTH.
2913         (glob): Use size_t instead of int as type of variables NEWCOUNT
2914         and OLD_PATHC.
2915
2916 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2917
2918         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2919         Add s_sincosf-sse2.
2920         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2921         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2922         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2923         macros for using routine as __sincosf_ia32.
2924         Use macro for function declaration and weak_alias.
2925         * sysdeps/i386/fpu/libm-test-ulps: Update.
2926
2927         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2928         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2929
2930         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2931         subnormal argument.
2932         * math/s_cexpf.c (__cexpf): Likewise.
2933         * math/s_csinf.c (__csinf): Likewise.
2934         * math/s_csinhf.c (__csinhf): Likewise.
2935         * math/s_ctanf.c (__ctanf): Likewise.
2936         * math/s_ctanhf.c (__ctanhf): Likewise.
2937         * math/s_ccosh.c (__ccoshf): Likewise.
2938         * math/s_cexp.c (__cexpl): Likewise.
2939         * math/s_csin.c (__csin): Likewise.
2940         * math/s_csinh.c (__csinh): Likewise.
2941         * math/s_ctan.c (__ctan): Likewise.
2942         * math/s_ctanh.c (ctanh): Likewise.
2943         * math/s_ccoshl.c (__ccoshl): Likewise.
2944         * math/s_cexpl.c (__cexpl): Likewise.
2945         * math/s_csinl.c (__csinl): Likewise.
2946         * math/s_csinhl.c (__csinhl): Likewise.
2947         * math/s_ctanl.c (__ctanl): Likewise.
2948         * math/s_ctanhl.c (__ctanhl): Likewise.
2949
2950 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2951
2952         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2953         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2954         (_IO_off_t): Define to __off_t, not _G_off_t.
2955         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2956         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2957         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2958         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2959         type of __dummy and __dummy2 fields.
2960         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
2961         (_G_ssize_t): Likewise.
2962         (_G_off_t): Likewise.
2963         (_G_pid_t): Likewise.
2964         (_G_uid_t): Likewise.
2965         (_G_wchar_t): Likewise.
2966         (_G_wint_t): Likewise.
2967         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
2968         (_G_ssize_t): Likewise.
2969         (_G_off_t): Likewise.
2970         (_G_pid_t): Likewise.
2971         (_G_uid_t): Likewise.
2972         (_G_wchar_t): Likewise.
2973         (_G_wint_t): Likewise.
2974         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
2975         (_G_ssize_t): Likewise.
2976         (_G_off_t): Likewise.
2977         (_G_pid_t): Likewise.
2978         (_G_uid_t): Likewise.
2979         (_G_wchar_t): Likewise.
2980         (_G_wint_t): Likewise.
2981
2982 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2983
2984         * malloc/arena.c: Include malloc-sysdep.h.
2985         (shrink_heap): Use check_may_shrink_heap to decide if madvise
2986         is sufficient to shrink the heap or an unmap is needed.
2987         * sysdeps/generic/malloc-sysdep.h: New file.  Define
2988         new function check_may_shrink_heap.
2989         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
2990         new function check_may_shrink_heap.
2991
2992 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
2993
2994         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
2995         comments.
2996
2997 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
2998
2999         * catgets/test-gencat.sh: Add "set -e".
3000         * elf/tst-pathopt.sh: Likewise.
3001         * grp/tst_fgetgrent.sh: Likewise.
3002         * iconvdata/run-iconv-test.sh: Likewise.
3003         * intl/tst-gettext.sh: Likewise.
3004         * intl/tst-gettext2.sh: Likewise.
3005         * intl/tst-gettext4.sh: Likewise.
3006         * intl/tst-gettext6.sh: Likewise.
3007         * intl/tst-translit.sh: Likewise.
3008         * io/ftwtest-sh: Likewise.
3009         * libio/test-freopen.sh: Likewise.
3010         * malloc/tst-mtrace.sh: Likewise.
3011         * posix/globtest.sh: Likewise.
3012         * posix/tst-getconf.sh: Likewise.
3013         * posix/wordexp-tst.sh: Likewise.
3014         * stdio-common/tst-printf.sh: Likewise.
3015         * stdio-common/tst-unbputc.sh: Likewise.
3016         * stdlib/tst-fmtmsg.sh: Likewise.
3017         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3018         * catgets/Makefile: Do not specify -e option when running
3019         testsuite shell scripts.
3020         * elf/Makefile: Likewise.
3021         * grp/Makefile: Likewise.
3022         * iconvdata/Makefile: Likewise.
3023         * intl/Makefile: Likewise.
3024         * io/Makefile: Likewise.
3025         * libio/Makefile: Likewise.
3026         * malloc/Makefile: Likewise.
3027         * posix/Makefile: Likewise.
3028         * stdio-common/Makefile: Likewise.
3029         * stdlib/Makefile: Likewise.
3030         * sysdeps/x86_64/Makefile: Likewise.
3031
3032         * io/ftwtest-sh: Add copyright header.
3033         * posix/globtest.sh: Likewise.
3034         * posix/tst-getconf.sh: Likewise.
3035         * posix/wordexp-tst.sh: Likewise.
3036         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3037
3038 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3039
3040         [BZ #13679]
3041         * Makeconfig (+link): Defined as $(+link-static) if
3042         $(build-shared) isn't yes.
3043         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3044         isn't yes.
3045         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3046
3047         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3048
3049         [BZ #14562]
3050         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3051         new chunk size with MALLOC_ALIGN_MASK.
3052
3053 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3054
3055         [BZ #5044]
3056         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3057         <rounding-mode.h>.
3058         (__printf_fphex): Determine rounding using get_rounding_mode and
3059         round_away.
3060         * stdio-common/tst-printf-round.c (struct hex_test): New
3061         structure.
3062         (hex_tests): New variable.
3063         (test_hex_in_one_mode): New function.
3064         (do_test): Also run tests for hex float output.
3065
3066 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3067
3068         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3069         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3070         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3071         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3072         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3073         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3074         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3075         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3076
3077 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3078
3079         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3080         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3081         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3082         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3083
3084 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3085
3086         [BZ #14579]
3087         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3088         mode only.
3089         * elf/tst-rtld-load-self.sh: New test.
3090         * elf/Makefile: Run it.
3091
3092 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3093
3094         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3095         (tst-writev-ENV): Remove.
3096         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3097
3098 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3099
3100         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3101
3102 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3103
3104         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3105         unconditional.
3106         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3107         Likewise.
3108         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3109         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3110         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3111         Likewise.
3112
3113 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3114
3115         [BZ #14587]
3116         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3117         * config.make.in (have-cpp-asm-debuginfo): Removed.
3118         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3119         * configure: Regenerated.
3120
3121 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3122
3123         [BZ #5044]
3124         * stdio-common/printf_fp.c: Include <stdbool.h> and
3125         <rounding-mode.h>.
3126         (___printf_fp): Determine rounding using get_rounding_mode and
3127         round_away.
3128         * stdio-common/tst-printf-round.c: New file.
3129         * stdio-common/Makefile (tests): Add tst-printf-round.
3130         (link-libm): New variable.
3131         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3132
3133 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3134
3135         [BZ #14576]
3136         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3137         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3138         Likewise.
3139         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3140         Likewise.
3141
3142 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3143
3144         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3145         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3146         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3147         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3148
3149 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3150
3151         [BZ #14518]
3152         * include/rounding-mode.h: New file.
3153         * sysdeps/generic/get-rounding-mode.h: Likewise.
3154         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3155         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3156         (MAX_VALUE): New macro.
3157         (MIN_VALUE): Likewise.
3158         (overflow_value): New function.
3159         (underflow_value): Likewise.
3160         (round_and_return): Use overflow_value and underflow_value to
3161         determine return values in overflow and underflow cases.  Use
3162         round_away to determine rounding depending on rounding mode.
3163         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3164         determine return values in overflow and underflow cases.
3165         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3166         (struct test_results): New structure.
3167         (struct test): Use struct test_results to store expected results
3168         for all rounding modes.
3169         (TEST): Include expected results for all rounding modes.
3170         (test_in_one_mode): New function.
3171         (do_test): Use test_in_one_mode to compute and check results.
3172         Check results for all rounding modes.
3173         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3174         $(link-libm).
3175
3176 2012-12-09  Allan McRae  <allan@archlinux.org>
3177
3178         * sysdeps/i386/fpu/libm-test-ulps: Update
3179
3180 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3181
3182         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3183         (_G_int32_t): Likewise.
3184         (_G_uint16_t): Likewise.
3185         (_G_uint32_t): Likewise.
3186         (_G_HAVE_BOOL): Likewise.
3187         (_G_HAVE_ATEXIT): Likewise.
3188         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3189         (_G_HAVE_IO_FILE_OPEN): Likewise.
3190         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3191         (_G_int32_t): Likewise.
3192         (_G_uint16_t): Likewise.
3193         (_G_uint32_t): Likewise.
3194         (_G_HAVE_BOOL): Likewise.
3195         (_G_HAVE_ATEXIT): Likewise.
3196         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3197         (_G_HAVE_IO_FILE_OPEN): Likewise.
3198         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3199         (_G_int32_t): Likewise.
3200         (_G_uint16_t): Likewise.
3201         (_G_uint32_t): Likewise.
3202         (_G_HAVE_BOOL): Likewise.
3203         (_G_HAVE_ATEXIT): Likewise.
3204         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3205         (_G_HAVE_IO_FILE_OPEN): Likewise.
3206
3207 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3208
3209         * csu/libc-tls.c: Update copyright years.
3210
3211 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3212
3213         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3214         [!_G_USING_THUNKS]: Remove conditional code.
3215         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3216         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3217
3218         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3219         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3220         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3221         (_G_VTABLE_LABEL_PREFIX): Likewise.
3222         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3223         * sysdeps/gnu/_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         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3228         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3229         (_G_VTABLE_LABEL_PREFIX): Likewise.
3230         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3231
3232 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3233
3234         * libio/Makefile: Include ../Makeconfig before tests.
3235         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3236         only if $(build-shared) is yes.
3237
3238         * iconv/gconv_db.c: Update copyright years.
3239
3240 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3241
3242         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3243         unwind info if defined PIC. Fix special cases description.
3244         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3245
3246         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3247         DP_HI_MASK entry.
3248         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3249
3250 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3251
3252         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3253
3254         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3255         is NULL.
3256
3257         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3258         (LDLIBS-tst-chk4): This.
3259         (LDFLAGS-tst-chk5): Renamed to ...
3260         (LDLIBS-tst-chk5): This.
3261         (LDFLAGS-tst-chk6): Renamed to ...
3262         (LDLIBS-tst-chk6): This.
3263         (LDFLAGS-tst-lfschk4): Renamed to ...
3264         (LDLIBS-tst-lfschk4): This.
3265         (LDFLAGS-tst-lfschk5): Renamed to ...
3266         (LDLIBS-tst-lfschk5): This.
3267         (LDFLAGS-tst-lfschk6): Renamed to ...
3268         (LDLIBS-tst-lfschk6): This.
3269
3270         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3271         on $(common-objpfx)soversions.mk.
3272
3273 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3274
3275         [BZ #10014]
3276         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3277         example host name.
3278
3279 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3280
3281         * malloc/arena.c (arena_get_retry): New function that gets
3282         another arena for the caller to try its request on.
3283         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3284         current arena cannot fulfill the request.
3285         (__libc_memalign): Likewise.
3286         (__libc_memalign): Likewise.
3287         (__libc_pvalloc): Likewise.
3288         (__libc_calloc): Likewise.
3289
3290 2012-09-05  John Tobey  <john.tobey@gmail.com>
3291
3292         [BZ #13542]
3293         * manual/arith.texi (Operations on Complex): Fix description
3294         of carg branch cut.
3295
3296 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3297
3298         [BZ #10014]
3299         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3300         host name.
3301
3302         [BZ #10038]
3303         * manual/memory.texi (Memory): Make order of menu items match
3304         order of sections.
3305
3306 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3307
3308         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3309         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3310         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3311
3312 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3313
3314         * csu/libc-tls.c (static_dtv): Renamed to ...
3315         (_dl_static_dtv): This.  Make it global.
3316         (_dl_initial_dtv): Removed.
3317         (__libc_setup_tls): Updated.
3318         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3319         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3320         DL_INITIAL_DTV.
3321
3322 2012-09-06  Petr Machata  <pmachata@redhat.com>
3323
3324         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3325         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3326         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3327         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3328
3329 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3330
3331         [BZ #14545]
3332         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3333         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3334         freeing dtv[-1].
3335
3336 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3337
3338         [BZ #14544]
3339         * Makeconfig (link-static-before-libc): Replace $(+prector)
3340         with $(+prectorT).
3341         (link-static-after-libc): Replace $(+postctor) with
3342         $(+postctorT).
3343         (link-bounded): Replace $(+prector)/$(+postctor) with
3344         $(+prectorT)/$(+postctorT).
3345         (+prectorT): New macro.
3346         (+postctorT): Likewise.
3347
3348 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3349
3350         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3351         (round_str): Handle values above the maximum for IBM long double
3352         as inexact.
3353         * stdlib/tst-strtod-round.c (tests): Regenerated.
3354
3355 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3356
3357         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3358         assembler flag.
3359         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3360         zarch_nohighgprs around the zarch optimized routines.
3361         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3362         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3363         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3364         for zarch.
3365
3366 2012-09-05  David S. Miller  <davem@davemloft.net>
3367
3368         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3369
3370         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3371         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3372         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3373         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3374         entries.
3375
3376 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3377
3378         * malloc/arena.c: Fold copyright years.
3379         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3380
3381 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3382
3383         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3384
3385 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3386
3387         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3388
3389 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3390
3391         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3392         change internal state upon failure.
3393
3394 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3395
3396         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3397         * malloc/memusage.c (mmap): Likewise.
3398         (mmap64, mremap): Likewise.  Adjust name in comment.
3399
3400 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3401
3402         * libio/fileops.c: Fix typos in comments.
3403         * libio/oldfileops.c: Likewise.
3404         * libio/wfileops.c: Likewise.
3405
3406 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3407
3408         [BZ #1349]
3409         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3410         (tst-malloc-usable-ENV): Set environment for test case.
3411         * malloc/hooks.c (malloc_check_get_size): New function to get
3412         requested size.
3413         * malloc/malloc.c (musable): Use malloc_check_get_size.
3414         * malloc/tst-malloc-usable.c: New test case.
3415
3416 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3417
3418         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3419
3420 2012-09-05  Allan McRae  <allan@archlinux.org>
3421
3422         [BZ #13966]
3423         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3424         determine header location.
3425         * configure: Regenerated.
3426
3427 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3428
3429         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3430         float format.
3431         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3432         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3433         format.
3434         (test): Regenerate.
3435
3436 2012-09-04  David S. Miller  <davem@davemloft.net>
3437
3438         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3439         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3440         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3441
3442 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3443
3444         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3445         failures.
3446
3447         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3448
3449 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3450
3451         [BZ #9914]
3452         * libio/iogetdelim.c: Include <limits.h>.
3453         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3454         + len + 1 would overflow.
3455
3456 2012-09-03  Andreas Jaeger  <aj@suse.de>
3457
3458         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3459         * sysdeps/i386/fpu/libm-test-ulps: Update.
3460
3461 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3462
3463         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3464         Add s_sinf-sse2, s_conf-sse2.
3465
3466         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3467         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3468         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3469         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3470
3471         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3472         for using routine as __sinf_ia32.
3473         Use macro for function declaration and weak_alias.
3474         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3475         for using routine as __cosf_ia32.
3476         Use macro for function declaration and weak_alias.
3477
3478         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3479         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3480
3481         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3482         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3483         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3484
3485         * math/libm-test.inc (cos_test): Add more test cases.
3486         (sin_test): Likewise.
3487         (sincos_test): Likewise.
3488
3489 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3490
3491         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3492         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3493         hidden.
3494         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3495
3496 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3497
3498         [BZ #14538]
3499         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3500         first element of the GOT.
3501         (elf_machine_load_address): Return the difference between
3502         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3503
3504 2012-09-01  Allan McRae  <allan@archlinux.org>
3505
3506         [BZ #13412]
3507         * configure.in (AWK): Require gawk version 3.0 or later.
3508         * configure: Regenerated.
3509
3510 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3511
3512         * sysdeps/unix/sysv/linux/kernel-features.h
3513         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3514         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3515         [__NR_clock_getres]: Make code unconditional.
3516         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3517         (clock_getcpuclockid): Remove code left unreachable by removal of
3518         conditionals.
3519         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3520         code unconditional.
3521         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3522         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3523         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3524         Make code unconditional.
3525         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3526         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3527         * sysdeps/unix/sysv/linux/clock_settime.c
3528         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3529         conditional code.
3530         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3531         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3532
3533 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3534
3535         [BZ #14476]
3536         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3537         scripts/test-installation.pl.
3538
3539         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3540         and $ld_so_version if it is set.
3541
3542 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3543
3544         [BZ #14516]
3545         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3546         failure if reading from procfs failed.
3547         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3548
3549 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3550
3551         * sysdeps/unix/sysv/linux/kernel-features.h
3552         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3553         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3554         Remove conditional code.
3555         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3556         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3557         Remove conditional code.
3558         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3559         * sysdeps/unix/sysv/linux/i386/fxstat.c
3560         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3561         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3562         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3563         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3564         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3565         * sysdeps/unix/sysv/linux/i386/lxstat.c
3566         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3567         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3568         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3569         Remove conditional code.
3570         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3571         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3572         Remove conditional code.
3573         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3574         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3575         <kernel-features.h>.
3576         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3577         Remove.
3578         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3579         Remove conditional code.
3580         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3581         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3582         Remove conditional.
3583
3584 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3585
3586         [BZ #5400]
3587         * NEWS: Add fixed bug number.
3588
3589 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3590
3591         [BZ #14519]
3592         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3593         underflowing exponent in case of negative sign.
3594         * stdlib/tst-strtod-round-data: Add more tests.
3595         * stdlib/tst-strtod-round.c (tests): Regenerated.
3596
3597         [BZ #3479]
3598         * stdlib/strtod_l.c (NDIG): Remove.
3599         (HEXNDIG): Likewise.
3600         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3601         smallest representable value.
3602         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3603         lie within an exact representation of 1/2 ulp of the result.
3604         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3605         unconditionally.
3606         (TENS_P9_IDX): Define unconditionally.
3607         (TENS_P9_SIZE): Likewise.
3608         (TENS_P10_IDX): Likewise.
3609         (TENS_P10_SIZE): Likewise.
3610         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3611         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3612         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3613         entries for 10^2^13 and 10^2^14.
3614         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3615         (TENS_P13_IDX): Define.
3616         (TENS_P13_SIZE): Likewise.
3617         (TENS_P14_IDX): Likewise.
3618         (TENS_P14_SIZE): Likewise.
3619         (_fpioconst_pow10): Change array size to
3620         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3621         unconditional.
3622         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3623         1024]: Add entries for 10^2^13 and 10^2^14.
3624         [LAST_POW10 > _LAST_POW10]: Remove #error.
3625         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3626         (_fpioconst_pow10): Change array size to
3627         FPIOCONST_POW10_ARRAY_SIZE.
3628         * stdlib/gen-fpioconst.c: New file.
3629         * stdlib/gen-tst-strtod-round.c: Likewise.
3630         * stdlib/tst-strtod-round-data: Likewise.
3631         * stdlib/tst-strtod-round.c: Likewise.
3632         * stdlib/Makefile (tests): Add tst-strtod-round.
3633
3634         [BZ #14459]
3635         * stdlib/strtod_l.c: Include <stdint.h>.
3636         (NDEBUG): Do not define.
3637         (round_and_return): Change EXPONENT parameter to type intmax_t.
3638         Rearrange calculations to avoid internal overflow possibilities.
3639         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3640         Rearrange calculations to avoid internal overflow possibilities.
3641         Assert that number fits inside MPNSIZE limbs.
3642         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3643         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3644         calculations and add assertions to avoid internal overflow
3645         possibilities.  Add casts to avoid signed/unsigned operations.
3646         * stdlib/tst-strtod-overflow.c: New file.
3647         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3648
3649 2012-08-25  Marek Polacek  <polacek@redhat.com>
3650
3651         * time/time.h: Fix some typos in comments.
3652
3653 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3654
3655         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3656         * posix/tst-rfc3484-2.c: Likewise.
3657         * posix/tst-rfc3484-3.c: Likewise.
3658
3659 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3660
3661         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3662         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3663
3664 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3665
3666         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3667         #include of fxstatat64.c.
3668
3669 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3670
3671         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3672         * shadow/getspent_r.c: Likewise.
3673         * shadow/getspnam.c: Likewise.
3674         * shadow/getspnam_r.c: Likewise.
3675         * gshadow/getsgent.c: Likewise.
3676         * gshadow/getsgent_r.c: Likewise.
3677         * gshadow/getsgnam.c: Likewise.
3678         * gshadow/getsgnam_r.c: Likewise.
3679         * inet/getnetbyad.c: Likewise.
3680         * inet/getnetbyad_r.c: Likewise.
3681         * inet/getnetbynm.c: Likewise.
3682         * inet/getnetbynm_r.c: Likewise.
3683         * inet/getnetent.c: Likewise.
3684         * inet/getnetent_r.c: Likewise.
3685         * inet/getproto.c: Likewise.
3686         * inet/getproto_r.c: Likewise.
3687         * inet/getprtent.c: Likewise.
3688         * inet/getprtent_r.c: Likewise.
3689         * inet/getprtname.c: Likewise.
3690         * inet/getprtname_r.c: Likewise.
3691         * inet/getrpcbyname.c: Likewise.
3692         * inet/getrpcbyname_r.c: Likewise.
3693         * inet/getrpcbynumber.c: Likewise.
3694         * inet/getrpcbynumber_r.c: Likewise.
3695         * inet/getrpcent.c: Likewise.
3696         * inet/getrpcent_r.c: Likewise.
3697         * inet/getaliasent.c: Likewise.
3698         * inet/getaliasent_r.c: Likewise.
3699         * inet/getaliasname.c: Likewise.
3700         * inet/getaliasname_r.c: Likewise.
3701         * nscd/getgrgid_r.c: Likewise.
3702         * nscd/getgrnam_r.c: Likewise.
3703         * nscd/gethstbyad_r.c: Likewise.
3704         * nscd/gethstbynm3_r.c: Likewise.
3705         * nscd/getpwnam_r.c: Likewise.
3706         * nscd/getpwuid_r.c: Likewise.
3707         * nscd/getsrvbynm_r.c: Likewise.
3708         * nscd/getsrvbypt_r.c: Likewise.
3709         * nscd/gai.c: Likewise.
3710
3711         * configure.in (build_nscd): New substituted variable, set
3712         by --disable-build-nscd and defaults to $use_nscd.
3713         * configure: Regenerated.
3714         * config.make.in (build-nscd): New substituted variable.
3715         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3716         Change conditional to require [$(build-nscd) = yes] as well.
3717         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3718
3719         [BZ# 13696]
3720         * configure.in (use_nscd): New substituted variable, set by
3721         --disable-nscd.  If enabled, define USE_NSCD.
3722         * configure: Regenerated.
3723         * config.h.in: Add USE_NSCD.
3724         * config.make.in (use-nscd): New substituted variable.
3725         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3726         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3727         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3728         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3729         (CFLAGS-getgrnam_r.c): Likewise.
3730         (CFLAGS-initgroups.c): Likewise.
3731         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3732         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3733         Variables removed.
3734         * inet/getnetgrent_r.c
3735         (nscd_setnetgrent): New function, broken out of ...
3736         (setnetgrent): ... here.  Call it.
3737         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3738         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3739         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3740         * nscd/Makefile (routines, aux): Move definitions after include of
3741         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3742         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3743         Conditionalize on [USE_NSCD].
3744         (is_nscd, nscd_init_cb): Likewise.
3745         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3746         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3747         * nss/nss_db/db-init.c: Likewise.
3748         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3749         [USE_NSCD].
3750         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3751         (make_request): Use it.
3752         (cache_valid_p): New function.
3753         (__check_pf): Use it.
3754         * NEWS: Add item for --disable-nscd.
3755
3756 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3757
3758         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3759         to support sed >= 4.2.1-20-ga9bf076.
3760         * configure: Regenerated.
3761
3762 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3763
3764         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3765         Conditionalize whole body on [IREL].
3766
3767 2012-08-22  Jeff Law <law@redhat.com>
3768
3769         [BZ #14505]
3770         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3771         if the family is PF_UNSPEC.
3772
3773 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3774
3775         * Makerules (lib-version): Rename from V.
3776         (install-lib-nosubdir): Change V to lib-version.
3777
3778 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3779
3780         [BZ #14252]
3781         * powerpc32/power6/wcschr.c: New file.
3782         * powerpc32/power6/wcscpy.c: New file.
3783         * powerpc32/power6/wcsrchr.c: New file.
3784         * powerpc64/power6/wcschr.c: New file.
3785         * powerpc64/power6/wcscpy.c: New file.
3786         * powerpc64/power6/wcsrchr.c: New file.
3787
3788 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3789
3790         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3791         (two_way_short_needle): Use it.
3792         * string/strstr.c (AVAILABLE1_USES_J): Define.
3793         * string/strcasestr.c: Likewise.
3794
3795         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3796         array references.
3797         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3798
3799         [BZ #11607]
3800         * NEWS: Add an entry.
3801         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3802         define their defaults.
3803         (two_way_short_needle): Detect end-of-string on-the-fly.
3804         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3805         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3806         * string/bug-strcasestr1.c: New test.
3807         * string/Makefile: Run it.
3808
3809 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3810
3811         [BZ #11607]
3812         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3813         the first character.
3814
3815 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3816
3817         * csu/elf-init.c (__libc_csu_irel): Function removed.
3818         * csu/libc-start.c (apply_irel): New function.
3819         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3820
3821 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3822
3823         * sysdeps/unix/sysv/linux/kernel-features.h
3824         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3825         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3826         <kernel-features.h>.
3827         [__NR_fadvise64_64]: Make code unconditional.
3828         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3829         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3830         !__NR_fadvise64_64)]: Likewise.
3831         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3832         !__NR_fadvise64_64))]: Likewise.
3833         [__NR_fadvise64]: Make code unconditional.
3834         [!__NR_fadvise64]: Remove conditional code.
3835         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3836         <kernel-features.h>.
3837         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3838         unconditional.
3839         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3840         conditional code.
3841         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3842         not include <kernel-features.h>.
3843         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3844         unconditional.
3845         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3846         conditional code.
3847         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3848         include <kernel-features.h>.
3849         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3850         unconditional.
3851         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3852         conditional code.
3853
3854 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3855
3856         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3857         slight instruction rearrangements per scrollpipe analysis.
3858         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3859
3860 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3861
3862         * manual/syslog.texi (syslog; vsyslog, closelog):
3863         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3864         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3865
3866         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3867         DSOCAPS to match condition on defining it.
3868
3869 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3870
3871         * sysdeps/unix/sysv/linux/kernel-features.h
3872         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3874         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3875         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3877         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3878         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3879         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3880         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3881         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3882
3883         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3884         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3885
3886         * sysdeps/unix/sysv/linux/kernel-features.h
3887         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3888         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3889         unconditional.
3890         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3891         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3892         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3893         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3894         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3895         Make code unconditional.
3896         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3897         (__mmap64) [!__NR_mmap2]: Likewise.
3898         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3899         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3900         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3901         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3902         [__NR_mmap2]: Make code unconditional.
3903         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3904         (__mmap64) [!__NR_mmap2]: Likewise.
3905
3906 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3907
3908         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3909
3910 2012-08-18  Andreas Jaeger  <aj@suse.de>
3911
3912         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3913
3914 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3915
3916         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3917         * include/unistd.h (__have_sock_cloexec): Likewise.
3918         (__have_pipe2): Likewise.
3919         (__have_dup3): Likewise.
3920
3921 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3922
3923         [BZ #9685]
3924         * include/unistd.h (__have_pipe2): Change define into an extern int.
3925         (__have_dup3): Likewise.
3926         * socket/have_sock_cloexec.c: Include fcntl.h.
3927         (__have_pipe2): New variable.
3928         (__have_dup3): Likewise.
3929
3930 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3931
3932         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3933
3934 2012-08-17  Marek Polacek  <polacek@redhat.com>
3935
3936         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3937         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3938
3939 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3940
3941         * configure.in: Add AC_SUBST for sysheaders.
3942         * configure: Regenerated.
3943         * config.make.in (sysheaders): New substituted variable.
3944
3945         * sysdeps/unix/mkfifo.c: Moved ...
3946         * sysdeps/posix/mkfifo.c: ... here.
3947         * sysdeps/unix/mkfifoat.c: Moved ...
3948         * sysdeps/posix/mkfifoat.c: ... here.
3949
3950         * sysdeps/unix/utime.c: Moved ...
3951         * sysdeps/posix/utime.c: ... here.
3952
3953         * sysdeps/unix/time.c: Moved ...
3954         * sysdeps/posix/time.c: ... here.
3955         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3956         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3957
3958         * sysdeps/unix/nice.c: Moved ...
3959         * sysdeps/posix/nice.c: ... here.
3960
3961         * sysdeps/unix/alarm.c: Moved ...
3962         * sysdeps/posix/alarm.c: ... here.
3963
3964         * intl/Makefile ($(codeset_mo)): Depend on the input file.
3965
3966 2012-08-17  Jeff Law <law@redhat.com>
3967
3968         * intl/Makefile (codeset_mo): New variable.
3969         ($(codeset_mo)): New target.
3970         (tst-codeset.out): Depend on that.  Remove explicit rule.
3971         (tst-gettext3.out, tst-gettext5.out): Likewise.
3972         (LOCPATH-ENV, tst-codeset-ENV): New variables.
3973         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
3974         * intl/tst-codeset.sh: Remove.
3975         * intl/tst-gettext3.sh: Likewise.
3976         * intl/tst-gettext5.sh: Likewise.
3977
3978 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3979
3980         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
3981         * sysdeps/unix/syscalls.list: ... here.
3982
3983         * sysdeps/posix/getaddrinfo.c
3984         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
3985         (gaiconf_init, gaiconf_reload): Use them.
3986         [!_STATBUF_ST_NSEC]
3987         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
3988         Define using time_t rather than struct timespec.
3989
3990         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
3991         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
3992         Macros removed.
3993         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
3994         [!NO_THREADS].
3995         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
3996         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
3997         Likewise.
3998
3999         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
4000         __libc_cleanup_push argument.
4001
4002         * bits/param.h: New file.
4003         * misc/sys/param.h: New file.
4004         * include/sys/param.h: New file.
4005         * misc/Makefile (headers): Add bits/param.h.
4006         * sysdeps/generic/sys/param.h: File removed.
4007         * sysdeps/unix/sysv/linux/bits/param.h: New file.
4008         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
4009         * sysdeps/mach/hurd/bits/param.h: New file.
4010         * sysdeps/mach/hurd/sys/param.h: File removed.
4011
4012         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
4013         last change.
4014
4015         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
4016         [_IO_MTSAFE_IO].
4017         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
4018         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
4019         New macros.
4020
4021         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
4022         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
4023         rather than -D_IO_MTSAFE_IO conditionally.
4024         * stdio-common/Makefile (CPPFLAGS): Likewise.
4025         * wcsmbs/Makefile (CPPFLAGS): Likewise.
4026         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
4027         Use $(libio-mtsafe).
4028         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
4029         of -D_IO_MTSAFE_IO.
4030         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
4031         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
4032         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
4033         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
4034         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
4035         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
4036         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4037         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4038         (CFLAGS-fread_u_chk.c): Likewise.
4039         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4040         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4041         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4042         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4043         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4044         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4045         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4046         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4047         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4048
4049         * libio/Makefile: Test [$(libc-reentrant) = yes]
4050         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4051
4052         * Makeconfig
4053         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4054         * sysdeps/pthread/configure: File removed.
4055         * sysdeps/pthread/Makeconfig: New file.
4056         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4057         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4058
4059 2012-08-16  Gary Benson  <gbenson@redhat.com>
4060
4061         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4062         unmapping the first object in a namespace.
4063
4064 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4065
4066         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4067         (__internal_setnetgrent): ... this.  Add internal_function to
4068         definition.  Add libc_hidden_def.
4069         (setnetgrent): Update caller.
4070         (internal_endnetgrent): Renamed to ...
4071         (__internal_endnetgrent): ... this.  Add internal_function to
4072         definition.  Add libc_hidden_def.
4073         (endnetgrent): Update caller.
4074         (internal_getnetgrent_r): Renamed to ...
4075         (__internal_getnetgrent_r): ... this.  Add internal_function to
4076         definition.  Add libc_hidden_def.
4077         (__getnetgrent_r): Update caller.
4078         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4079
4080 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4081
4082         * stdlib/longlong.h: Update from GCC.
4083
4084 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4085
4086         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4087         on _QL, which is set by umul_ppmm but never used.
4088         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4089         variables, which are set by GMP macros but never used.
4090         * stdio-common/_itowa.c (_itowa): Likewise.
4091         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4092         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4093
4094 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4095
4096         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4097         struct La_sh_regs is not constant.
4098         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4099         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4100         and struct La_sparc64_regs are not constant.
4101
4102 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4103
4104         * sysdeps/unix/sysv/linux/kernel-features.h
4105         (__ASSUME_POSIX_TIMERS): Remove.
4106         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4107         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4108         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4109         Make code unconditional.
4110         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4111         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4112         Make code unconditional.
4113         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4114         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4115         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4116         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4117         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4118         Make code unconditional.
4119         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4120         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4121         (__libc_missing_posix_timers): Remove.
4122
4123 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4124
4125         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4126         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4127
4128         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4129
4130         * elf/dl-sym.c: Include <stdlib.h>.
4131
4132         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4133         constants, which avoids warnings in 32-bit builds.
4134
4135         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4136         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4137
4138         * misc/lseek.c: File moved to ...
4139         * io/lseek.c: ... here.
4140
4141         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4142
4143         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4144         shifting LEN more than 31 bits at once.
4145
4146 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4147
4148         [BZ #14195]
4149         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4150         segmentation fault for a case of two empty input strings.
4151         * string/test-strncasecmp.c (check1): Renamed to...
4152         (bz12205): ...this.
4153         (bz14195): Add new testcase for two empty input strings and N > 0.
4154         (test_main): Call new testcase, adapt for renamed function.
4155
4156 2012-08-15  Andreas Jaeger  <aj@suse.de>
4157
4158         [BZ #14090]
4159         * crypt/md5test2.c: New test, based on test supplied by Serge
4160         Belyshev <belyshev@depni.sinp.msu.ru>.
4161         * crypt/Makefile (xtests): Add md5test-giant..
4162         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4163
4164 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4165
4166         [BZ #14090]
4167         * crypt/md5.c (md5_process_block): Don't assume the buffer
4168         length is less than 2**32.
4169         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4170         length is less than 2**64.
4171
4172 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4173
4174         * string/str-two-way.h: Include <sys/param.h>.
4175         (MAX): Macro removed.
4176
4177         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4178         Move #define and #undef of memmove to just before and after
4179         including <string.h>.
4180
4181         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4182         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4183         and after including <string.h>.  Move declarations of
4184         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4185         to before #include "string/memmove.c".
4186
4187         * include/dirent.h: Declare __getdirentries.
4188
4189         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4190         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4191
4192 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4193
4194         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4195         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4196         * sysdeps/i386/configure: Regenerated.
4197         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4198         STABS_CURRENT_FILE, and STABS_FUN.
4199         (END): Remove call to STABS_FUN_END.
4200         (STABS_CURRENT_FILE1): Delete.
4201         (STABS_CURRENT_FILE): Likewise.
4202         (STABS_FUN): Likewise.
4203         (STABS_FUN_END): Likewise.
4204         (STABS_FUN2): Likewise.
4205         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4206         * sysdeps/x86_64/configure: Regenerated.
4207
4208 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4209
4210         * elf/dl-open.c: Include <atomic.h>.
4211         * elf/dl-lookup.c: Likewise.
4212
4213 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4214
4215         * sysdeps/unix/sysv/linux/kernel-features.h
4216         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4217         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4218         unconditionally.
4219         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4220         unconditionally.
4221         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4222         condition on __ASSUME_CLONE_THREAD_FLAGS.
4223
4224 2012-08-14  Andreas Jaeger  <aj@suse.de>
4225
4226         * sysdeps/i386/fpu/libm-test-ulps: Update.
4227
4228 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4229
4230         * include/atomic.h (atomic_exchange_and_add): Split into ...
4231         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4232         New atomic macros.
4233
4234 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4235
4236         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4237
4238 2012-08-13  Jeff Law <law@redhat.com>
4239
4240         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4241         null byte in the output string.
4242
4243 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4244
4245         * sysdeps/unix/sysv/linux/kernel-features.h
4246         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4247         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4248         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4249         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4250         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4251         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4252         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4253
4254 2012-08-09  Jeff Law <law@redhat.com>
4255
4256         [BZ #13939]
4257         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4258         When avoid_arena is set, don't retry in the that arena.  Pick the
4259         next one, whatever it might be.
4260         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4261         (arena_lock): Pass in new parameter to arena_get2.
4262         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4263         arena_get2.
4264         (__libc_malloc): Unify retrying after main arena failure with
4265         __libc_memalign version.
4266         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4267
4268 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4269
4270         [BZ #14166]
4271         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4272         to __redirect_strstr.
4273         (__strstr_sse42): Use typeof __redirect_strstr.
4274         (__strstr_ia32): Likewise.
4275         (__libc_strstr): New prototype.
4276         (strstr): Renamed to ...
4277         (__libc_strstr): This.
4278         (strstr): New strong alias of __libc_strstr.
4279         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4280         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4281         __redirect_time.
4282         Include <time.h>.
4283         (__libc_time): New prototype.
4284         (time_ifunc): Replace time with __libc_time.
4285         (time): New strong alias and hidden definition of __libc_time.
4286         (__GI_time): Remove strong alias.
4287         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4288         Include <stddef.h>.
4289         (memmove): Redefined to __redirect_memmove.
4290         (__memmove_sse2): Use typeof __redirect_memmove.
4291         (__memmove_ssse3): Likewise.
4292         (__memmove_ssse3_back): Likewise.
4293         (__libc_memmove): New prototype.
4294         (memmove): Renamed to ...
4295         (__libc_memmove): This.
4296         (memmove): New strong alias of __libc_memmove.
4297
4298 2012-08-08  Mark Salter  <msalter@redhat.com>
4299
4300         * elf/elf.h
4301         (R_MN10300_TLS_GD): Define.
4302         (R_MN10300_TLS_LD): Likewise.
4303         (R_MN10300_TLS_LDO): Likewise.
4304         (R_MN10300_TLS_GOTIE): Likewise.
4305         (R_MN10300_TLS_IE): Likewise.
4306         (R_MN10300_TLS_LE): Likewise.
4307         (R_MN10300_TLS_DTPMOD): Likewise.
4308         (R_MN10300_TLS_DTPOFF): Likewise.
4309         (R_MN10300_TLS_TPOFF): Likewise.
4310         (R_MN10300_SYM_DIFF): Likewise.
4311         (R_MN10300_ALIGN): Likewise.
4312         (R_MN10300_NUM): Update.
4313
4314 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4315
4316         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4317         Remove.
4318
4319 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4320
4321         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4322
4323         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4324         sysdeps/unix -> sysdeps/posix move.
4325         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4326
4327 2012-08-07      Allan McRae     <allan@archlinux.org>
4328
4329         [BZ #14303]
4330         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4331         (SUNOS_CPP): Likewise.
4332         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4333         not found.
4334         (open_input): Call CPP using execvp.
4335
4336 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4337
4338         * sysdeps/unix/sysv/linux/kernel-features.h
4339         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4340         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4341         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4342         (__ASSUME_WAITID_SYSCALL): Likewise.
4343         * sysdeps/unix/sysv/linux/dl-execstack.c
4344         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4345         code unconditional.
4346         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4347         conditional code.
4348         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4349         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4350         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4351         code.
4352         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4353         unconditional.
4354         [__ASSUME_WAITID_SYSCALL]: Likewise.
4355         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4356
4357 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4358
4359         * sysdeps/unix/closedir.c: Renamed to ...
4360         * sysdeps/posix/closedir.c: ... here.
4361         * sysdeps/unix/dirfd.c: Renamed to ...
4362         * sysdeps/posix/dirfd.c: ... here.
4363         * sysdeps/unix/dirstream.h: Renamed to ...
4364         * sysdeps/posix/dirstream.h: ... here.
4365         * sysdeps/unix/fdopendir.c: Renamed to ...
4366         * sysdeps/posix/fdopendir.c: ... here.
4367         * sysdeps/unix/opendir.c: Renamed to ...
4368         * sysdeps/posix/opendir.c: ... here.
4369         * sysdeps/unix/readdir.c: Renamed to ...
4370         * sysdeps/posix/readdir.c: ... here.
4371         * sysdeps/unix/readdir_r.c: Renamed to ...
4372         * sysdeps/posix/readdir_r.c: ... here.
4373         * sysdeps/unix/rewinddir.c: Renamed to ...
4374         * sysdeps/posix/rewinddir.c: ... here.
4375         * sysdeps/unix/seekdir.c: Renamed to ...
4376         * sysdeps/posix/seekdir.c: ... here.
4377         * sysdeps/unix/telldir.c: Renamed to ...
4378         * sysdeps/posix/telldir.c: ... here.
4379         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4380         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4381         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4382         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4383
4384         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4385         * bits/fcntl.h: ... here.
4386
4387         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4388         not 0.
4389         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4390         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4391         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4392         (struct flock): Move l_start, l_len to the beginning.
4393         Use __pid_t for l_pid.
4394         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4395         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4396         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4397         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4398         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4399         [__USE_LARGEFILE64] (struct flock64): New type.
4400         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4401
4402         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4403         * bits/dirent.h: ... here.
4404
4405         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4406         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4407
4408 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4409
4410         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4411         Change from 2.6.0 to 2.6.16.
4412         * sysdeps/unix/sysv/linux/configure: Regenerated.
4413         * sysdeps/unix/sysv/linux/kernel-features.h
4414         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4415         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4416         version.
4417         (__ASSUME_UTIMES): Likewise.
4418         (__ASSUME_CLONE_STOPPED): Remove.
4419         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4420         architectures, not kernel version.
4421         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4422         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4423         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4424         (__ASSUME_WAITID_SYSCALL): Likewise.
4425         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4426         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4427         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4428         refer to older versions.
4429
4430 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4431
4432         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4433         Define alphasort64 as an alias.
4434         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4435         Define versionsort64 as an alias.
4436         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4437         Define scandir64 as an alias.
4438         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4439         Define scandirat64 as an alias.
4440         * dirent/alphasort64.c (alphasort64):
4441         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4442         * dirent/versionsort64.c: Likewise.
4443         * dirent/scandir64.c: Likewise.
4444         * dirent/scandirat64.c: Likewise.
4445         * sysdeps/wordsize-64/alphasort.c: File removed.
4446         * sysdeps/wordsize-64/alphasort64.c: File removed.
4447         * sysdeps/wordsize-64/scandir.c: File removed.
4448         * sysdeps/wordsize-64/scandir64.c: File removed.
4449         * sysdeps/wordsize-64/scandirat.c: File removed.
4450         * sysdeps/wordsize-64/scandirat64.c: File removed.
4451         * sysdeps/wordsize-64/versionsort.c: File removed.
4452         * sysdeps/wordsize-64/versionsort64.c: File removed.
4453         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4454         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4455         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4456         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4457         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4458         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4459         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4460         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4461
4462         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4463         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4464         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4465         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4466         [defined __arch64__ || defined __sparcv9]
4467         (__INO_T_MATCHES_INO64_T): New macro.
4468         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4469         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4470         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4471         * sysdeps/unix/sysv/linux/bits/dirent.h
4472         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4473         (_DIRENT_MATCHES_DIRENT64): New macro.
4474
4475         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4476         Define lockf64 as an alias.
4477         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4478         Define fseeko64 as an alias.
4479         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4480         Define ftello64 as an alias.
4481         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4482         Define _IO_fgetpos64 and fgetpos64 as aliases.
4483         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4484         Define _IO_fsetpos64 and fsetpos64 as aliases.
4485         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4486         Conditionalize body on this.
4487         * libio/fseeko64.c: Likewise.
4488         * libio/ftello64.c: Likewise.
4489         * libio/iofgetpos64.c: Likewise.
4490         * libio/iofsetpos64.c: Likewise.
4491         * sysdeps/wordsize-64/lockf.c: File removed.
4492         * sysdeps/wordsize-64/lockf64.c: File removed.
4493         * sysdeps/wordsize-64/fseeko.c: File removed.
4494         * sysdeps/wordsize-64/fseeko64.c: File removed.
4495         * sysdeps/wordsize-64/ftello.c: File removed.
4496         * sysdeps/wordsize-64/ftello64.c: File removed.
4497         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4498         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4499         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4500         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4501         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4502         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4503         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4504         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4505         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4506         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4507         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4508         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4509         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4510         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4511
4512         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4513         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4514         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4515         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4516         [defined __arch64__ || defined __sparcv9]
4517         (__OFF_T_MATCHES_OFF64_T): New macro.
4518         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4519         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4520         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4521         (__OFF_T_MATCHES_OFF64_T): New macro.
4522
4523 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4524
4525         * stdlib/secure-getenv.c (__secure_getenv): Replace
4526         GLIBC_2_16 with GLIBC_2_17.
4527
4528 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4529
4530         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4531         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4532
4533 2012-08-03  David S. Miller  <davem@davemloft.net>
4534
4535         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4536
4537 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4538
4539         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4540         Remove.
4541         (__ASSUME_CORRECT_SI_PID): Likewise.
4542         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4543         (__ASSUME_TMPFS_NAME): Likewise.
4544         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4545         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4546         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4547         (HAVE_AUX_SECURE): Make definition unconditional.
4548         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4549         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4550
4551 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4552
4553         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4554         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4555         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4556         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4557         __eloop_threshold instead of SYMLOOP_MAX.
4558
4559         * sysdeps/generic/eloop-threshold.h: New file.
4560         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4561         of MAXSYMLINKS.
4562         * elf/chroot_canon.c (chroot_canon): Likewise.
4563
4564 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4565
4566         [BZ #13717]
4567         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4568         Change to 2.6.0 everywhere.
4569         * sysdeps/unix/sysv/linux/configure: Regenerated.
4570         * sysdeps/unix/sysv/linux/kernel-features.h
4571         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4572         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4573         kernel versions.
4574         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4575         (__ASSUME_FUTEX_REQUEUE): Remove.
4576         (__ASSUME_STATFS64): Define unconditionally.
4577         (__ASSUME_AT_SECURE): Likewise.
4578         (__ASSUME_CORRECT_SI_PID): Likewise.
4579         (__ASSUME_TGKILL): Define without depending on kernel version for
4580         i386.
4581         (__ASSUME_UTIMES): Likewise.
4582         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4583         kernel version.
4584         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4585         (__ASSUME_TMPFS_NAME): Likewise.
4586         * README: Update reference to Linux kernel versions.
4587
4588 2012-08-02  Marek Polacek  <polacek@redhat.com>
4589
4590         [BZ# 14150]
4591         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4592         libc_cv_asm_type_prefix with %.
4593         * configure: Regenerated.
4594         * include/libc-symbols.h: Remove comment about
4595         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4596         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4597         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4598         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4599         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4600         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4601         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4602         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4603         * elf/tst-unique2mod1.c: Likewise.
4604         * elf/tst-unique1mod2.c: Likewise.
4605         * elf/tst-unique1mod1.c: Likewise.
4606         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4607         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4608         Replace ASM_TYPE_DIRECTIVE with .type.
4609         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4610         * sysdeps/i386/sysdep.h: Likewise.
4611         * sysdeps/x86_64/sysdep.h: Likewise.
4612         * sysdeps/sh/sysdep.h: Likewise.
4613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4614         Do not define ASM_TYPE_DIRECTIVE.
4615         * sysdeps/powerpc/sysdep.h: Likewise.
4616         * sysdeps/powerpc/powerpc32/sysdep.h:
4617         Replace ASM_TYPE_DIRECTIVE with .type.
4618         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4619         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4620         * sysdeps/i386/fpu/e_powf.S: Likewise.
4621         * sysdeps/i386/fpu/e_expl.S: Likewise.
4622         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4623         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4624         * sysdeps/i386/fpu/e_pow.S: Likewise.
4625         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4626         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4627         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4628         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4629         * sysdeps/i386/fpu/e_log2.S: Likewise.
4630         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4631         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4632         * sysdeps/i386/fpu/e_powl.S: Likewise.
4633         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4634         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4635         * sysdeps/i386/fpu/e_logl.S: Likewise.
4636         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4637         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4638         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4639         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4640         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4641         * sysdeps/i386/fpu/e_log.S: Likewise.
4642         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4643         * sysdeps/i386/fpu/e_logf.S: Likewise.
4644         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4645         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4646         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4647         * sysdeps/i386/fpu/e_log10.S: Likewise.
4648         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4649         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4650         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4651         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4652         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4653         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4654         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4655         * sysdeps/i386/i686/strtok.S: Likewise.
4656         * sysdeps/i386/i386-mcount.S: Likewise.
4657         * sysdeps/i386/strtok.S: Likewise.
4658         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4659         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4660         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4661         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4662         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4663         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4664         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4665         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4666         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4667         * sysdeps/x86_64/_mcount.S: Likewise.
4668         * sysdeps/x86_64/strtok.S: Likewise.
4669         * sysdeps/sh/_mcount.S: Likewise.
4670
4671 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4672
4673         * libio/iofopen.c: Include <fcntl.h>.
4674         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4675         (_IO_fopen64, fopen64): Define as aliases.
4676         * libio/iofopen64.c: Include <fcntl.h>.
4677         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4678         Conditionalize body on this.
4679         * sysdeps/wordsize-64/iofopen.c: File removed.
4680         * sysdeps/wordsize-64/iofopen64.c: File removed.
4681
4682 2012-08-01  Marek Polacek  <polacek@redhat.com>
4683
4684         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4685         Use dlfcn directly instead of a variable.
4686         (binfmt-subdir): Do not define.
4687         (dlfcn): Likewise.
4688
4689 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4690
4691         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4692         Remove all definitions.
4693         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4694         <kernel-features.h>.
4695         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4696         (miss_F_GETOWN_EX): Remove all definitions.
4697         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4698         macro definition.
4699         [!__ASSUME_FCNTL64]: Remove conditional code.
4700         [__ASSUME_FCNTL64]: Make code unconditional.
4701         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4702         <kernel-features.h>.
4703         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4704         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4705         (lockf64) [__NR_fcntl64]: Make code unconditional.
4706         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4707
4708         * sysdeps/unix/sysv/linux/kernel-features.h
4709         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4710         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4711         Make code unconditional.
4712         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4713         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4715         [__NR_vfork]: Make code unconditional.
4716         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4717         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4719         [__NR_vfork]: Make code unconditional.
4720         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4721         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4722
4723 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4724
4725         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4726         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4727
4728         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4729         Define mkstemp64 as an alias.
4730         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4731         Define mkstemps64 as an alias.
4732         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4733         Define mkostemp64 as an alias.
4734         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4735         Define mkostemps64 as an alias.
4736         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4737         Conditionalize body on this.
4738         * misc/mkostemp64.c: Likewise.
4739         * misc/mkostemps64.c: Likewise.
4740         * misc/mkstemps64.c: Likewise.
4741         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4742         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4743         * sysdeps/wordsize-64/mkostemp.c: File removed.
4744         * sysdeps/wordsize-64/mkstemp.c: File removed.
4745         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4746         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4747         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4748         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4749
4750         [BZ #14138]
4751         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4752         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4753         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4754         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4755
4756         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4757         compat_symbol macros from <shlib-compat.h> rather than the underlying
4758         default_symbol_version and symbol_version macros, so that DEFAULT
4759         lines in shlib-versions are respected.
4760         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4761
4762 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4763
4764         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4765         Declare with warn_unused_result.
4766         (setgid, setregid, setegid, setresgid): Likewise.
4767         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4768         Likewise.
4769         * WUR-REPORT: Remove set*id functions.
4770
4771 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4772
4773         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4774
4775 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4776
4777         * include/sys/socket.h (__libc_accept, __libc_accept4):
4778         Add attribute_hidden.
4779         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4780
4781         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4782         use of PTR_MANGLE.
4783         * inet/getnetgrent_r.c (setup): Likewise.
4784
4785         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4786
4787 2012-07-31  David S. Miller  <davem@davemloft.net>
4788
4789         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4790
4791 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4792
4793         [BZ #13629]
4794         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4795         value between 1.0 and 2.0 and smaller part has absolute value less
4796         than 1.0.
4797         * math/s_clog10.c (__clog10): Likewise.
4798         * math/s_clog10f.c (__clog10f): Likewise.
4799         * math/s_clog10l.c (__clog10l): Likewise.
4800         * math/s_clogf.c (__clogf): Likewise.
4801         * math/s_clogl.c (__clogl): Likewise.
4802         * math/libm-test.inc (clog_test): Add more tests.
4803         (clog10_test): Likewise.
4804         * sysdeps/i386/fpu/libm-test-ulps: Update.
4805         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4806
4807 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4808
4809         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4810         Exit with zero in case no suitable GID is found, and write a
4811         message to standard error.
4812
4813 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4814
4815         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4816         rather than to 1.
4817         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4818         (MAXPATHLEN): Removed.
4819         (NOGROUP, NODEV): New macros.
4820         (setbit, clrbit, isset, isclr): New macros.
4821         (howmany, roundup, powerof2): New macros.
4822         (DEV_BSIZE): New macro.
4823
4824         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4825         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4826
4827         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4828         definition on [!__NO_LONG_DOUBLE_MATH].
4829
4830         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4831         PTR_MANGLE and PTR_DEMANGLE.
4832
4833         * socket/accept4.c (accept4): Rename to __libc_accept4.
4834         Define accept4 as a weak alias.
4835
4836         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4837         on [_DIRENT_HAVE_D_TYPE].
4838         * io/ftw.c (ftw_dir): Likewise.
4839
4840         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4841
4842         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4843
4844         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4845         Use the BSD numbers rather than the arbitrary ones we had.
4846         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4847         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4848         (SIGXCPU, SIGXFSZ): New macros.
4849         (_NSIG): Now 32.
4850
4851         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4852         initializer on [_LIBC_REENTRANT].
4853
4854         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4855         definitions inside [_POSIX_MAPPED_FILES].
4856
4857         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4858
4859         * dirent/opendir.c: Include <fcntl.h>.
4860
4861         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4862         (__libc_getspecific): Likewise.
4863         (__libc_key_create): Likewise.
4864
4865         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4866         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4867         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4868         (tmpfile64): Define as alias.
4869         * sysdeps/wordsize-64/tmpfile.c: File removed.
4870         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4871         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4872         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4873
4874         * stdio-common/vfscanf.c: Include <stdbool.h>.
4875         * nss/makedb.c: Likewise.
4876         * stdio-common/_i18n_number.h: Likewise.
4877         * argp/argp-help.c: Likewise.
4878         * posix/wordexp.c: Likewise.
4879         * sysdeps/posix/spawni.c: Likewise.
4880         * nss/nss_files/files-initgroups.c: Likewise.
4881         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4882         * nss/nss_files/files-initgroups.c: Likewise.
4883         * nss/nss_db/db-netgrp.c: Likewise.
4884         * nss/nss_db/db-initgroups.c: Likewise.
4885         * io/fchmodat.c: Include <sys/stat.h>.
4886
4887         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4888         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4889
4890         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4891         [HAVE_MMAP].
4892
4893         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4894         Add multiple inclusion protection.
4895
4896 2012-07-27  David S. Miller  <davem@davemloft.net>
4897
4898         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4899
4900 2012-07-27  Gary Benson  <gbenson@redhat.com>
4901
4902         [BZ #14298]
4903         * elf/rtld.c: Include <stap-probe.h>.
4904         (dl_main): Added static probes "init_start" and "init_complete".
4905         * elf/dl-load.c: Include <stap-probe.h>.
4906         (lose): Take new parameter "nsid".
4907         Added static probe "map_failed".
4908         (_dl_map_object_from_fd): Pass namespace id to lose.
4909         Added static probe "map_start".
4910         (open_verify): Pass namespace id to lose.
4911         * elf/dl-open.c: Include <stap-probe.h>.
4912         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4913         and "reloc_complete".
4914         * elf/dl-close.c: Include <stap-probe.h>.
4915         (_dl_close_worker): Added static probes "unmap_start" and
4916         "unmap_complete".
4917         * elf/rtld-debugger-interface.txt: New file documenting the above.
4918
4919 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4920
4921         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4922         rather than a string variable.
4923         * sunrpc/rpc_main.c (h_output): Likewise.
4924         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4925
4926 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4927
4928         * inet/check_native.c: New file.
4929
4930 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4931
4932         [BZ #13629]
4933         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4934         if larger part has absolute value 1.0.
4935         * math/s_clog10.c (__clog10): Likewise.
4936         * math/s_clog10f.c (__clog10f): Likewise.
4937         * math/s_clog10l.c (__clog10l): Likewise.
4938         * math/s_clogf.c (__clogf): Likewise.
4939         * math/s_clogl.c (__clogl): Likewise.
4940         * math/libm-test.inc (clog_test): Add more tests.
4941         (clog10_test): Likewise.
4942         * sysdeps/i386/fpu/libm-test-ulps: Update.
4943         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4944
4945         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4946         (pltexit): Likewise.
4947         (La_regs): Likewise.
4948         (La_retval): Likewise.
4949         (int_retval): Likewise.
4950         Update #error for removed macros to refer only to definitions in
4951         tst-audit.h.
4952         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4953         macro.
4954         (pltexit): Likewise.
4955         (La_regs): Likewise.
4956         (La_retval): Likewise.
4957         (int_retval): Likewise.
4958         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4959         macro.
4960         (pltexit): Likewise.
4961         (La_regs): Likewise.
4962         (La_retval): Likewise.
4963         (int_retval): Likewise.
4964         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
4965         macro.
4966         (pltexit): Likewise.
4967         (La_regs): Likewise.
4968         (La_retval): Likewise.
4969         (int_retval): Likewise.
4970         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
4971         macro.
4972         (pltexit): Likewise.
4973         (La_regs): Likewise.
4974         (La_retval): Likewise.
4975         (int_retval): Likewise.
4976         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
4977         macro.
4978         (pltexit): Likewise.
4979         (La_regs): Likewise.
4980         (La_retval): Likewise.
4981         (int_retval): Likewise.
4982         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
4983         macro.
4984         (pltexit): Likewise.
4985         (La_regs): Likewise.
4986         (La_retval): Likewise.
4987         (int_retval): Likewise.
4988         * sysdeps/generic/tst-audit.h: Update comment to refer only to
4989         macro definitions in tst-audit.h.
4990         * sysdeps/i386/tst-audit.h: New file.
4991         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
4992         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
4993         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
4994         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
4995         * sysdeps/sh/tst-audit.h: Likewise.
4996         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
4997         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
4998         * sysdeps/x86_64/tst-audit.h: Likewise.
4999
5000 2012-07-26  Andreas Jaeger  <aj@suse.de>
5001
5002         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
5003         ptrace.
5004
5005         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
5006         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
5007         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
5008         PTRACE_O_MASK.
5009         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
5010         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
5011         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
5012
5013         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
5014         value.
5015
5016         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
5017         _sigsys.
5018         (si_call_addr, si_syscall, si_arch): Define new macro.
5019         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
5020         _sigsys.
5021         (si_call_addr, si_syscall, si_arch): Define new marcro.
5022         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
5023         _sigsys.
5024         (si_call_addr, si_syscall, si_arch): Define new macro.
5025         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
5026         _sigsys.
5027         (si_call_addr, si_syscall, si_arch): Define new macro.
5028
5029 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5030
5031         [BZ #13717]
5032         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5033         Change to 2.4.21 where previously 2.4.1.
5034         * sysdeps/unix/sysv/linux/configure: Regenerated.
5035         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
5036         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5037         Linux kernel version.
5038         (__ASSUME_STD_AUXV): Remove.
5039         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5040         kernel version.
5041         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5042         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5043         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5044         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5045         (__ASSUME_NETLINK_SUPPORT): Likewise.
5046         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5047         (__no_netlink_support): Remove conditional definition.
5048         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5049         Remove.
5050         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5051         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5052         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5053         (if_nameindex_ioctl): Remove.
5054         (if_nameindex_netlink): Do not handle __no_netlink_support.
5055         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5056         code.
5057         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5058         Remove conditional code.
5059         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5060         code.
5061         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5062         unconditional.
5063         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5064         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5065         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5066         Remove.
5067         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5068         [!__ASSUME_STD_AUXV]: Remove conditional code.
5069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5070         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5071         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5072         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5073         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5074         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5075         code.
5076         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5077         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5078         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5079         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5080         conditional code.
5081         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5083         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5084         code.
5085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5086         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5087         conditional code.
5088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5089         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5090         code unconditional.
5091         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5092         conditional code.
5093         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5094         unconditional.
5095         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5096         conditional code.
5097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5098         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5099         unconditional.
5100         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5101         conditional code.
5102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5103         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5104         code unconditional.
5105         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5106         conditional code.
5107         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5108         unconditional.
5109         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5110         conditional code.
5111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5112         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5113         code unconditional.
5114         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5115         conditional code.
5116         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5117         unconditional.
5118         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5119         conditional code.
5120
5121 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5122
5123         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5124         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5125         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5126         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5127         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5128         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5129         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5130         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5131         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5132         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5133         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5134         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5135         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5136         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5137         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5138         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5139         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5140         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5141         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5142         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5143         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5144         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5145         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5146
5147 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5148
5149         * Versions.def: Add GLIBC_2.17.
5150         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5151         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5152         Introduce __libc_secure_getenv.
5153         * stdlib/Versions (2.17): Add secure_getenv
5154         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5155         * stdlib/secure-getenv.c: Rename __secure_getenv to
5156         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5157         symbol __secure_getenv for GLIBC_2.0.
5158         * stdlib/tst-secure-getenv.c: New.
5159         * stdlib/Makefile (tests): Add testcase.
5160         * manual/startup.texi (Environment Access): Document
5161         secure_getenv.
5162         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5163         __libc_secure_getenv.
5164         * inet/ruserpass.c (ruserpass): Likewise.
5165         * malloc/mtrace.c (mtrace): Likewise.
5166         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5167         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5168         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5169         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5170         HAVE_SECURE_GETENV.
5171         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5172         __secure_getenv to __libc_secure_getenv.
5173         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5175         Likewise.
5176         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5177         Likewise.
5178         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5179         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5180         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5181         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5182         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5183         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5184         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5185
5186 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5187
5188         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5189         (struct La_i86_retval): Likewise.
5190         (struct La_x86_64_regs): Likewise.
5191         (struct La_x86_64_retval): Likewise.
5192         (struct La_x32_regs): Likewise.
5193         (struct La_x32_retval): Likewise.
5194         (struct La_ppc32_regs): Likewise.
5195         (struct La_ppc32_retval): Likewise.
5196         (struct La_ppc64_regs): Likewise.
5197         (struct La_ppc64_retval): Likewise.
5198         (struct La_sh_regs): Likewise.
5199         (struct La_sh_retval): Likewise.
5200         (struct La_s390_32_regs): Likewise.
5201         (struct La_s390_32_retval): Likewise.
5202         (struct La_s390_64_regs): Likewise.
5203         (struct La_s390_64_retval): Likewise.
5204         (struct La_sparc32_regs): Likewise.
5205         (struct La_sparc32_retval): Likewise.
5206         (struct La_sparc64_regs): Likewise.
5207         (struct La_sparc64_retval): Likewise.
5208         (struct audit_ifaces): Remove architecture-specific pltenter and
5209         pltexit members.
5210         * sysdeps/i386/ldsodefs.h: New file.
5211         * sysdeps/powerpc/ldsodefs.h: Likewise.
5212         * sysdeps/s390/ldsodefs.h: Likewise.
5213         * sysdeps/sh/ldsodefs.h: Likewise.
5214         * sysdeps/sparc/ldsodefs.h: Likewise.
5215         * sysdeps/x86_64/ldsodefs.h: Likewise.
5216
5217 2012-07-25  Marek Polacek  <polacek@redhat.com>
5218
5219         [BZ #6808]
5220         * math/libm-test.inc (yn_test): Add another test.
5221         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5222         to ERANGE when the result is +-Inf.
5223         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5224         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5225         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5226         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5227
5228 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5229
5230         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5231         equal to 0.
5232         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5233         clock_t.
5234         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5235
5236 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5237
5238         * configure.in <sysdeps resolving>: Correct printing
5239         Implies_before.
5240         * configure: Regenerate.
5241
5242 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5243
5244         * math/w_ilogb.c: Include <limits.h>.
5245         * math/w_ilogbl.c: Likewise.
5246
5247 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5248
5249         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5250         va_copy.  Document allowing for unavailable va_copy only as
5251         pre-C99 compatibility.
5252         * manual/string.texi (Copying and Concatenation): Use va_copy
5253         instead of __va_copy in concat example.
5254
5255 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5256
5257         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5258         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5259         it if not null.
5260
5261         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5262         with O_NOLINK passed to __file_name_lookup.
5263
5264         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5265         with O_NOLINK passed to __file_name_lookup.
5266
5267         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5268         negative N or less than NGIDS.
5269
5270         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5271         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5272         enough.  Use memcpy instead of strncpy.
5273
5274 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5275
5276         * elf/Makefile (check-data): Remove.
5277         (localplt.data): New vpath directive.
5278         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5279         instead of $(check-data).
5280         * scripts/data/localplt-generic.data: Move to ...
5281         * sysdeps/generic/localplt.data: ... here.
5282         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5283         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5284         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5286         ... here.
5287         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5289         ... here.
5290         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5291         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5292         ... here.
5293         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5294         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5295         ... here.
5296         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5297         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5298         ... here.
5299         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5300         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5301         ... here.
5302
5303 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5304
5305         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5306         PPC32 and PPC64 files.
5307         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5308         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5309
5310 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5311
5312         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5313         __makecontext_ret to ...
5314         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5315         ... here and call exit if uc_link is NULL.  New file.
5316         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5317         __makecontext_ret.S.
5318         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5319         __makecontext_ret to ...
5320         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5321         ... here and call exit if uc_link is NULL.  New file.
5322         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5323         __makecontext_ret.S.
5324
5325 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5326
5327         * elf/elf.h (R_390_IRELATIVE): New definition.
5328         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5329         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5330         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5331         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5332         (elf_machine_lazy_rel): Likewise.
5333         * sysdeps/s390/dl-irel.h: New file.
5334         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5335         * sysdeps/s390/s390-64/memset.S: New asm code.
5336         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5337         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5338         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5339         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5340         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5341         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5342         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5343         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5344         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5345         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5346         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5347         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5348         * sysdeps/s390/s390-32/memset.S: New asm code.
5349         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5350
5351 2012-07-17  Marek Polacek  <polacek@redhat.com>
5352
5353         [BZ #14349]
5354         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5355         * sysdeps/s390/s390-64/configure.in: Likewise.
5356         * sysdeps/sparc/configure.in: Likewise.
5357         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5358         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5359         * sysdeps/i386/configure.in: Likewise.
5360         * sysdeps/x86_64/configure.in: Likewise.
5361         * sysdeps/sh/configure.in: Likewise.
5362         * sysdeps/s390/s390-32/configure: Regenerated.
5363         * sysdeps/s390/s390-64/configure: Likewise.
5364         * sysdeps/x86_64/configure: Likewise.
5365         * sysdeps/sh/configure: Likewise.
5366         * sysdeps/powerpc/powerpc64/configure: Likewise.
5367         * sysdeps/powerpc/powerpc32/configure: Likewise.
5368         * sysdeps/sparc/configure: Likwise.
5369         * sysdeps/i386/configure: Likewise.
5370
5371         * elf/dl-open.c: Comment fixes.
5372
5373 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5374
5375         * Makefile [CXX] (check-data): Remove.
5376         [CXX] (c++-types.data): New vpath directive.
5377         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5378         vpath.  Do not allow for C++ type data being missing.
5379         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5380         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5381         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5382         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5383         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5384         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5385         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5386         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5387         ... here.
5388         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5390         ... here.
5391         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5392         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5393         ... here.
5394         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5395         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5396         ... here.
5397         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5398         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5399         ... here.
5400         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5401         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5402         ... here.
5403         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5404         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5405         ... here.
5406         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5407         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5408
5409         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5410         definitions to architecture-specific files.
5411         (TLS_IE): Likewise.
5412         (TLS_LD): Likewise.
5413         (TLS_GD): Likewise.
5414         * sysdeps/i386/tls-macros.h: New file.
5415         * sysdeps/powerpc/tls-macros.h: Likewise.
5416         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5417         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5418         * sysdeps/sh/tls-macros.h: Likewise.
5419         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5420         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5421         * sysdeps/x86_64/tls-macros.h: Likewise.
5422
5423 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5424
5425         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5426         zero value for regular exit case.
5427
5428         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5429         (__start_context): Preserve zero value for regular exit case.
5430
5431 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5432             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5433
5434         * manual/setjmp.texi (setcontext): Clarify normal process
5435         termination when uc_link is the null pointer.
5436         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5437         exit call.
5438
5439 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5440
5441         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5442         preprocessor.  Test for each exception mask separately.
5443
5444 2012-07-16  Andreas Jaeger  <aj@suse.de>
5445
5446         * po/ru.po: Update from translation team.
5447
5448 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5449
5450         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5451         equal to 0.
5452         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5453         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5454         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5455         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5456         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5457
5458 2012-07-13  Andreas Jaeger  <aj@suse.de>
5459
5460         * po/fr.po: Update from translation team.
5461
5462 2012-07-12  Marek Polacek  <polacek@redhat.com>
5463
5464         [BZ #14173]
5465         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5466         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5467         loop condition.
5468
5469 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5470
5471         [BZ #13717]
5472         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5473         Change to 2.4.1 where previously 2.4.0.
5474         * sysdeps/unix/sysv/linux/configure: Regenerated.
5475         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5476         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5477         version.
5478         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5479         (__ASSUME_AT_CLKTCK): Remove.
5480         (__ASSUME_AT_PAGESIZE): Likewise.
5481         (__ASSUME_AT_XID): Likewise.
5482         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5483         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5484         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5485         unconditionally.
5486         (HAVE_AUX_PAGESIZE): Likewise.
5487         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5488         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5489         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5490
5491 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5492
5493         [BZ #14307]
5494         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5495         the temporary buffer used to invoke __gethostbyname2_r,
5496         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5497         host_data / struct gaih_addrtuple.
5498         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5499         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5500         header file nss/nsswitch.h.
5501         * nss/nsswitch.h (global scope): Add definition of implementation
5502         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5503         resolv/nss_dns/dns-host.c).
5504
5505 2012-07-11  Andreas Jaeger  <aj@suse.de>
5506
5507         * po/fr.po: Update from translation team.
5508
5509         * po/sv.po: Update from translation team
5510         * po/fr.po: Another update from translation team.
5511
5512 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5513
5514         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5515         for subnormals or multiply small sinh result by itself.
5516         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5518
5519 2012-07-11  David S. Miller  <davem@davemloft.net>
5520
5521         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5522
5523 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5524
5525         [BZ #14347]
5526         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5527         (INTERNAL_MARK): Shift it here.
5528
5529 2012-07-10  Marek Polacek  <polacek@redhat.com>
5530
5531         [BZ #14151]
5532         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5533         libc_cv_asm_global_directive with .globl.
5534         * configure: Regenerated.
5535         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5536         with .globl.
5537         * sysdeps/i386/configure: Regenerated.
5538         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5539         with .globl.
5540         * sysdeps/x86_64/configure: Regenerated.
5541         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5542         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5543         * elf/tst-unique2mod2.c: Likewise.
5544         * elf/tst-unique2mod1.c: Likewise.
5545         * elf/tst-unique1mod2.c: Likewise.
5546         * elf/tst-unique1mod1.c: Likewise.
5547         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5548         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5549         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5550         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5551         * sysdeps/mach/sysdep.h: Likewise.
5552         * sysdeps/i386/sysdep.h: Likewise.
5553         * sysdeps/i386/i386-mcount.S: Likewise.
5554         * sysdeps/x86_64/_mcount.S: Likewise.
5555         * sysdeps/x86_64/sysdep.h: Likewise.
5556         * sysdeps/sh/_mcount.S: Likewise.
5557         * sysdeps/sh/sysdep.h: Likewise.
5558         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5559         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5560         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5561         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5562         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5563         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5564         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5565         * locale/localeinfo.h: Likewise.
5566         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5567         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5568
5569 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5570
5571         [BZ #14336]
5572         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5573         system".
5574         * manual/message.texi (The Uniforum approach): Likewise.
5575         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5576         (glibc iconv Implementation): Likewise.
5577
5578 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5579
5580         [BZ #14337]
5581         * math/s_clog.c (__clog): Avoid scaling a value down where that
5582         could result in underflow.
5583         * math/s_clog10.c (__clog10): Likewise.
5584         * math/s_clog10f.c (__clog10f): Likewise.
5585         * math/s_clog10l.c (__clog10l): Likewise.
5586         * math/s_clogf.c (__clogf): Likewise.
5587         * math/s_clogl.c (__clogl): Likewise.
5588         * math/libm-test.inc (clog_test): Add more tests.
5589         (clog10_test): Likewise.
5590         * sysdeps/i386/fpu/libm-test-ulps: Update.
5591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5592
5593 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5594
5595         [BZ #14283]
5596         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5597         by 7 not 8 to examine high bit of fractional part.
5598
5599         [BZ #14042]
5600         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5601         for call to __mcount_internal.
5602         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5603         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5604         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5605
5606 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5607
5608         [BZ #14154]
5609         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5610         approximation for values within 0x1p-13f of an odd multiple of
5611         pi/4.
5612         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5613         exception.  Add more tests.
5614         * sysdeps/i386/fpu/libm-test-ulps: Update.
5615
5616         [BZ #6778]
5617         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5618         inputs and return -1 for them.  Do not check for +Inf in case not
5619         reachable for +Inf.
5620         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5621         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5622         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5623         and return -1 for them.  Do not check for +Inf in case not
5624         reachable for +Inf.
5625         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5626         define.
5627         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5628         and return -1 for them.  Do not check for +Inf in case not
5629         reachable for +Inf.
5630         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5631         spurious underflow.
5632         * sysdeps/i386/fpu/libm-test-ulps: Update.
5633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5634
5635 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5636
5637         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5638
5639 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5640
5641         [BZ #14157]
5642         [BZ #14331]
5643         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5644         could result in spurious underflow.  Scale down values above
5645         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5646         * math/s_csqrtf.c (__csqrtf): Likewise.
5647         * math/s_csqrtl.c (__csqrtl): Likewise.
5648         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5649         spurious underflow.
5650         * sysdeps/i386/fpu/libm-test-ulps: Update.
5651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5652
5653 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5654
5655         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5656         xopen-msg.sed.
5657         * catgets/xopen-msg.awk: New file.
5658         * catgets/xopen-msg.sed: Removed.
5659
5660         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5661         po2text.sed.
5662         * intl/po2test.awk: New file.
5663         * intl/po2test.sed: Removed.
5664
5665 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5666
5667         [BZ #14328]
5668         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5669         or multiply small sinh result by itself.
5670         * math/s_ctanf.c (__ctanf): Likewise.
5671         * math/s_ctanh.c (__ctanh): Likewise.
5672         * math/s_ctanhf.c (__ctanhf): Likewise.
5673         * math/s_ctanhl.c (__ctanhl): Likewise.
5674         * math/s_ctanl.c (__ctanl): Likewise.
5675         * math/libm-test.inc (ctan_test_tonearest): New function.
5676         (ctan_test_towardzero): Likewise.
5677         (ctan_test_downward): Likewise.
5678         (ctan_test_upward): Likewise.
5679         (ctanh_test_tonearest): Likewise.
5680         (ctanh_test_towardzero): Likewise.
5681         (ctanh_test_downward): Likewise.
5682         (ctanh_test_upward): Likewise.
5683         (main): Call these new functions.
5684         * sysdeps/i386/fpu/libm-test-ulps: Update.
5685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5686
5687 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5688
5689         * .gitignore: Delete /ports entry.
5690
5691 2012-07-03  Andreas Jaeger  <aj@suse.de>
5692
5693         * po/bg.po: Update from translation team.
5694         * po/cs.po: Likewise.
5695         * po/de.po: Likewise.
5696         * po/hr.po: Likewise.
5697         * po/nl.pl: Likewise.
5698         * po/pl.po: Likewise.
5699         * po/vi.po: Likewise.
5700
5701 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5702
5703         * Makeconfig [!+link] (+link-before-libc): New variable.
5704         [!+link] (+link-after-libc): Likewise.
5705         [!+link] (+link-tests): Likewise.
5706         [!+link] (+link): Define in terms of $(+link-before-libc) and
5707         $(+link-after-libc).
5708         [!+link-static] (+link-static-before-libc): New variable.
5709         [!+link-static] (+link-static-after-libc): Likewise.
5710         [!+link-static] (+link-static-tests): Likewise.
5711         [!+link-static] (+link-static): Define in terms of
5712         $(+link-static-before-libc) and $(+link-static-after-libc).
5713         [build-shared] (link-libc-before-gnulib): New variable.
5714         [build-shared] (link-libc-tests): Likewise.
5715         [build-shared] (link-libc): Define in terms of
5716         $(link-libc-before-gnulib).
5717         [!build-shared] (link-libc-tests): New variable.
5718         (link-libc-static-tests): New variable.
5719         [!gnulib] (gnulib-arch): New variable.
5720         [!gnulib] (gnulib-tests): Likewise.
5721         [!gnulib] (static-gnulib-arch): Likewise.
5722         [!gnulib] (static-gnulib-tests): Likewise.
5723         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5724         Define with "=" instead of ":=".
5725         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5726         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5727         * Rules (binaries-all-notests): New variable.
5728         (binaries-all-tests): Likewise.
5729         (binaries-static-notests): Likewise.
5730         (binaries-static-tests): Likewise.
5731         (binaries-all): Define using $(binaries-all-notests) and
5732         $(binaries-all-tests).
5733         (binaries-static): Define using $(binaries-static-notests) and
5734         $(binaries-static-tests).
5735         (binaries-shared-tests): New variable.
5736         (binaries-shared-notests): Likewise.
5737         (binaries-shared): Remove variable.
5738         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5739         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5740         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5741         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5742         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5743         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5744         * elf/Makefile (sln-modules): New variable.
5745         (extra-objs): Add $(sln-modules:=.o).
5746         (ldconfig-modules): Add static-stubs.
5747         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5748         * elf/static-stubs.c: New file.
5749
5750         [BZ #14283]
5751         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5752         by 7 not 8 to examine high bit of fractional part.  Use volatile
5753         variables when splitting into final array of floats if
5754         __FLT_EVAL_METHOD__ != 0.
5755         * math/libm-test.inc (cos_test): Add another test.
5756         (sin_test): Likewise.
5757         * sysdeps/i386/fpu/libm-test-ulps: Update.
5758
5759         [BZ #14273]
5760         * math/libm-test.inc (cosh_test): Add more tests.
5761
5762         * version.h (RELEASE): Set to "development".
5763         (VERSION): Set to "2.16.90".
5764
5765 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5766
5767         * NEWS: Update copyright. Remove last-updated date.
5768         Mention math library bug fixes and timezone data changes.
5769         * README: Mention GNU/Hurd, x32, and HPPA support status.
5770
5771 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5772
5773         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5774
5775 2012-06-27  Andreas Jaeger  <aj@suse.de>
5776
5777         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5778
5779 2012-06-25  Andreas Jaeger  <aj@suse.de>
5780
5781         * sysdeps/s390/fpu/libm-test-ulps: Update.
5782
5783 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5784             Thomas Schwinge  <thomas@codesourcery.com>
5785
5786         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5787         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5788         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5789         fanotify_mark.
5790
5791 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5792
5793         * sysdeps/mach/start.c: Remove file.
5794         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5795         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5796         * sysdeps/sh/init-first.c: Likewise.
5797
5798         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5799         registers for frame unwinding purposes, add CFI directives.
5800         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5801         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5802         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5803         Likewise.
5804
5805         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5806         __fortify_fail returning.
5807         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5808
5809         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5810         sysdeps/sh/____longjmp_chk.S.
5811         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5812         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5813         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5814         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5815
5816         * sysdeps/sh/abort-instr.h: New file.
5817         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5818         process in case exit returns.
5819
5820         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5821         initialize the GOT register before use.
5822
5823         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5824         calculation of ARGC > 4.
5825
5826         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5827         meaningful names to some local labels.
5828
5829 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5830             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5831
5832         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5833         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5834         (__arch_compare_and_exchange_val_16_acq): Likewise.
5835         (__arch_compare_and_exchange_val_32_acq): Likewise.
5836         (atomic_exchange_and_add): Fix gUSA sequence.
5837         (atomic_add): Likewise.
5838         (atomic_add_negative): Likewise.
5839         (atomic_add_zero): Likewise.
5840         (atomic_bit_test_set): Likewise.
5841
5842 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5843
5844         [BZ #13579]
5845         * include/link.h (struct link_map): Add l_free_initfini.
5846         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5847         l_initfini.
5848         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5849         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5850         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5851         set.
5852
5853 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5854
5855         * configure.in: Use AC_LANG_SOURCE.
5856         * configure: Regenerate.
5857
5858 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5859
5860         * configure.in (libc_cv_localstatedir): New substituted variable.
5861         * configure: Regenerated.
5862         * config.make.in (localstatedir): New variable, substituted from
5863         libc_cv_localstatedir.
5864         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5865         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5866         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5867         * sysdeps/gnu/configure: Regenerated.
5868
5869 2012-06-21  Jeff Law  <law@redhat.com>
5870
5871         [BZ #14277]
5872         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5873         free.  Simplify list management for _LIBC case.
5874
5875 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5876
5877         [BZ #14273]
5878         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5879         Clear sign bit of 64-bit integer value before comparing against
5880         overflow value.
5881
5882         * sysdeps/mach/configure: Regenerated.
5883
5884 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5885
5886         [BZ #14278]
5887         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5888
5889 2012-06-21  Jeff Law  <law@redhat.com>
5890
5891         [BZ #13882]
5892         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5893         uint16_t for elements in the "seen" array to avoid char overflows.
5894         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5895         * elf/dl-open.c (dl_open_worker): Likewise.
5896
5897 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5898
5899         * scripts/list-sources.sh: Scan PORTS for translations.
5900         * po/libc.pot: Regenerated.
5901
5902 2012-06-21  Andreas Jaeger  <aj@suse.de>
5903
5904         [BZ #12194]
5905         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5906         warning.
5907         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5908         * bits/byteswap-16.h (__bswap_16): Likewise.
5909         * bits/byteswap.h (__bswap_constant_16): Likewise.
5910
5911 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5912
5913         [BZ #14117]
5914         * sysdeps/i386/fpu_control.h: Removed.
5915         * sysdeps/x86_64/fpu_control.h: Moved to ...
5916         * sysdeps/x86/fpu_control.h: Here.
5917
5918         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5919         (_FPU_SETCW): Likewise.
5920
5921 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5922
5923         [BZ #14117]
5924         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5925         * sysdeps/x86/fpu/bits/mathinline.h: This.
5926         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5927
5928         [BZ #14050]
5929         [BZ #14117]
5930         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5931         functions if __x86_64__ is defined.
5932
5933 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5934
5935         * string/endian.h: Add !__ASSEMBLER__ condition for including
5936         conversion interfaces.
5937
5938 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5939
5940         [BZ #14241]
5941         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5942         of ABS(x) in calculating zero to negative powers other than odd
5943         integers.
5944         * math/libm-test.inc (pow_test): Add more tests.
5945
5946 2012-06-15  Andreas Jaeger  <aj@suse.de>
5947
5948         * manual/contrib.texi (Contributors): Update entry of Liubov
5949         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5950         Machado Filho.
5951
5952 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5953
5954         * string/string.h: Add __wur to GNU version of strerror_r.
5955
5956 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5957
5958         [BZ #14229]
5959         * string/Makefile (tests): Add tst-strtok_r.
5960         * string/tst-strtok_r.c: New file.
5961         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
5962         RAX_LP/RDX_LP on SAVE_PTR.
5963
5964 2012-06-14  Roland McGrath  <roland@hack.frob.com>
5965
5966         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
5967
5968 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
5969
5970         * libm_test.inc (csqrt_test): Allow more spurious underflow
5971         exceptions.
5972         (j0_test): Likewise.
5973         (j1_test): Likewise.
5974         (y0_test): Likewise.
5975         (y1_test): Likewise.
5976
5977 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
5978
5979         * po/Makefile (libc.pot): Use UTF-8 charset.
5980
5981 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
5982
5983         [BZ #14210]
5984         Suppress sign-conversion warning from FD_SET.
5985         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
5986         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
5987         not unsigned long int.
5988         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
5989
5990 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
5991
5992         [BZ #14050]
5993         [BZ #14117]
5994         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
5995         __extern_always_inline instead of __extern_inline.
5996         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
5997         (__signbit): Likewise.
5998         (__signbitl): Support C++ namespace.
5999         (lrintf): New inline function.
6000         (lrint): Likewise.
6001         (llrintf): Likewise.
6002         (llrint): Likewise.
6003         (fmaxf): Likewise.
6004         (fmax): Likewise.
6005         (fminf): Likewise.
6006         (fmin): Likewise.
6007         (rint): Likewise.
6008         (rintf): Likewise.
6009         (ceil): Likewise.
6010         (ceilf): Likewise.
6011         (floor): Likewise.
6012         (floorf): Likewise.
6013         (nearbyint): Likewise.
6014         (nearbyintf): Likewise.
6015
6016 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
6017
6018         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
6019         non-default versions.
6020
6021 2012-06-11  Roland McGrath  <roland@hack.frob.com>
6022
6023         [BZ #14218]
6024         * manual/argp.texi (Argp): Reword argp_parse description slightly.
6025
6026 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
6027
6028         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
6029         (FE_UPWARD, FE_DOWNWARD): Don't define.
6030         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
6031         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6032
6033         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
6034         reading it.
6035         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6036         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6037
6038 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6039
6040         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6041         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6042         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6043         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6044
6045 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
6046
6047         [BZ #14117]
6048         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6049         * sysdeps/i386/fpu/Implies: New file.
6050         * sysdeps/x86_64/fpu/Implies: Likewise.
6051         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6052         * sysdeps/x86/fpu/bits/fenv.h: This.
6053
6054         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6055         __SSE_MATH__.
6056
6057 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6058
6059         [BZ #14134]
6060         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6061         character 0xffff that matches the last element of the
6062         conversion table.
6063
6064 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6065
6066         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6067         fmodl commit.
6068
6069 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6070
6071         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6072         values higher than 25.6283.
6073
6074 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6075
6076         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6077         subnormal exponent extraction and add some __builtin_expect.
6078         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6079         Fix for subnormal mantissa calculation.
6080
6081 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6082
6083         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6084         cpu2 is -1 and errno is not ENOSYS.
6085
6086 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6087
6088         [BZ #14117]
6089         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6090         * sysdeps/x86/bits/string.h: This.
6091         * sysdeps/x86_64/bits/string.h: Removed.
6092
6093         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6094         if not compiling for x86-64, but compiling for >= i486.
6095
6096         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6097         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6098
6099         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6100         New macro from Linux kernel 3.4.0.
6101         (FP_XSTATE_MAGIC2): Likewise.
6102         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6103         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6104         (struct _fpx_sw_bytes): New struct.
6105         (struct _xsave_hdr): Likewise.
6106         (struct _ymmh_state): Likewise.
6107         (struct _xstate): Likewise.
6108
6109         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6110         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6111         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6112         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6113         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6114         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6115
6116         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6117         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6118         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6119         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6120         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6121         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6122
6123 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6124
6125         [BZ #13743]
6126         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6127         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6128         (sysdep_headers): Include sys/platform/ppc.h.
6129         * sysdeps/powerpc/test-gettimebase.c: Test for
6130         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6131         * manual/Makefile (appendices): Include platform.texi.
6132         * manual/contrib.texi (Contributors): Update @node pointers.
6133         * manual/maint.texi (Maintenance): Likewise.
6134         (Platform): New node.
6135         * manual/platform.texi: New file.  Document the new features.
6136
6137 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6138             Jakub Jelinek  <jakub@redhat.com>
6139
6140         [BZ #14188]
6141         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6142         where __builtin_expect is unavailable.
6143
6144 2012-06-03  David S. Miller  <davem@davemloft.net>
6145
6146         * stdlib/longlong.h: Updated from GCC.
6147
6148 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6149
6150         [BZ #14042]
6151         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6152         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6153         __mcount_internal.
6154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6155         (GLIBC_2.16): Likewise.
6156
6157 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6158
6159         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6160
6161 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6162
6163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6164         (default-abi): New variable.
6165         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6166         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6167         variable.
6168         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6169         Likewise.
6170         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6171         Likewise.
6172         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6173         Likewise.
6174
6175         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6176         definition.  Document in comment.
6177
6178 2012-06-01  David S. Miller  <davem@davemloft.net>
6179
6180         * stdlib/longlong.h: Updated from GCC.
6181
6182 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6183
6184         [BZ #14117]
6185         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6186         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6187         sys/debugreg.h sys/io.h here.
6188         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6189         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6190         sys/io.h.
6191         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6192         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6193         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6194         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6195         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6196         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6197
6198         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6199         Define only if __x86_64__ is defined.
6200
6201 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6202
6203         [BZ #14048]
6204         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6205         Use int64_t for variable i.
6206         * math/libm-test.inc (fmod_test): Add more tests.
6207
6208         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6209         z computation is not scheduled after fetestexcept.
6210         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6211         Use math_force_eval instead of asm to ensure calculation scheduled
6212         before exception test.
6213         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6214         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6215
6216 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6217
6218         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6219         computation is not scheduled after fetestexcept.
6220
6221 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6222
6223         [BZ #14117]
6224         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6225         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6226
6227 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6228
6229         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6230         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6231
6232 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6233
6234         [BZ #14117]
6235         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6236         <bits/wordsize.h>.
6237         (__WCHAR_MIN): Support __WORDSIZE == 64.
6238         (__WCHAR_MAX): Likewise.
6239
6240         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6241         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6242
6243         [BZ #14183]
6244         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6245         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6246
6247         [BZ #14117]
6248         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6249         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6250
6251         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6252         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6253
6254         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6255         Defined to 1 if __x86_64__ isn't defined.
6256         (_STAT_VER_LINUX_OLD): New.
6257         (st_atime): Remove duplicate.
6258         (st_mtime): Likewise.
6259         (st_ctime): Likewise.
6260
6261 2012-05-31  David S. Miller  <davem@davemloft.net>
6262
6263         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6264         entries.
6265
6266 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6267
6268         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6269         gen-libm-test.pl.
6270
6271         [BZ #14132]
6272         * elf/dl-reloc.c: Include <_itoa.h>.
6273         (_dl_reloc_bad_type): Remove use of INTUSE.
6274         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6275         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6276         * stdio-common/psiginfo.c (psiginfo): Likewise.
6277         * stdio-common/psignal.c (psignal): Likewise.
6278         * string/strsignal.c (strsignal): Likewise.
6279         * include/signal.h (_sys_siglist): Declare hidden proto.
6280         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6281         INTVARDEF with libc_hidden_data_def.
6282         * stdio-common/itoa-udigits.c: Likewise.
6283         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6284         (_itoa_lower_digits_internal): Remove declaration.
6285         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6286         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6287         (_sys_sigabbrev_internal): Remove aliases.
6288         (_sys_siglist): Define hidden alias.
6289
6290 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6291
6292         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6293         bits/sysctl.h.
6294
6295 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6296
6297         [BZ #14117]
6298         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6299         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6300
6301         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6302         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6303         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6304         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6305         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6306         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6307
6308         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6309         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6310         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6311
6312         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6313         with __addr.
6314         (insw): Likewise.
6315         (insl): Likewise.
6316         (outsb): Likewise.
6317         (outsw): Likewise.
6318         (outsl): Likewise.
6319
6320         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6321         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6322         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6323
6324         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6325         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6326         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6327         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6328         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6329         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6330
6331         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6332         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6333
6334         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6335         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6336
6337         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6338         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6339         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6340
6341         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6342         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6343         to ...
6344         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6345
6346         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6347         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6348         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6349
6350         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6351         for x86-64.
6352         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6353
6354 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6355
6356         * math/math.h (M_El): Use two more decimal places.
6357         (M_LOG2El): Likewise.
6358         (M_LOG10El): Likewise.
6359         (M_LN2l): Likewise.
6360         (M_LN10l): Likewise.
6361         (M_PIl): Likewise.
6362         (M_PI_2l): Likewise.
6363         (M_PI_4l): Likewise.
6364         (M_1_PIl): Likewise.
6365         (M_2_PIl): Likewise.
6366         (M_2_SQRTPIl): Likewise.
6367         (M_SQRT2l): Likewise.
6368         (M_SQRT1_2l): Likewise.
6369
6370 2012-05-31  David S. Miller  <davem@davemloft.net>
6371
6372         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6373         values between float registers.
6374         * sysdeps/sparc/sparc64/memset.S: Likewise.
6375         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6376
6377 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6378
6379         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6380         -D_FORTIFY_SOURCE=1.
6381         (CPPFLAGS-tst-longjmp_chk.c): Define.
6382         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6383         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6384         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6385         CFLAGS-tst-wchar-h.c.
6386
6387 2012-05-31  Marek Polacek  <polacek@redhat.com>
6388
6389         [BZ #14132]
6390         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6391         __endmntent_internal): Remove declaration.
6392         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6393         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6394         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6395
6396 2012-05-30  David S. Miller  <davem@davemloft.net>
6397
6398         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6399         (___Q_simulate_exceptions): Use real FP ops rather than writing
6400         into the %fsr.
6401         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6402         Likewise.
6403
6404 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6405
6406         [BZ #14117]
6407         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6408         * sysdeps/x86/bits/xtitypes.h: This.
6409
6410         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6411         * sysdeps/x86/bits/wordsize.h: This.
6412
6413         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6414         * sysdeps/x86/bits/huge_vall.h: This.
6415
6416         * sysdeps/i386/bits/select.h: Removed.
6417         * sysdeps/x86_64/bits/select.h: Renamed to ...
6418         * sysdeps/x86/bits/select.h: This.
6419
6420         * sysdeps/i386/bits/setjmp.h: Removed.
6421         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6422         * sysdeps/x86/bits/setjmp.h: This.
6423
6424         * sysdeps/i386/bits/mathdef.h: Removed.
6425         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6426         * sysdeps/x86/bits/mathdef.h: This.
6427
6428 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6429
6430         [BZ #14132]
6431         * include/sys/socket.h (__connect_internal)
6432         (__libc_sa_len_internal): Remove declaration.
6433         (__connect, __libc_sa_len): Declare hidden_proto.
6434         (SA_LEN): Remove use of INTUSE.
6435         * socket/connect.c: Add libc_hidden_def.
6436         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6437         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6438         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6439         alias.
6440         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6441         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6442         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6443         of adding _internal alias.
6444
6445 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6446
6447         [BZ #14117]
6448         * sysdeps/i386/bits/link.h: Removed.
6449         * sysdeps/i386/bits/linkmap.h: Likewise.
6450         * sysdeps/x86_64/bits/link.h: Renamed to ...
6451         * sysdeps/x86/bits/link.h: This.
6452         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6453         * sysdeps/x86/bits/linkmap.h: This.
6454
6455         * sysdeps/i386/bits/endian.h: Removed.
6456         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6457         * sysdeps/x86/bits/endian.h: This.
6458
6459         * sysdeps/i386/bits/byteswap.h: Removed.
6460         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6461         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6462         * sysdeps/x86/bits/byteswap.h: This.
6463         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6464         * sysdeps/x86/bits/byteswap-16.h: This.
6465         * sysdeps/i386/Implies: Add x86.
6466         * sysdeps/x86_64/Implies: Likewise.
6467
6468 2012-05-30  David S. Miller  <davem@davemloft.net>
6469
6470         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6471         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6472         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6473         (FP_TRAPPING_EXCEPTIONS): Define.
6474         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6475         (FP_TRAPPING_EXCEPTIONS): Define.
6476         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6477         subnormals only when inexact has been signalled or underflow
6478         exceptions are enabled.
6479         (_FP_PACK_CANONICAL): Likewise.
6480
6481 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6482
6483         [BZ #14183]
6484         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6485         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6486
6487 2012-05-30  Richard Henderson  <rth@twiddle.net>
6488
6489         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6490         with #ifndef NOT_IN_libc.
6491
6492         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6493         marked to avoid plt entry.
6494
6495 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6496
6497         [BZ #14112]
6498         * Makeconfig (default-abi): New macro.
6499         (abi-includes): Likewise.
6500         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6501         $(abi-$(default-abi)-lib-soname) for soname if defined.
6502         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6503         abi-variants.
6504         * Makefile (installed-stubs): Likewise.
6505         * include/stubs-biarch.h: Removed.
6506         * scripts/lib-names.awk: Only handle one library at a time.
6507         * scripts/soversions.awk: Remove WORDSIZE support.
6508         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6509         entries.
6510         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6511         Removed.
6512         (syscall-list-default-condition): Likewise.
6513         (syscall-list-default-condition): Likewise.
6514         (syscall-list-includes): Likewise.
6515         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6516         syscall-list-* with abi-*.  Handle undefined abi-variants.
6517         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6518         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6519         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6520         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6521         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6522         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6523         Removed.
6524         (syscall-list-32-options): Likewise.
6525         (syscall-list-32-condition): Likewise.
6526         (syscall-list-64-options): Likewise.
6527         (syscall-list-64-condition): Likewise.
6528         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6529         macro.
6530         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6531         Renamed to ...
6532         (abi-*): This.
6533         (abi-64-ld-soname): New macro.
6534         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6535         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6536         Renamed to ...
6537         (abi-*): This.
6538         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6539         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6540
6541 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6542
6543         * sysdeps/unix/sysv/linux/kernel-features.h
6544         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6545         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6546         include <kernel-features.h>.
6547         [!__NR_ftruncate64]: Remove conditional code.
6548         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6549         [__NR_ftruncate64]: Make code unconditional.
6550         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6551         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6552         include <kernel-features.h>.
6553         [!__NR_ftruncate64]: Remove conditional code.
6554         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6555         [__NR_ftruncate64]: Make code unconditional.
6556         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6558         include <kernel-features.h>.
6559         [!__NR_ftruncate64]: Remove conditional code.
6560         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6561         [__NR_ftruncate64]: Make code unconditional.
6562         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6564         include <kernel-features.h>.
6565         [!__NR_ftruncate64]: Remove conditional code.
6566         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6567         [__NR_ftruncate64]: Make code unconditional.
6568         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6569
6570         * configure.in (libc_cv_fpie): Weaken to a compile test using
6571         LIBC_TRY_CC_OPTION.
6572         * configure: Regenerated.
6573
6574 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6575
6576         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6577         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6578         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6579         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6580         Refreshed.
6581         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6583         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6584         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6585         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6586         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6587         Refreshed.
6588
6589 2012-05-27  David S. Miller  <davem@davemloft.net>
6590
6591         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6592         (___Q_zero): New.
6593         (__Q_simulate_exceptions): Return void.  Change to simulate
6594         exceptions by writing into the %fsr.
6595         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6596         (__Qp_handle_exceptions): Likewise.
6597         (numbers): Delete.
6598         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6599         __Qp_handle_exceptions.
6600         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6601         __Qp_handle_exceptions.
6602         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6603         as unused and give dummy FP_RND_NEAREST initializer.
6604         (FP_INHIBIT_RESULTS): Define.
6605         (___Q_simulate_exceptions): Update declaration.
6606         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6607         formatting.
6608         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6609         as unused and give dummy FP_RND_NEAREST initializer.
6610         (__Qp_handle_exceptions): Update declaration.
6611         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6612         formatting.
6613
6614 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6615
6616         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6617         the temporary FPU control word.
6618         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6619         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6620         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6621         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6622         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6623         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6624         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6625         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6626         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6627         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6628         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6629
6630 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6631
6632         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6633         fields.
6634
6635 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6636
6637         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6638         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6639         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6640         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6641         Likewise.
6642         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6643         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6644         Likewise.
6645
6646 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6647
6648         * po/h.po: Update from translation team.
6649
6650 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6651
6652         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6653
6654         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6655         handling of denormals.
6656         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6657         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6658         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6659         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6660         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6661         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6662         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6663         Likewise.
6664
6665 2012-05-26  Marek Polacek  <polacek@redhat.com>
6666
6667         [BZ #14152]
6668         * math/libm-test.inc (fma_test): Don't always expect underflow
6669         exception.
6670
6671 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6672
6673         [BZ #12416]
6674         * elf/tst-execstack.c: Include stackinfo.h.
6675         (do_test): Adjust test case to ensure that pthread_getattr_np
6676         behaviour remains the same after marking stack executable.
6677
6678 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6679
6680         * sysdeps/unix/sysv/linux/kernel-features.h
6681         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6682         * sysdeps/unix/sysv/linux/i386/getrlimit.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         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6687         kernel-features.h.
6688         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6689         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6690
6691 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6692
6693         * configure.in: Define the default includes to being none.
6694         * configure: Regenerated.
6695
6696 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6697
6698         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6699         * sysdeps/x86_64/setjmp.S: Likewise.
6700         * sysdeps/i386/bsd-setjmp.S: Likewise.
6701         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6702         * sysdeps/i386/setjmp.S: Likewise.
6703         * sysdeps/i386/__longjmp.S: Likewise.
6704         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6705         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6706
6707         * include/stap-probe.h: New file.
6708         * configure.in: Handle --enable-systemtap.
6709         * configure: Regenerated.
6710         * config.h.in (USE_STAP_PROBE): New #undef.
6711         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6712         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6713         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6714
6715 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6716
6717         [BZ #13717]
6718         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6719         to 2.4.0 where earlier.
6720         * sysdeps/unix/sysv/linux/configure: Regenerated.
6721         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.c: Do not include
6726         <kernel-features.h>.
6727         [__ASSUME_32BITUIDS]: Make code unconditional.
6728         [!__ASSUME_32BITUIDS]: Remove conditional code.
6729         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6730         [__ASSUME_32BITUIDS]: Make code unconditional.
6731         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6732         * sysdeps/unix/sysv/linux/i386/getegid.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/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.c: Do not include
6769         <kernel-features.h>.
6770         [__ASSUME_32BITUIDS]: Make code unconditional.
6771         [!__ASSUME_32BITUIDS]: Remove conditional code.
6772         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6773         <kernel-features.h>.
6774         [__NR_setresgid] (__setresgid): Do not declare.
6775         [__ASSUME_32BITUIDS]: Make code unconditional.
6776         [!__ASSUME_32BITUIDS]: Remove conditional code.
6777         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6778         <kernel-features.h>.
6779         [__NR_setresuid] (__setresuid): Do not declare.
6780         [__ASSUME_32BITUIDS]: Make code unconditional.
6781         [!__ASSUME_32BITUIDS]: Remove conditional code.
6782         * sysdeps/unix/sysv/linux/i386/setfsgid.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/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/i386/shmctl.c: Do not include
6819         <kernel-features.h>.
6820         [__ASSUME_32BITUIDS]: Make code unconditional.
6821         [!__ASSUME_32BITUIDS]: Remove conditional code.
6822         * sysdeps/unix/sysv/linux/kernel-features.h
6823         (__ASSUME_SETRESUID_SYSCALL): Remove.
6824         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6825         (__ASSUME_32BITUIDS): Likewise.
6826         (__ASSUME_LDT_WORKS): Likewise.
6827         (__ASSUME_O_DIRECTORY): Likewise.
6828         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6829         architecture but not kernel version.
6830         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6831         (__ASSUME_MMAP2_SYSCALL): Likewise.
6832         (__ASSUME_STAT64_SYSCALL): Likewise.
6833         (__ASSUME_IPC64): Likewise.
6834         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6835         <kernel-features.h>.
6836         [__ASSUME_32BITUIDS]: Make code unconditional.
6837         [!__ASSUME_32BITUIDS]: Remove conditional code.
6838         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6839         <kernel-features.h>.
6840         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6841         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6842         132096]: Remove conditional code.
6843         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6844         * sysdeps/unix/sysv/linux/s390/s390-32/chown.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/s390/s390-32/lchown.c: Do not include
6849         <kernel-features.h>.
6850         [__ASSUME_32BITUIDS]: Make code unconditional.
6851         [!__ASSUME_32BITUIDS]: Remove conditional code.
6852         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6853         <kernel-features.h>.
6854         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6855         unconditional.
6856         (__setresgid): Do not declare.
6857         [__ASSUME_32BITUIDS]: Make code unconditional.
6858         [!__ASSUME_32BITUIDS]: Remove conditional code.
6859         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6860         <kernel-features.h>.
6861         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6862         unconditional.
6863         (__setresuid): Do not declare.
6864         [__ASSUME_32BITUIDS]: Make code unconditional.
6865         [!__ASSUME_32BITUIDS]: Remove conditional code.
6866         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6867         <kernel-features.h>.
6868         [__ASSUME_32BITUIDS]: Make code unconditional.
6869         [!__ASSUME_32BITUIDS]: Remove conditional code.
6870         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6871         <kernel-features.h>.
6872         [__ASSUME_32BITUIDS]: Make code unconditional.
6873         [!__ASSUME_32BITUIDS]: Remove conditional code.
6874
6875 2012-05-25  Richard Henderson  <rth@twiddle.net>
6876
6877         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6878         dl_hwcap to ifunc resolver.
6879         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6880         elf_ifunc_invoke.
6881         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6882         dl_hwcap to ifunc resolver.
6883         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6884
6885 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6886
6887         [BZ #14153]
6888         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6889         for |x| <= 2**-26, not 2**-57.
6890         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6891         exception.
6892
6893 2012-05-24  Jeff Law  <law@redhat.com>
6894
6895         * stdio-common/Makefile (tests): Add bug25.
6896         * stdio-common/bug25.c: New test.
6897
6898 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6899
6900         [BZ #13576]
6901         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6902         multiple of MALLOC_ALIGNMENT in size.
6903         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6904
6905 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6906
6907         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6908         Require >= 256.
6909         (FILENAME_MAX): Use macro-int-constant.
6910         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6911         (_IOFBF): Use macro-int-constant.
6912         (_IOLBF): Likewise.
6913         (_IONBF): Likewise.
6914         (SEEK_CUR): Likewise.
6915         (SEEK_END): Likewise.
6916         (SEEK_SET): Likewise.
6917         (TMP_MAX): Likewise.
6918         (EOF): Use macro-int-constant.  Require < 0.
6919         (NULL): Use macro-constant.  Require == 0.
6920         (stdin): Require type to be FILE *.
6921         (stdout): Likewise.
6922         (stderr): Likewise.
6923         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6924         macro-int-constant.
6925         (EXIT_SUCCESS): Likewise.
6926         (NULL): Use macro-constant.  Require == 0.
6927         (RAND_MAX): Use macro-int-constant.
6928         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6929         [C99-based standards] (strtof): Require function.
6930         [C99-based standards] (strtold): Likewise.
6931         [C99-based standards] (strtoll): Likewise.
6932         [C99-based standards] (strtoull): Likewise.
6933         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6934         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6935         [ISO || ISO99 || ISO11] (math.h): Likewise.
6936         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6937         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6938         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6939
6940 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6941
6942         [BZ #14132]
6943         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6944         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6945         * intl/dgettext.c (DCGETTEXT): Likewise.
6946         * intl/gettext.c (DCGETTEXT): Likewise.
6947         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6948         * posix/regex_internal.h (gettext): Likewise.
6949         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6950         Remove declaration.
6951         * include/argz.h (__argz_count_internal)
6952         (__argz_stringify_internal): Remove declaration.
6953         (__argz_count, __argz_stringify): Declare hidden proto.
6954         * intl/dcgettext.c: Remove use of INTDEF.
6955         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6956         * string/argz-stringify.c: Likewise.
6957         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6958         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6959         Declare hidden proto.
6960         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6961         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6962         Declare hidden proto.
6963         * include/stdio.h (__asprintf_internal): Don't declare.
6964         (__asprintf): Don't define as macro.  Declare hidden proto.
6965         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
6966         (__fsetlocking): Declare hidden proto.
6967         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
6968         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
6969         hidden proto.
6970         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
6971         (_IO_setlinebuf): Remove use of INTUSE.
6972         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
6973         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
6974         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
6975         Remove declaration.
6976         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
6977         (_IO_do_flush): Remove use of INTUSE.
6978         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
6979         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
6980         (_IO_adjust_column, _IO_least_wmarker)
6981         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
6982         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
6983         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
6984         (_IO_default_doallocate, _IO_wdefault_doallocate)
6985         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
6986         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
6987         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
6988         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
6989         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
6990         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
6991         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
6992         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
6993         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
6994         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
6995         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
6996         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
6997         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
6998         proto.
6999         (_IO_flush_all_internal, _IO_adjust_column_internal)
7000         (_IO_default_uflow_internal, _IO_default_finish_internal)
7001         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
7002         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
7003         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
7004         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
7005         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
7006         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
7007         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
7008         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
7009         (_IO_file_close_internal, _IO_file_close_it_internal)
7010         (_IO_file_underflow_internal, _IO_file_overflow_internal)
7011         (_IO_file_init_internal, _IO_file_attach_internal)
7012         (_IO_file_fopen_internal, _IO_file_read_internal)
7013         (_IO_file_sync_internal, _IO_file_seek_internal)
7014         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
7015         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
7016         (_IO_str_underflow_internal, _IO_str_overflow_internal)
7017         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
7018         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
7019         (_IO_list_all_internal, _IO_link_in_internal)
7020         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
7021         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
7022         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
7023         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
7024         (_IO_do_write_internal, _IO_padn_internal)
7025         (_IO_getline_info_internal, _IO_getline_internal)
7026         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
7027         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
7028         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
7029         (_IO_vfscanf_internal, _IO_vfprintf_internal)
7030         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
7031         (_IO_init_internal, _IO_un_link_internal): Don't declare.
7032         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
7033         with libc_hidden_ver, remove use of INTUSE.
7034         * libio/genops.c: Likewise.
7035         * libio/freopen.c: Likewise.
7036         * libio/freopen64.c: Likewise.
7037         * libio/iofclose.c: Likewise.
7038         * libio/iofdopen.c: Likewise.
7039         * libio/iofflush.c: Likewise.
7040         * libio/iofflush_u.c: Likewise.
7041         * libio/iofgets.c: Likewise.
7042         * libio/iofgets_u.c: Likewise.
7043         * libio/iofopen.c: Likewise.
7044         * libio/iofopncook.c: Likewise.
7045         * libio/iofread.c: Likewise.
7046         * libio/iofread_u.c: Likewise.
7047         * libio/ioftell.c: Likewise.
7048         * libio/iofwrite.c: Likewise.
7049         * libio/iogetline.c: Likewise.
7050         * libio/iogets.c: Likewise.
7051         * libio/iogetwline.c: Likewise.
7052         * libio/iopadn.c: Likewise.
7053         * libio/iopopen.c: Likewise.
7054         * libio/ioseekoff.c: Likewise.
7055         * libio/ioseekpos.c: Likewise.
7056         * libio/iosetbuffer.c: Likewise.
7057         * libio/iosetvbuf.c: Likewise.
7058         * libio/ioungetc.c: Likewise.
7059         * libio/ioungetwc.c: Likewise.
7060         * libio/iovdprintf.c: Likewise.
7061         * libio/iovsprintf.c: Likewise.
7062         * libio/iovsscanf.c: Likewise.
7063         * libio/memstream.c: Likewise.
7064         * libio/obprintf.c: Likewise.
7065         * libio/oldfileops.c: Likewise.
7066         * libio/oldiofclose.c: Likewise.
7067         * libio/oldiofdopen.c: Likewise.
7068         * libio/oldiofopen.c: Likewise.
7069         * libio/oldiopopen.c: Likewise.
7070         * libio/oldstdfiles.c: Likewise.
7071         * libio/putc.c: Likewise.
7072         * libio/setbuf.c: Likewise.
7073         * libio/setlinebuf.c: Likewise.
7074         * libio/stdfiles.c: Likewise.
7075         * libio/strops.c: Likewise.
7076         * libio/vasprintf.c: Likewise.
7077         * libio/vscanf.c: Likewise.
7078         * libio/vsnprintf.c: Likewise.
7079         * libio/vswprintf.c: Likewise.
7080         * libio/wfiledoalloc.c: Likewise.
7081         * libio/wfileops.c: Likewise.
7082         * libio/wgenops.c: Likewise.
7083         * libio/wmemstream.c: Likewise.
7084         * libio/wstrops.c: Likewise.
7085         * libio/__fpurge.c: Likewise.
7086         * libio/__fsetlocking.c: Likewise.
7087         * assert/assert.c: Likewise.
7088         * debug/fgets_chk.c: Likewise.
7089         * debug/fgets_u_chk.c: Likewise.
7090         * debug/fread_chk.c: Likewise.
7091         * debug/fread_u_chk.c: Likewise.
7092         * debug/gets_chk.c: Likewise.
7093         * debug/obprintf_chk.c: Likewise.
7094         * debug/vasprintf_chk.c: Likewise.
7095         * debug/vdprintf_chk.c: Likewise.
7096         * debug/vsnprintf_chk.c: Likewise.
7097         * debug/vsprintf_chk.c: Likewise.
7098         * malloc/mtrace.c: Likewise.
7099         * misc/error.c: Likewise.
7100         * misc/syslog.c: Likewise.
7101         * stdio-common/asprintf.c: Likewise.
7102         * stdio-common/fxprintf.c: Likewise.
7103         * stdio-common/getw.c: Likewise.
7104         * stdio-common/isoc99_fscanf.c: Likewise.
7105         * stdio-common/isoc99_scanf.c: Likewise.
7106         * stdio-common/isoc99_vfscanf.c: Likewise.
7107         * stdio-common/isoc99_vscanf.c: Likewise.
7108         * stdio-common/isoc99_vsscanf.c: Likewise.
7109         * stdio-common/printf-prs.c: Likewise.
7110         * stdio-common/printf_fp.c: Likewise.
7111         * stdio-common/printf_fphex.c: Likewise.
7112         * stdio-common/printf_size.c: Likewise.
7113         * stdio-common/putw.c: Likewise.
7114         * stdio-common/scanf.c: Likewise.
7115         * stdio-common/sprintf.c: Likewise.
7116         * stdio-common/tmpfile.c: Likewise.
7117         * stdio-common/vfprintf.c: Likewise.
7118         * stdio-common/vfscanf.c: Likewise.
7119         * stdlib/strfmon_l.c: Likewise.
7120         * sunrpc/openchild.c: Likewise.
7121         * sunrpc/xdr_stdio.c: Likewise.
7122         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7123         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7124
7125 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7126
7127         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7128
7129         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7130         in the third column, to generate for the shared library an IFUNC
7131         that uses _dl_vdso_vsym.
7132         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7133         * Makeconfig (object-suffixes-noshared): New variable.
7134
7135         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7136         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7137         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7138         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7139
7140         [BZ #14132]
7141         * include/sys/time.h (__gettimeofday): Remove macro.
7142         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7143         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7144         Remove INTDEF.
7145         (__gettimeofday): Add libc_hidden_def.
7146         (gettimeofday): Add libc_hidden_weak.
7147         * sysdeps/mach/gettimeofday.c: Likewise.
7148         * sysdeps/posix/gettimeofday.c: Likewise.
7149         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7150         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7151         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7152         (__gettimeofday_internal): Remove strong_alias.
7153         (__gettimeofday): Add libc_hidden_def.
7154         (gettimeofday): Add libc_hidden_weak.
7155         * sysdeps/unix/syscalls.list (gettimeofday):
7156         Remove __gettimeofday_internal alias.
7157
7158 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7159             H.J. Lu  <hongjiu.lu@intel.com>
7160
7161         [BZ #12495]
7162         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7163         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7164         (largebin_index_32_big): New.
7165         (largebin_index): Use it for 16-byte alignment.
7166         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7167         correction with front_misalign.
7168
7169 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7170
7171         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7172         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7173         Likewise.
7174         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7175         Likewise.
7176         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7177         Likewise.
7178         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7179         Likewise.
7180         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7181         Likewise.
7182         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7183         Likewise.
7184         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7185         Likewise.
7186         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7187         Likewise.
7188         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7189         Likewise.
7190         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7191         Likewise.
7192         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7193         Likewise.
7194         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7195         Likewise.
7196
7197         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7198         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7199
7200 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7201
7202         [BZ #10846]
7203         [BZ #14036]
7204         * math/libm-test.inc (exp_test): Add test from bug 14036.
7205         (pow_test): Add test from bug 10846.
7206
7207         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7208         and other flags.
7209         (special_function): Do not include flags in test name.
7210         (parse_args): Likewise.
7211         * sysdeps/i386/fpu/libm-test-ulps: Update.
7212         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7213         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7214         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7215         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7216
7217         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7218         exceptions.
7219         * math/libm-test.inc ("Philosophy"): Update comment about
7220         exception testing.
7221         (UNDERFLOW_EXCEPTION): New macro.
7222         (UNDERFLOW_EXCEPTION_OK): Likewise.
7223         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7224         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7225         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7226         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7227         (INVALID_EXCEPTION_OK): Update value.
7228         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7229         (OVERFLOW_EXCEPTION_OK): Likewise.
7230         (IGNORE_ZERO_INF_SIGN): Likewise.
7231         (test_exceptions): Handle underflow exceptions.
7232         (acos_test): Update for underflow exception expectations.
7233         (cexp_test): Likewise.
7234         (clog_test): Likewise.
7235         (clog10_test): Likewise.
7236         (csqrt_test): Likewise.
7237         (ctan_test): Likewise.
7238         (ctanh_test): Likewise.
7239         (exp_test): Likewise.
7240         (exp10_test): Likewise.
7241         (exp2_test): Likewise.
7242         (expm1_test): Likewise.
7243         (fma_test): Likewise.
7244         (j0_test): Likewise.
7245         (jn_test): Likewise.
7246         (nexttoward_test): Likewise.
7247         (pow_test): Likewise.
7248         (scalbn_test): Likewise.
7249         (scalbln_test): Likewise.
7250         (tan_test): Likewise.
7251         (y1_test): Likewise.
7252         * sysdeps/i386/fpu/libm-test-ulps: Update.
7253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7254
7255 2012-05-23  David S. Miller  <davem@davemloft.net>
7256
7257         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7258         (__libc_sigaction): Remove unused local variables.
7259
7260 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7261
7262         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7263
7264 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7265
7266         mktime: avoid signed integer overflow
7267         * time/mktime.c (__mktime_internal): Do not mishandle the case
7268         where diff == INT_MIN.
7269
7270         mktime: simplify computation of average
7271         * time/mktime.c (ranged_convert): Use new time_t_avg function
7272         instead of rolling our own (probably-slower) code.
7273
7274         mktime: do not assume signed right shift propagates sign bit
7275         * time/mktime.c (isdst_differ): New static function.
7276         (__mktime_internal): No need to normalize tm_isdst now.
7277         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7278         tm_isdst values.
7279
7280         mktime: merge another wrapv change from gnulib
7281         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7282         from some compilers.
7283
7284         mktime: remove incorrect attempt at unusual arithmetics
7285         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7286         The code didn't really work on such machines anyway.
7287         (TYPE_MINIMUM): Assume two's complement.
7288         (twos_complement_arithmetic): Verify that long_int and time_t
7289         are two's complement (or unsigned, in the latter case).
7290
7291         mktime: check signed shifts on long_int and time_t, too
7292         * time/mktime.c (SHR): Check that shifts work as desired
7293         on the types long_int and time_t too, as SHR is used on
7294         such types.
7295
7296         mktime: do not assume 'long' is wide enough
7297         * time/mktime.c (verify): Move decl up.
7298         (long_int): New type.
7299         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7300         to remove assumption in the code that 'long' is wide enough to
7301         store year values.  This assumption is not true on x32 and on
7302         some non-glibc platforms.
7303
7304         mktime: merge wrapv change from gnulib
7305         * time/mktime.c (WRAPV): New macro.
7306         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7307         (guess_time_tm, __mktime_internal): Do not assume that signed
7308         integer overflow wraps around; modern compilers generate code
7309         where this assumption is no longer valid.
7310
7311 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7312
7313         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7314         Replace "jmp L(pseudo_end)" with "ret".
7315         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7316         Likewise.
7317
7318 2012-05-23  Andreas Jaeger  <aj@suse.de>
7319
7320         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7321         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7322
7323 2012-05-23  Andreas Jaeger  <aj@suse.de>
7324             Maximilian Attems  <max@stro.at>
7325
7326         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7327         New macros.
7328
7329 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7330
7331         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7332         code so that pseudo_end is just ret and the stack pointer is
7333         correct also for static library in error case.
7334
7335 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7336
7337         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7338         move to syscalls.list.
7339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7343
7344         * manual/install.texi (Running make install): Do not mention Linux
7345         kernel version for which pt_chown is not needed.
7346         (Linux): Do not mention problems with nscd with 2.0 kernels.
7347         * INSTALL: Regenerated.
7348
7349 2012-05-23  Andreas Jaeger  <aj@suse.de>
7350
7351         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7352         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7353         macro.
7354         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7355         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7356         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7357         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7358         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7359         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7360         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7361         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7362         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7363         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7364         * sysdeps/unix/sysv/linux/bits/in.h
7365         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7366
7367 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7368
7369         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7370         (PREPARE_VERSION): Just use assert instead, it will be elided
7371         under [NDEBUG] anyway.
7372
7373 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7374
7375         * sysdeps/unix/sysv/linux/Makefile: Include
7376         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7377         (sysdep_routines): Remove sysctl.
7378         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7379         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7380         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7381         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7382         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7383
7384 2012-05-22  Andreas Jaeger  <aj@suse.de>
7385
7386         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7387         that pseudo_end is just ret and the stack pointer is correct also
7388         for static library in error case.
7389
7390 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7391
7392         [BZ #14122]
7393         * nss/nsswitch.c (defconfig_entries): New variable.
7394         (__nss_database_lookup): Don't leak defconfig entries.
7395         (nss_parse_service_list): Don't leak on error paths.
7396         (free_database_entries): New function.
7397         (free_defconfig): New function.
7398         (free_mem): Move common code to free_database_entries.
7399
7400 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7401
7402         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7403         Add arch_prctl.
7404         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7405
7406         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7407         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7408         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7409         New macro.
7410         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7411         (INTERNAL_SYSCALL_TYPES): Likewise.
7412         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7413         (LOAD_REGS_TYPES_[1-6]): Likewise.
7414         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7415         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7416
7417 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7418
7419         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7420         copysignl for GLIBC_2_0.
7421         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7422         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7423         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7424         logbl for GLIBC_2_0.
7425         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7426         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7427
7428 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7429
7430         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7431         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7432
7433         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7434         Use "neg %eax".
7435
7436         * time/mktime.c: Update copyright years.
7437
7438 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7439
7440         mktime: merge comment-quoting-style change from gnulib
7441         * time/mktime.c: Quote 'like this' in comments.
7442         The GNU coding standards suggest that we no longer quote `like this',
7443         as "`" and "'" are typically rendered asymmetrically nowadays.
7444         The typical gnulib style is to quote 'like this' when quoting
7445         code, and "like this" when quoting English.
7446
7447         * time/mktime.c (compile-command): Add "-I.".
7448
7449         mktime: merge mktime-internal.h change from gnulib
7450         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7451
7452         mktime: merge time_r change from gnulib
7453         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7454
7455         mktime: merge DEBUG change from gnulib
7456         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7457         case system <time.h> has a #define.
7458
7459         mktime: merge <sys/types.h> change from gnulib
7460         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7461         since <time.t> is now guaranteed to define time_t.
7462
7463         mktime: merge HAVE_CONFIG_H change from gnulib
7464         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7465
7466 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7467
7468         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7469         Use "neg %eax".
7470
7471         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7472         __rlim_t cast.
7473         (struct rusage): Use anonymous union to pad each field to
7474         __syscall_slong_t.
7475
7476 2012-05-21  David S. Miller  <davem@davemloft.net>
7477
7478         * Makefules (o-iterator): Remove .s cases.
7479         (compile-command.s): Delete.
7480         (COMPILE.s): Delete.
7481         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7482
7483 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7484
7485         * configure.in (libc_cv_predef_stack_protector): Only consider
7486         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7487         * configure: Regenerated.
7488
7489 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7490
7491         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7492         New macro.  Use R*LP on int and pointer.
7493         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7494         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7495         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7496         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7497
7498         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7499         [__WORDSIZE_TIME64_COMPAT32] instead of
7500         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7501         (struct utmp): Likewise.
7502         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7503         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7504         Renamed to ...
7505         (__WORDSIZE_TIME64_COMPAT32): This.
7506         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7507         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7508         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7509         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7510         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7511         (__WORDSIZE_TIME64_COMPAT32): New macro.
7512
7513 2012-05-21  Andreas Jaeger  <aj@suse.de>
7514
7515         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7516         only if [SHARED]. Add prototype for __wcschr_ia32.
7517
7518 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7519
7520         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7521         of %rbp unmolested in the jmp_buf while mangling the low bits.
7522         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7523         unmolested high bits of %rbp while demangling the low bits.
7524         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7525
7526 2012-05-21  Andreas Jaeger  <aj@suse.de>
7527
7528         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7529         * sunrpc/svc_simple.c: Use it for registerrpc.
7530         * sunrpc/xcrypt.c: Use it for passwd2des.
7531
7532         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7533
7534 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7535
7536         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7537         Don't define if [__SYSCALL_WORDSIZE != 32].
7538         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7539         New macro.
7540
7541 2012-05-21  Bruno Haible  <bruno@clisp.org>
7542             Andreas Jaeger  <aj@suse.de>
7543
7544         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7545         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7546         inptr and inend for must_buffer_ch.
7547         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7548         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7549         * stdio-common/Makefile (tests): Remove bug15.
7550         (bug15-ENV): Remove macro.
7551         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7552         anymore.
7553
7554 2012-05-19  Andreas Jaeger  <aj@suse.de>
7555             Roland McGrath  <roland@hack.frob.com>
7556
7557         * manual/contrib.texi: Completely rewritten. It contains now an
7558         alphabetical list of contributors and their contributions.
7559
7560 2012-05-21  Richard Henderson  <rth@twiddle.net>
7561
7562         * misc/getauxval.c (__getauxval): Use unsigned long int.
7563         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7564         (getauxval): Use unsigned long int.
7565
7566 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7567
7568         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7569
7570 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7571
7572         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7573         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7574         __alignof__ (long double).
7575
7576 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7577
7578         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7579
7580 2012-05-20  Richard Henderson  <rth@twiddle.net>
7581
7582         * misc/getauxval.c: New file.
7583         * misc/sys/auxv.h: New file.
7584         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7585         (routines): Add getauxval.
7586         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7587         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7588         * elf/dl-sysdep.c (_dl_auxv): Remove.
7589         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7590         * elf/dl-support.c (_dl_auxv): New variable.
7591         (_dl_aux_init): Initialize it.
7592         * manual/startup.texi (Auxiliary Vector): New node.
7593         * sysdeps/generic/bits/hwcap.h: New file.
7594         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7595         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7596         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7597         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7598         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7599         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7601         Update.
7602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7603         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7605         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7607         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7608         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7609         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7610
7611 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7612
7613         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7614
7615 2012-05-19  David S. Miller  <davem@davemloft.net>
7616
7617         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7618
7619 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7620
7621         [BZ #14123]
7622         * math/s_ccosh.c: Include <float.h>
7623         (__ccosh): Avoid internal overflow calculating sinh and cosh
7624         values before multiplying by sin and cos values.
7625         * math/s_ccoshf.c: Likewise.
7626         * math/s_ccoshl.c: Likewise.
7627         * math/s_csin.c: Likewise.
7628         * math/s_csinf.c: Likewise.
7629         * math/s_csinl.c: Likewise.
7630         * math/s_csinh.c: Likewise.
7631         * math/s_csinhf.c: Likewise.
7632         * math/s_csinhl.c: Likewise.
7633         * math/libm-test.inc (ccos_test): Add more tests.
7634         (ccosh_test): Likewise.
7635         (csin_test): Likewise.
7636         (csinh_test): Likewise.
7637         * sysdeps/i386/fpu/libm-test-ulps: Update.
7638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7639
7640 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7641
7642         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7643         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7644
7645         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7646
7647 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7648
7649         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7650         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7651         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7652         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7653         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7654         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7655         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7656         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7657         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7658         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7659         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7660         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7661         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7662         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7663         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7664         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7665         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7666         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7667         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7668         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7669         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7670         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7671         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7672         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7673         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7674         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7675         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7676         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7677         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7678         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7679         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7680
7681 2012-05-18  Andreas Jaeger  <aj@suse.de>
7682
7683         * csu/.gitignore: Delete.
7684
7685 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7686
7687         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7688         (timex): Use __syscall_slong_t.
7689
7690 2012-05-18  Andreas Jaeger  <aj@suse.de>
7691             Carlos O'Donell  <carlos_odonell@mentor.com>
7692
7693         * manual/install.texi (Configuring and compiling): Update
7694         description about files modified in the source directory.
7695         * INSTALL: Regenerated.
7696
7697 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7698
7699         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7700         value.  Use "or" to set return value to -1.
7701         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7702         negate return value.
7703
7704 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7705
7706         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7707         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7708         failure if the compiler has Graphite support disabled.
7709         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7710         Likewise.
7711         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7712         CFLAGS-memmove.c): Likewise.
7713         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7714         Likewise.
7715
7716 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7717
7718         * sysdeps/x86_64/x32/_itoa.h: New file.
7719
7720         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7721         getdents system call only if kernel and user dirents have the
7722         same d_ino and d_off.
7723
7724         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7725         LLONG_MAX != LONG_MAX.
7726         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7727         (_fitoa_word): Likewise.
7728
7729         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7730         years.
7731         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7732         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7733         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7734
7735         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7736         include <bits/wordsize.h>.  Check __x86_64__ instead of
7737         __WORDSIZE.
7738         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7739         if __x86_64__ is defined.  Use anonymous union on fpstate.
7740
7741         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7742         anonymous union.
7743
7744 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7745
7746         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7747         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7748         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7749         Refer to _rtld_local_ro instead of _rtld_global_ro.
7750         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7751         Likewise.
7752         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7753         Likewise.
7754         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7755         Likewise.
7756         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7757         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7758         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7759
7760         * sysdeps/powerpc/powerpc32/dl-machine.c
7761         (__elf_machine_runtime_setup) [PROF]: Don't reference
7762         _dl_prof_resolve.
7763
7764 2012-05-18  Andreas Jaeger  <aj@suse.de>
7765
7766         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7767         function only available for GCCs before 3.4 since GCC 3.4
7768         introduced a builtin.
7769         (lrint): Likewise.
7770         (llrintf): Likewise.
7771         (llrint): Likewise.
7772         (fmaxf): Likewise.
7773         (fmax): Likewise.
7774         (fminf): Likewise.
7775         (fmin): Likewise.
7776         (rint): Likewise.
7777         (rintf): Likewise.
7778         (nearbyint): Likewise.
7779         (nearbyintf): Likewise.
7780         (ceil): Likewise.
7781         (ceilf): Likewise.
7782         (floor): Likewise.
7783         (floorf): Likewise.
7784
7785 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7786
7787         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7788         on both fields and cast pointer to __syscall_ulong_t.
7789
7790         * bits/types.h (__fsword_t): New type.
7791         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7792         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7793         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7794         (__FSWORD_T_TYPE): Likewise.
7795         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7796         (__FSWORD_T_TYPE): Likewise.
7797         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7798         (__FSWORD_T_TYPE): Likewise.
7799         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7800         (__FSWORD_T_TYPE): Likewise.
7801         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7802         __SWORD_TYPE with __fsword_t.
7803         (statfs64): Likewise.
7804
7805 2012-05-17  David S. Miller  <davem@davemloft.net>
7806
7807         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7808
7809 2012-05-17  Andreas Jaeger  <aj@suse.de>
7810
7811         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7812         warning.
7813
7814 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7815
7816         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7817
7818 2012-05-17  Andreas Jaeger  <aj@suse.de>
7819
7820         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7821         when it is used.
7822
7823 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7824
7825         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7826
7827 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7828
7829         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7830         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7831
7832 2012-05-17  Andreas Jaeger  <aj@suse.de>
7833             Carlos O'Donell  <carlos_odonell@mentor.com>
7834
7835         [BZ #14059]
7836         * sysdeps/x86_64/multiarch/init-arch.h
7837         (bit_YMM_Usable): Rename to...
7838         (bit_AVX_Usable): ... this.
7839         (bit_FMA4_Usable): New macro.
7840         (bit_XMM_state): New macro.
7841         (bit_YMM_state): New macro.
7842         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7843         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7844         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7845         (CPUID_OSXSAVE): New macro.
7846         (CPUID_AVX): New macro.
7847         (CPUID_FMA4): New macro.
7848         (index_YMM_Usable): Rename to...
7849         (index_AVX_Usable): ... this.
7850         (HAS_AVX): Use HAS_ARCH_FEATURE.
7851         (HAS_FMA4): Likewise.
7852         (HAS_YMM_USABLE): Remove.
7853         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7854         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7855         are present.
7856         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7857         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7858         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7859         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7860         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7861
7862 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7863
7864         * math/libm-test.c: Support platforms without multiple rounding modes.
7865         * math/bug-nextafter.c: Support platforms without FP exceptions.
7866         * math/bug-nexttoward.c: Likewise.
7867         * math/test-fenv.c: Likewise.
7868         * math/test-misc.c: Likewise.
7869         * stdlib/bug-getcontext.c: Likewise.
7870
7871 2012-05-17  Andreas Jaeger  <aj@suse.de>
7872
7873         * manual/examples/search.c (critter_cmp): Change signature to
7874         avoid warnings.
7875         * manual/string.texi (Collation Functions): Likewise.
7876
7877 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7878
7879         * bits/types.h: Fold copyright years.
7880         * bits/typesizes.h: Likewise.
7881         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7882         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7883         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7884         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7885         * time/time.h: Likewise.
7886
7887 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7888
7889         [BZ #208]
7890         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7891         in instead of returning them.  Return void.
7892         (__libc_mallinfo): Accumulate over all arenas.
7893         (__malloc_stats): Adjust for change in int_mallinfo interface.
7894
7895 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7896
7897         [BZ #10375]
7898         * configure.in (NM): Add AC_CHECK_TOOL for it.
7899         (libc_extra_cflags): New substituted variable.
7900         Check for -fstack-protector being used implicitly.
7901         * configure: Regenerated.
7902         * config.make.in (config-extra-cflags): New variable,
7903         gets @libc_extra_cflags@.
7904         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7905
7906         [BZ #10375]
7907         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7908         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7909         * configure: Regenerated.
7910         * config.make.in (CPPUNDEFS): New substituted variable.
7911         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7912         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7913         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7914
7915 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7916
7917         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7918         (mq_attr): Use __syscall_slong_t.
7919
7920 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7921
7922         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7923         Check __x86_64__ instead of __WORDSIZE.
7924         (_STAT_VER_LINUX): Likewise.
7925         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7926         __syscall_ulong_t and __syscall_slong_t.
7927         (stat64): Likewise.
7928
7929 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7930
7931         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7932
7933 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7934
7935         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7936
7937 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7938
7939         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7940         __syscall_ulong_t.
7941
7942         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7943         include <bits/wordsize.h>.  Check __x86_64__ instead of
7944         __WORDSIZE.
7945         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7946         defined.
7947         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7948
7949         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7950         include <bits/wordsize.h>.  Check __x86_64__ instead of
7951         __WORDSIZE.
7952         (user_regs_struct): Use "__extension__ unsigned long long"
7953         instead of "unsigned long" if __x86_64__ is defined.
7954         (user): Likewise.  Pad after pointer field if __ILP32__ is
7955         defined.
7956
7957 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7958
7959         * configure.in (makeinfo): Require version 4.5 or later.  Allow
7960         versions 5 to 9.
7961         * configure: Regenerated.
7962         * manual/install.texi (texinfo): Increase version requirement to
7963         4.5 or later.
7964         * INSTALL: Regenerated.
7965
7966         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
7967
7968 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7969
7970         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
7971
7972         * sysdeps/x86_64/x32/ffs.c: New file.
7973
7974         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
7975         __syscall_ulong_t.
7976         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
7977         defined.  Use __syscall_ulong_t.
7978         (shminfo): Use __syscall_ulong_t.
7979         (shm_info): Likewise.
7980
7981         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
7982         __syscall_ulong_t.
7983
7984         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
7985         <bits/wordsize.h>.
7986         (msgqnum_t): Use __syscall_ulong_t.
7987         (msglen_t): Likewise.
7988         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
7989         __syscall_ulong_t.
7990
7991         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
7992         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7993
7994         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
7995
7996         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
7997         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
7998
7999         * sysvipc/sys/msg.h (msgbuf): Replace long int with
8000         __syscall_slong_t.
8001
8002         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
8003         include <bits/wordsize.h>.  Check __x86_64__ instead of
8004         __WORDSIZE.
8005
8006         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
8007         "unsigned long long int" if __x86_64__ is defined.
8008         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
8009
8010         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
8011         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8012         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
8013
8014         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
8015         <stdint.h>.
8016         (GET_PC): Cast to uintptr_t first.
8017         (GET_FRAME): Likewise.
8018         (GET_STACK): Likewise.
8019
8020         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
8021         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
8022         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
8023         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
8024         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
8025         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
8026         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
8027         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
8028         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8029         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
8030         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
8031         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
8032         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8033         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
8034         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
8035         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
8036         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8037         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8038         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8039         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8040         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8041         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8042         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8043         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8044         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8045         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8046         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8047         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8048         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8049
8050 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8051
8052         * Makerules (+depfiles): Also collect depfiles from .oS in
8053         $(extra-objs).
8054         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8055         .oS, $(libnldbl-routines)).
8056
8057         * Makerules (native-compile-mkdep-flags): Define.
8058         * sunrpc/Makefile (extra-objs): Add $(addprefix
8059         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8060         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8061         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8062         calling $(make-target-directory).
8063
8064 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8065
8066         * bits/types.h (__snseconds_t): Removed.
8067         * time/time.h (struct timespec): Replace __snseconds_t with
8068         __syscall_slong_t.
8069         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8070         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8071         Likewise.
8072         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8073         (__SNSECONDS_T_TYPE): Likewise.
8074         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8075         (__SNSECONDS_T_TYPE): Likewise.
8076         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8077         (__SNSECONDS_T_TYPE): Likewise.
8078
8079 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8080
8081         * sysdeps/mach/hurd/bits/typesizes.h
8082         (__SYSCALL_SLONG_TYPE): New macro.
8083         (__SYSCALL_ULONG_TYPE): Likewise.
8084
8085 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8086
8087         * bits/types.h (__syscall_slong_t): New type.
8088         (__syscall_ulong_t): Likewise.
8089
8090         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8091         (__SYSCALL_ULONG_TYPE): Likewise.
8092         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8093         (__SYSCALL_SLONG_TYPE): Likewise.
8094         (__SYSCALL_ULONG_TYPE): Likewise.
8095         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8096         (__SYSCALL_SLONG_TYPE): Likewise.
8097         (__SYSCALL_ULONG_TYPE): Likewise.
8098         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8099         (__SYSCALL_SLONG_TYPE): Likewise.
8100         (__SYSCALL_ULONG_TYPE): Likewise.
8101
8102 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8103
8104         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8105         Add sigaltstack-offsets.sym.
8106         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8107         <sigaltstack-offsets.h>.
8108         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8109         longjmp_msg pointer.
8110         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8111         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8112         signal stack.
8113         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8114
8115 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8116
8117         * elf/stackguard-macros.h: Remove file.
8118         * sysdeps/generic/stackguard-macros.h: New file.
8119         * sysdeps/i386/stackguard-macros.h: Likewise.
8120         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8121         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8122         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8123         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8124         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8125         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8126         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8127         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8128         <elf/stackguard-macros.h>.
8129
8130         [BZ #14109]
8131         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8132         __aligned__ in attribute.
8133         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8134         (gregset_t): Likewise.
8135
8136 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8137
8138         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8139         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8140         * sysdeps/x86_64/x32/Implies-after: New file.
8141
8142 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8143
8144         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8145         and access return value for _dl_profile_fixup.  Use R10_LP to
8146         load frame size.
8147
8148 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8149
8150         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8151
8152 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8153
8154         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8155         * sysdeps/x86_64/x32/sysdep.h: New file.
8156
8157 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8158
8159         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8160         * sysdeps/x86_64/setjmp.S: Likewise.
8161
8162 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8163
8164         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8165         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8166         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8167         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8168         remove unused global constant.
8169
8170 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8171
8172         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8173         include of <not-cancel.h>.
8174
8175 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8176
8177         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8178
8179 2012-05-15  Jeff Law  <law@redhat.com>
8180             Andreas Jaeger  <aj@suse.de>
8181
8182         [BZ #13594]
8183         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8184         out from...
8185         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8186         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8187         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8188         code changing __hst_map_handle.map.
8189
8190 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8191
8192         * configure.in (sysnames): Look for Implies-before and Implies-after
8193         files.
8194         * configure: Regenerated.
8195
8196 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8197
8198         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8199         8-byte data alignment with LP_SIZE alignment.
8200
8201 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8202
8203         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8204         into R10_LP.
8205
8206 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8207
8208         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8209
8210 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8211
8212         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8213         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8214         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8215         Likewise.
8216         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8217
8218 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8219
8220         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8221         (stackinfo_sub_sp): Likewise.
8222
8223 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8224
8225         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8226         RAX_LP.
8227
8228 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8229
8230         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8231         into R*_LP.
8232
8233 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8234
8235         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8236         sizes into R*_LP.
8237
8238 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8239
8240         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8241
8242 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8243
8244         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8245         into R11_LP and load __x86_64_shared_cache_size_half into
8246         R8_LP.
8247
8248 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8249
8250         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8251         R8_LP.
8252
8253 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8254
8255         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8256         logb for POWER7.
8257         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8258         logbf for POWER7.
8259         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8260         logbl for POWER7.
8261         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8262         powerpc32/power7/fpu/s_logb.c via #include.
8263         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8264         powerpc32/power7/fpu/s_logbf.c via #include.
8265         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8266         powerpc32/power7/fpu/s_logbl.c via #include.
8267
8268 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8269
8270         * README.libm: Remove file.
8271
8272 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8273
8274         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8275         count for x32.  Use R*_LP and omit operand-size suffix.
8276
8277 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8278
8279         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8280         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8281         * sysdeps/x86_64/x32/shlib-versions: New file.
8282
8283 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8284
8285         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8286         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8287         Use _dl_fatal_printf instead.
8288
8289 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8290
8291         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8292         set if not set by the user.  Do not allow for being unset.
8293         * sysdeps/unix/sysv/linux/configure: Regenerated.
8294
8295 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8296
8297         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8298         the `q' suffix from lea and replace .quad with ASM_ADDR.
8299
8300 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8301
8302         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8303         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8304         instead of $17.
8305         (PTR_DEMANGLE): Likewise.
8306
8307 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8308
8309         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8310         (LP_OP): Likewise.
8311         (ASM_ADDR): Likewise.
8312         (RAX_LP): Likewise.
8313         (RBP_LP): Likewise.
8314         (RBX_LP): Likewise.
8315         (RCX_LP): Likewise.
8316         (RDI_LP): Likewise.
8317         (RSI_LP): Likewise.
8318         (RSP_LP): Likewise.
8319         (R8_LP): Likewise.
8320         (R9_LP): Likewise.
8321         (R10_LP): Likewise.
8322         (R10_LP): Likewise.
8323         (R11_LP): Likewise.
8324         (R12_LP): Likewise.
8325         (R13_LP): Likewise.
8326         (R14_LP): Likewise.
8327         (R15_LP): Likewise.
8328
8329 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8330
8331         * sysdeps/x86_64/x32/dl-machine.h: New file.
8332
8333 2012-05-14  Andreas Jaeger  <aj@suse.de>
8334
8335         * manual/Makefile (subdir): Remove export of subdir.
8336         (all): Remove target.
8337         (.PHONY): Remove all from list.
8338         (mkinstalldirs): Remove.
8339         (.PHONY): Remove installdirs from list.
8340         ($(inst_infodir)/libc.info): Use make-target-directory.
8341         (installdirs): Remove.
8342         (subdir_%): Remove.
8343         (glibc-targets): Remove.
8344         (lib): Remove.
8345         (stubs): Remove.
8346         ($(objpfx)stubs ../po/manual.pot): Remove.
8347         ($(objpfx)stamp%): Remove.
8348         (make-target-directory): Remove.
8349         (subdir_install): Remove.
8350         (routines): Remove.
8351         (aux): Remove.
8352         (sources): Remove.
8353         (objects): Remove.
8354         (headers): Remove.
8355
8356         [BZ #13750]
8357         * manual/.gitignore: Remove, it's not needed anymore.
8358         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8359         all files in it.
8360         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8361         directory.
8362         (texis): Renamed to $(objpfx)texis.
8363         (texis-path): New, contains path to generated files.
8364         (chapters.%): Use texis-path for complete path, add extra argument
8365         libc-texinfo.sh.
8366         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8367         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8368         (summary,texi, stamp-summary): Use complete path of
8369         files. Generate files in build dir.
8370         (dir-add.texi): Build in build dir.
8371         (libm-err.texi,stamp-libm-err): Likewise.
8372         (version.texi, stamp-version): Likewise.
8373         (.%c.texi): Likewise.
8374         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8375         (mostlyclean): Remove target.
8376         (realclean): Remove target.
8377         (generated): Add new variable with contents from mostlyclean and
8378         realclean, remove entries duplicated in common-mostlyclean, add
8379         stamp-libm-err and stamp-version.
8380         (generated-dirs): Add libc directory.
8381         ($(inst_infodir)/libc.info): Install files from build dir.
8382
8383         * manual/install.texi (Configuring and compiling): Adjust since
8384         the info files are not part of the tar ball anymore.
8385
8386 2012-05-14  Andreas Jaeger  <aj@suse.de>
8387
8388         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8389         variable.
8390
8391 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8392
8393         [BZ #13717]
8394         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8395         to 2.2.0 where earlier.
8396         * sysdeps/unix/sysv/linux/configure: Regenerated.
8397         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8398         Remove conditional code.
8399         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8400         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8401         Remove conditional code.
8402         [!__NR_lchown]: Likewise.
8403         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8404         [__NR_lchown]: Likewise.
8405         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8406         comment referencing __ASSUME_LCHOWN_SYSCALL.
8407         * sysdeps/unix/sysv/linux/i386/sigaction.c
8408         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8409         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8410         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8411         Remove conditional code.
8412         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8413         (__protocol_available): Remove #if 0 code.
8414         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8415         conditional code.
8416         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8417         * sysdeps/unix/sysv/linux/kernel-features.h
8418         (__ASSUME_GETCWD_SYSCALL): Don't define.
8419         (__ASSUME_REALTIME_SIGNALS): Likewise.
8420         (__ASSUME_PREAD_SYSCALL): Likewise.
8421         (__ASSUME_PWRITE_SYSCALL): Likewise.
8422         (__ASSUME_POLL_SYSCALL): Likewise.
8423         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8424         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8425         non-SPARC.
8426         (__ASSUME_SIOCGIFNAME): Don't define.
8427         (__ASSUME_MSG_NOSIGNAL): Likewise.
8428         (__ASSUME_SENDFILE): Define unconditionally.
8429         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8430         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8431         conditional code.
8432         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8433         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8434         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8435         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8436         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8437         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8438         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8440         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8441         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8443         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8444         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8446         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8447         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8449         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8450         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8451         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8452         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8453         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8455         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8456         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8458         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8459         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8461         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8462         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8463         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8464         Remove conditional code.
8465         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8466         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8467         Remove conditional code.
8468         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8469         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8470         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8471         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8472         Remove conditional code.
8473         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8474         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8475         Remove conditional code.
8476         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8477         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8478         Remove conditional code.
8479         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8480         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8481         Remove conditional code.
8482         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8483         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8484         Remove conditional code.
8485         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8486         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8487         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8488         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8489         * sysdeps/unix/sysv/linux/sigaction.c
8490         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8491         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8492         * sysdeps/unix/sysv/linux/sigpending.c
8493         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8494         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8495         * sysdeps/unix/sysv/linux/sigprocmask.c
8496         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8497         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8498         * sysdeps/unix/sysv/linux/sigsuspend.c
8499         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8500         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8501         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8502         (__libc_missing_rt_sigs): Remove.
8503         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8504         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8505         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8506         Remove conditional code.
8507         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8508         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8509         return 1.
8510         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8511         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8512         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8513         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8514
8515 2012-05-14  Andreas Jaeger  <aj@suse.de>
8516
8517         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8518         it's not used in glibc.
8519         (__coshm1): Likewise.
8520         (__acosh1p): Likewise.
8521         (__sgn): Likewise.
8522
8523         * manual/string.texi (Copying and Concatenation): Add missing
8524         variable in concat example.
8525         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8526
8527 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8528
8529         [BZ #14103]
8530         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8531         __builtin_clzl with __builtin_clzll.
8532
8533 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8534
8535         [BZ #14104]
8536         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8537         libc_freeres_ptr.
8538
8539 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8540
8541         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8542         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8543         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8544         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8545
8546 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8547
8548         * NEWS: Update ia64 info.
8549
8550 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8551
8552         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8553         used as bcopy.
8554
8555 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8556
8557         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8558         * sysdeps/unix/syscalls.list (dup3): Likewise.
8559         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8560         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8561
8562 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8563
8564         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8565         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8566
8567 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8568
8569         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8570         thread pointer.
8571         (TLS_IE): Use mov/add instead of movq/addq to load thread
8572         pointer.
8573         (TLS_GD_PREFIX): New.
8574         (TLS_GD): Use it.
8575
8576 2012-05-11  David S. Miller  <davem@davemloft.net>
8577
8578         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8579         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8580         (_FPU_SETCW): Likewise.
8581
8582 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8583
8584         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8585         is 32-byte aligned.
8586
8587 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8588
8589         [BZ #11837]
8590         * iconvdata/gb18030.c: Update tables.
8591         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8592         characters specially.
8593         (BODY for TO_LOOP): Add encoding of missing ranges.
8594
8595 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8596
8597         [BZ #13673]
8598         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8599         * sysdeps/mach/hurd/dup3.c: Likewise.
8600         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8601         * sysdeps/powerpc/memmove.c:: Likewise.
8602
8603 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8604
8605         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8606         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8607
8608 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8609
8610         * elf/elf.h (R_X86_64_RELATIVE64): New.
8611         (R_X86_64_NUM): Updated.
8612         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8613         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8614         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8615         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8616         tst-quad1pie tst-quad2pie
8617         (modules-names): Add tst-quadmod1 tst-quadmod2.
8618         ($(objpfx)tst-quad1): New dependency.
8619         ($(objpfx)tst-quad2): Likewise.
8620         ($(objpfx)tst-quad1pie): Likewise.
8621         ($(objpfx)tst-quad2pie): Likewise.
8622         * sysdeps/x86_64/tst-quad1.c: New file.
8623         * sysdeps/x86_64/tst-quad1pie.c: New file.
8624         * sysdeps/x86_64/tst-quad2.c: Likewise.
8625         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8626         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8627         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8628         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8629         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8630
8631 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8632
8633         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8634         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8635         * streams/stropts.h (t_scalar_t): Define type.
8636
8637         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8638         (_PATH_PRESERVE): Set to "/var/lib".
8639         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8640
8641         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8642         instead of int.
8643
8644         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8645         if __dir_mkfile succeeded.
8646
8647         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8648         checking for _hurd_dtablesize.  Unlock it right after having
8649         finished _hurd_dtable allocation.
8650
8651 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8652
8653         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8654         * sysdeps/mach/hurd/configure: Regenerated.
8655         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8656         special-casing to...
8657         * sysdeps/gnu/configure.in: ... this new file.
8658         * sysdeps/unix/sysv/linux/configure: Regenerated.
8659         * sysdeps/gnu/configure: New generated file.
8660
8661         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8662         for Linux: use nsec instead of usec, as well as:
8663         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8664         members of type struct timespec.
8665         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8666         New macros.
8667         (struct stat64): Likewise.
8668         (_STATBUF_ST_NSEC): New macro.
8669         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8670
8671         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8672         __strtoul_internal rather than strtoul.
8673
8674 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8675
8676         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8677         and reject them.
8678
8679 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8680
8681         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8682         which preserves existing values.
8683         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8684
8685 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8686
8687         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8688         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8689         greater than FD_SETSIZE.
8690
8691 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8692
8693         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8694         allocated, call __vm_protect to finish enabling the existing space, and
8695         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8696         allocate the remainder.
8697
8698 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8699
8700         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8701         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8702
8703 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8704
8705         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8706         sysdeps/mach/hurd/readlink.c.
8707
8708         * posix/tst-sysconf.c (posix_options): Only use
8709         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8710         _POSIX_SYNCHRONIZED_IO when they are defined
8711         * sysdeps/mach/hurd/bits/posix_opt.h:
8712         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8713         (_XOPEN_REALTIME): Undefine macro.
8714         (_XOPEN_REALTIME_THREADS): Undefine macro.
8715         (_XOPEN_SHM): Undefine macro.
8716         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8717         macro to -1.
8718         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8719         macro to -1.
8720         (_POSIX_ASYNC_IO): Undefine macro.
8721         (_POSIX_PRIORITIZED_IO): Undefine macro.
8722         (_POSIX_SPIN_LOCKS): Define macro to -1.
8723
8724         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8725         SA_NODEFER, SA_RESETHAND.
8726         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8727         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8728         F_DUPFD_CLOEXEC.
8729
8730 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8731
8732         * elf/Makefile (pldd-modules): Define unconditionally.
8733
8734 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8735
8736         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8737
8738 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8739
8740         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8741         Return ENOENT when name is empty.
8742         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8743
8744 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8745
8746         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8747
8748         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8749
8750 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8751
8752         Fix mlock in all cases except non-readable pages.
8753         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8754         instead of VM_PROT_ALL as parameter to __vm_wire function.
8755
8756         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8757         (__mkdir): When path is `/', just fail with EEXIST.
8758         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8759
8760 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8761
8762         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8763         <sys/uio.h> (for writev).
8764         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8765         and <sys/param.h> (for MIN).
8766
8767 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8768
8769         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8770         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8771         if interrupted.
8772
8773 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8774
8775         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8776         Depend on against $(link-rpcuserlibs).
8777
8778 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8779
8780         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8781         (__libc_stack_end): Do not use attribute_relro.
8782         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8783         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8784         to libthread-provided value.
8785         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8786         attribute_relro.
8787
8788 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8789
8790         [BZ #3748]
8791         * bits/libc-lock.h (__libc_once_get): New macro.
8792         * sysdeps/mach/bits/libc-lock.h: Likewise.
8793         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8794         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8795         instead of using implementation details.
8796
8797         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8798         * libio/freopen.c: Likewise.
8799         * libio/freopen64.c: Likewise.
8800         * misc/syslog.c: Likewise.
8801         * nscd/connections.c: Likewise.
8802         * nscd/netgroupcache.c: Likewise.
8803         * sysdeps/posix/getcwd.c: Likewise.
8804
8805 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8806
8807         * math/w_ilogbf.c: Add #include <limits.h>.
8808
8809 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8810
8811         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8812         path instead of returning without unlocking.
8813
8814         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8815         immediate-write ioctls.
8816         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8817
8818 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8819
8820         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8821         __builtin_frame_address instead of making assumptions about the
8822         location of the return address relative to DATA.  Force early load of
8823         the return address.
8824         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8825         __builtin_frame_address.
8826
8827         dup3 for GNU Hurd.
8828         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8829         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8830         implement dup3 and do some further code clean-ups.
8831         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8832         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8833
8834 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8835
8836         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8837
8838         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8839         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8840         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8841         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8842         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8843         d->port.lock.
8844
8845         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8846         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8847         when handler == SIG_ERR, not when handler != SIG_ERR.
8848
8849 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8850
8851         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8852         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8853         definitions.
8854
8855         accept4 for GNU Hurd.
8856         * include/sys/socket.h (__libc_accept4): New prototype.
8857         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8858         to implement __libc_accept4.
8859         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8860         __libc_accept4.
8861         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8862
8863         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8864         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8865         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8866         signal-defines.sym.
8867
8868 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8869
8870         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8871
8872 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8873
8874         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8875         assertion on O_CLOEXEC flag.
8876         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8877         * hurd/intern-fd.c: Likewise.
8878         * hurd/port2fd.c: Likewise.
8879
8880 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8881
8882         [BZ #3906]
8883         * bits/in.h (IPV6_PKTINFO): Define new macro.
8884         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8885
8886 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8887
8888         [BZ #13954]
8889         [BZ #13955]
8890         [BZ #13956]
8891         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8892         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8893         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8894         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8895         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8896         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8897         * math/libm-test.inc (logb_test) : Additional logb tests.
8898
8899 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8900             Andreas Jaeger  <aj@suse.de>
8901
8902         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8903         * configure: Regenerated.
8904         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8905         * config.make.in (link-obsolete-rpc): New substituted variable.
8906         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8907         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8908         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8909         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8910         so that libc.a contains the symbols.
8911         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8912         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8913         * sunrpc/auth_none.c: Likewise.
8914         * sunrpc/auth_unix.c: Likewise.
8915         * sunrpc/authdes_prot.c: Likewise.
8916         * sunrpc/authuxprot.c: Likewise.
8917         * sunrpc/clnt_gen.c: Likewise.
8918         * sunrpc/clnt_perr.c: Likewise.
8919         * sunrpc/clnt_raw.c: Likewise.
8920         * sunrpc/clnt_simp.c: Likewise.
8921         * sunrpc/clnt_tcp.c: Likewise.
8922         * sunrpc/clnt_udp.c: Likewise.
8923         * sunrpc/clnt_unix.c: Likewise.
8924         * sunrpc/des_crypt.c: Likewise.
8925         * sunrpc/des_soft.c: Likewise.
8926         * sunrpc/get_myaddr.c: Likewise.
8927         * sunrpc/key_call.c: Likewise.
8928         * sunrpc/key_prot.c: Likewise.
8929         * sunrpc/netname.c: Likewise.
8930         * sunrpc/pm_getmaps.c: Likewise.
8931         * sunrpc/pm_getport.c: Likewise.
8932         * sunrpc/pmap_clnt.c: Likewise.
8933         * sunrpc/pmap_prot.c: Likewise.
8934         * sunrpc/pmap_prot2.c: Likewise.
8935         * sunrpc/pmap_rmt.c: Likewise.
8936         * sunrpc/publickey.c: Likewise.
8937         * sunrpc/rpc_cmsg.c: Likewise.
8938         * sunrpc/rpc_common.c: Likewise.
8939         * sunrpc/rpc_dtable.c: Likewise.
8940         * sunrpc/rpc_prot.c: Likewise.
8941         * sunrpc/rpc_thread.c: Likewise.
8942         * sunrpc/rtime.c: Likewise.
8943         * sunrpc/svc.c: Likewise.
8944         * sunrpc/svc_auth.c: Likewise.
8945         * sunrpc/svc_raw.c: Likewise.
8946         * sunrpc/svc_run.c: Likewise.
8947         * sunrpc/svc_tcp.c: Likewise.
8948         * sunrpc/svc_udp.c: Likewise.
8949         * sunrpc/svc_unix.c: Likewise.
8950         * sunrpc/svcauth_des.c: Likewise.
8951         * sunrpc/xcrypt.c: Likewise.
8952         * sunrpc/xdr.c: Likewise.
8953         * sunrpc/xdr_array.c: Likewise.
8954         * sunrpc/xdr_float.c: Likewise.
8955         * sunrpc/xdr_intXX_t.c: Likewise.
8956         * sunrpc/xdr_mem.c: Likewise.
8957         * sunrpc/xdr_rec.c: Likewise.
8958         * sunrpc/xdr_ref.c: Likewise.
8959         * sunrpc/xdr_sizeof.c: Likewise.
8960         * sunrpc/xdr_stdio.c: Likewise.
8961
8962 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8963
8964         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
8965         change.  Update copyright years.
8966
8967 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
8968
8969         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
8970
8971 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
8972             Joseph Myers  <joseph@codesourcery.com>
8973             Paul Pluzhnikov  <ppluzhnikov@google.com>
8974
8975         [BZ #14012]
8976         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
8977         requiring rpcgen.
8978         [cross-compiling] (extra-libs): Likewise.
8979         [cross-compiling] (extra-libs-others): Likewise.
8980         [cross-compiling] (librpcsvc-routines): Likewise.
8981         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
8982         [cross-compiling] (omit-deps): Likewise.
8983         (sunrpc-CPPFLAGS): New variable.
8984         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
8985         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
8986         (cross-rpcgen-objs): New variable.
8987         (extra-objs): Append $(cross-rpcgen-objs).
8988         ($(cross-rpcgen-objs)): New rule.
8989         ($(objpfx)cross-rpcgen): Likewise.
8990         (rpcgen-cmd): Define to use $(built-program-file).  Expand
8991         comment.
8992         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
8993         ($(objpfx)x%.stmp): Likewise.
8994         * sunrpc/proto.h [IS_IN_build] (_): Define.
8995         [IS_IN_build] (_libc_intl_domainname): Likewise.
8996
8997 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8998
8999         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
9000         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
9001         and R_X86_64_TPOFF64.
9002
9003 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9004
9005         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
9006         sysdeps/unix/sysv/syscalls.list.
9007         (stime): Likewise.
9008         (utime): Likewise.
9009         * sysdeps/unix/sysv/syscalls.list: Remove file.
9010
9011 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
9012
9013         [BZ #3440]
9014         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
9015         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
9016         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
9017         (__LC_IDENTIFICATION): Make these macros useful in #if
9018         expressions, as required by C99.
9019
9020 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
9021
9022         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
9023         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
9024         after this.
9025
9026 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9027
9028         * stdlib/longlong.h: Updated from GCC.
9029
9030 2012-05-09  Andreas Jaeger  <aj@suse.de>
9031
9032         * nscd/nscd.c (run_modes): Make named enum, reorder so that
9033         default is first entry.
9034         (run_mode): Set type.
9035         (main): Remove informal message about syslog.
9036         (options): Fix typo.
9037
9038         [BZ #14053]
9039         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9040         to asm.
9041         (lrint): Likewise.
9042         (llrintf): Likewise.
9043         (llrint): Likewise.
9044         (rint): Likewise.
9045         (rintf): Likewise.
9046         (nearbyint): Likewise.
9047         (nearbyintf): Likewise.
9048
9049 2012-05-09  Andreas Jaeger  <aj@suse.de>
9050             Pedro Alves  <palves@redhat.com>
9051
9052         * nscd/nscd.c (run_mode): Use enum.
9053         (main): Cleanup coding style issue.
9054
9055 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9056             Andreas Jaeger  <aj@suse.de>
9057
9058         * nscd/nscd.c (go_background): Replaced with...
9059         (run_mode): ... this.
9060         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9061         (options): Add -F --foreground.
9062         (main): Implement it.
9063         (parse_opt): Parse it.
9064
9065 2012-05-09  Andreas Jaeger  <aj@suse.de>
9066
9067         [BZ #14083]
9068         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9069         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9070         -Wconversion warning.
9071         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9072         Likewise.
9073
9074 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9075
9076         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9077         == 0.
9078         (LC_ALL): Use macro-int-constant.
9079         (LC_COLLATE): Likewise.
9080         (LC_CTYPE): Likewise.
9081         (LC_MESSAGES): Likewise.
9082         (LC_MONETARY): Likewise.
9083         (LC_NUMERIC): Likewise.
9084         (LC_TIME): Likewise.
9085         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9086         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9087         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9088         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9089         Specify type.
9090         [C99-based standards] (float_t): Expect type.
9091         [C99-based standards] (double_t): Expect type.
9092         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9093         type.
9094         [C99-based standards] (HUGE_VALL): Likewise.
9095         [C99-based standards] (INFINITY): Likewise.
9096         [C99-based standards] (NAN): Likewise.
9097         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9098         [C99-based standards] (FP_NAN): Likewise.
9099         [C99-based standards] (FP_NORMAL): Likewise.
9100         [C99-based standards] (FP_SUBNORMAL): Likewise.
9101         [C99-based standards] (FP_ZERO): Likewise.
9102         [C99-based standards] (FP_FAST_FMA): Use
9103         optional-macro-int-constant.  Specify type.  Require == 1.
9104         [C99-based standards] (FP_FAST_FMAF): Likewise.
9105         [C99-based standards] (FP_FAST_FMAL): Likewise.
9106         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9107         [C99-based standards] (FP_ILOGBNAN): Likewise.
9108         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9109         Specify type.
9110         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9111         [C99-based standards] (math_errhandling): Specify type.
9112         [ISO99 || ISO11] (signgam): Do not allow.
9113         [non-C99-based standards] (copysignf): Do not allow.
9114         [non-C99-based standards] (exp2f): Likewise.
9115         [non-C99-based standards] (log2f): Likewise.
9116         [non-C99-based standards] (modff): Allow.
9117         [non-C99-based standards] (erff): Do not allow.
9118         [non-C99-based standards] (erfcf): Likewise.
9119         [non-C99-based standards] (gammaf): Likewise.
9120         [non-C99-based standards] (hypotf): Likewise.
9121         [non-C99-based standards] (j0f): Likewise.
9122         [non-C99-based standards] (j1f): Likewise.
9123         [non-C99-based standards] (jnf): Likewise.
9124         [non-C99-based standards] (lgammaf): Likewise.
9125         [non-C99-based standards] (tgammaf): Likewise.
9126         [non-C99-based standards] (y0f): Likewise.
9127         [non-C99-based standards] (y1f): Likewise.
9128         [non-C99-based standards] (ynf): Likewise.
9129         [non-C99-based standards] (isnanf): Likewise.
9130         [non-C99-based standards] (acoshf): Likewise.
9131         [non-C99-based standards] (asinhf): Likewise.
9132         [non-C99-based standards] (atanhf): Likewise.
9133         [non-C99-based standards] (cbrtf): Likewise.
9134         [non-C99-based standards] (expm1f): Likewise.
9135         [non-C99-based standards] (ilogbf): Likewise.
9136         [non-C99-based standards] (log1pf): Likewise.
9137         [non-C99-based standards] (logbf): Likewise.
9138         [non-C99-based standards] (nextafterf): Likewise.
9139         [non-C99-based standards] (remainderf): Likewise.
9140         [non-C99-based standards] (rintf): Likewise.
9141         [non-C99-based standards] (scalbf): Likewise.
9142         [non-C99-based standards] (copysignl): Likewise.
9143         [non-C99-based standards] (exp2l): Likewise.
9144         [non-C99-based standards] (log2l): Likewise.
9145         [non-C99-based standards] (modfl): Allow.
9146         [non-C99-based standards] (erfl): Do not allow.
9147         [non-C99-based standards] (erfcl): Likewise.
9148         [non-C99-based standards] (gammal): Likewise.
9149         [non-C99-based standards] (hypotl): Likewise.
9150         [non-C99-based standards] (j0l): Likewise.
9151         [non-C99-based standards] (j1l): Likewise.
9152         [non-C99-based standards] (jnl): Likewise.
9153         [non-C99-based standards] (lgammal): Likewise.
9154         [non-C99-based standards] (tgammal): Likewise.
9155         [non-C99-based standards] (y0l): Likewise.
9156         [non-C99-based standards] (y1l): Likewise.
9157         [non-C99-based standards] (ynl): Likewise.
9158         [non-C99-based standards] (isnanl): Likewise.
9159         [non-C99-based standards] (acoshl): Likewise.
9160         [non-C99-based standards] (asinhl): Likewise.
9161         [non-C99-based standards] (atanhl): Likewise.
9162         [non-C99-based standards] (cbrtl): Likewise.
9163         [non-C99-based standards] (expm1l): Likewise.
9164         [non-C99-based standards] (ilogbl): Likewise.
9165         [non-C99-based standards] (log1pl): Likewise.
9166         [non-C99-based standards] (logbl): Likewise.
9167         [non-C99-based standards] (nextafterl): Likewise.
9168         [non-C99-based standards] (remainderl): Likewise.
9169         [non-C99-based standards] (rintl): Likewise.
9170         [non-C99-based standards] (scalbl): Likewise.
9171         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9172         [non-C99-based standards] (FP_*): Do not allow.
9173         [C99-based standards] (FP_*): Change to
9174         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9175         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9176         allow.
9177         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9178         (SIG_ERR): Likewise.
9179         [X/Open-based standards] (SIG_HOLD): Likewise.
9180         (SIG_IGN): Likewise.
9181         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9182         positive value.
9183         (SIGFPE): Likewise.
9184         (SIGILL): Likewise.
9185         (SIGINT): Likewise.
9186         (SIGSEGV): Likewise.
9187         (SIGTER): Likewise.
9188         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9189         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9190         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9191         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9192         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9193         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9194         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9195         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9196         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9197         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9198         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9199         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9200         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9201         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9202         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9203         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9204         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9205         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9206         [X/Open-based standards] (SIGTRAP): Likewise.
9207         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9208         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9209         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9210         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9211         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9212         allow.
9213
9214 2012-05-08  Ian Wienand  <ianw@vmware.com>
9215
9216         [BZ #14080]
9217         * time/tzset.c (__tzset_parse_tz): Update default rules for
9218         daylight time changes in the Energy Policy Act of 2005.
9219
9220 2012-05-09  Andreas Jaeger  <aj@suse.de>
9221
9222         [BZ #13983]
9223         * elf/ldconfig.c (parse_conf): Change string to make clear that
9224         ldconfig only issued a warning if ld.so.conf does not exist.
9225
9226 2012-05-08  David S. Miller  <davem@davemloft.net>
9227
9228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9229         movxtod instead of popping the value on the stack.
9230
9231         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9232
9233 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9234
9235         * config.h.in: Add HAVE_ARM_PCS_VFP.
9236
9237 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9238
9239         [BZ #13979]
9240         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9241         checking but the checks are disabled for any reason.
9242
9243 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9244
9245         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9246         and ELF64_R_TYPE with ELFW(R_TYPE).
9247
9248 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9249
9250         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9251         (ulimit): Likewise.
9252
9253         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9254         (settimeofday): Likewise.
9255
9256 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9257
9258         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9259         a struct th_u2 inside the union, and move tu_block/tu_code into
9260         a new th_u3 union of tu_block/tu_code inside of that.  Move
9261         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9262         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9263         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9264         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9265         (th_stuff): Change to th_u1.tu_stuff.
9266         (th_data): Define.
9267         (th_msg): Change to th_u1.th_u2.tu_data.
9268
9269 2012-05-07  David S. Miller  <davem@davemloft.net>
9270
9271         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9272
9273         [BZ #14074]
9274         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9275         (SETUP_PIC_REG): Use it.
9276         (SETUP_PIC_REG_LEAF): Use it.
9277
9278 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9279
9280         [BZ #13885]
9281         [BZ #13923]
9282         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9283         USE_AS_EXPM1L.
9284         (EXPL_FINITE): Likewise.
9285         (FLDLOG): Likewise.
9286         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9287         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9288         e_expl.S.
9289         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9290         USE_AS_EXPM1L.
9291         (EXPL_FINITE): Likewise.
9292         (FLDLOG): Likewise.
9293         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9294         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9295         e_expl.S.
9296         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9297         test of -max_value argument for long double.
9298         * sysdeps/i386/fpu/libm-test-ulps: Update.
9299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9300
9301 2012-05-06  David S. Miller  <davem@davemloft.net>
9302
9303         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9304         quad soft-float symbols whose references which are compiler
9305         generated.
9306         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9307
9308 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9309
9310         [BZ #13884]
9311         [BZ #13914]
9312         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9313         USE_AS_EXP10L.
9314         (EXPL_FINITE): Likewise.
9315         (FLDLOG): Likewise.
9316         (c0): Likewise.
9317         (c1): Likewise.
9318         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9319         Adjust comments for base varying.
9320         (__expl_finite): Change alias to EXPL_FINITE.
9321         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9322         e_expl.S.
9323         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9324         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9325         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9326         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9327         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9328         USE_AS_EXP10L.
9329         (EXPL_FINITE): Likewise.
9330         (FLDLOG): Likewise.
9331         (c0): Likewise.
9332         (c1): Likewise.
9333         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9334         Adjust comments for base varying.
9335         (__expl_finite): Change alias to EXPL_FINITE.
9336         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9337         tests for bugs.
9338         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9339
9340         [BZ #14064]
9341         * math/libm-test.inc (check_float_internal): Correct ulp
9342         calculation for subnormal expected results.
9343
9344 2012-05-06  Andreas Jaeger  <aj@suse.de>
9345
9346         * Makeconfig (+math-flags): New, set to -frounding-math.
9347         (+cflags): Add +math-flags so that all of glibc gets compiled with
9348         it.
9349
9350         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9351
9352 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9353
9354         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9355         Disable one test.
9356
9357         [BZ #13787]
9358         [BZ #13922]
9359         [BZ #14036]
9360         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9361         (__ieee754_expl): Allow for and saturate large arguments.
9362         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9363         (u_threshold): Likewise.
9364         (__exp): Call __ieee754_exp before checking for overflow and
9365         underflow.
9366         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9367         (u_threshold): Likewise.
9368         (__expf): Call __ieee754_expf before checking for overflow and
9369         underflow.
9370         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9371         (u_threshold): Likewise.
9372         (__expl): Call __ieee754_expl before checking for overflow and
9373         underflow.
9374         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9375         (__ieee754_expl): Allow for and saturate large arguments.
9376         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9377         missing overflow exception on overflow.
9378         (expm1_test): Do not allow missing overflow exception on overflow.
9379
9380         * sysdeps/i386/fpu/e_expl.c: Move to ...
9381         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9382         rather than using inline asm.
9383         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9384         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9385         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9386
9387         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9388         (nice): Likewise.
9389         (poll): Likewise.
9390         (signal): Likewise.
9391         (time): Likewise.
9392         (times): Likewise.
9393
9394 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9395
9396         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9397         sysdeps/unix/common/syscalls.list.
9398         (fchmod): Likewise.
9399         (fchown): Likewise.
9400         (ftruncate): Likewise.
9401         (getrusage): Likewise.
9402         (gettimeofday): Likewise.
9403         (setpgid): Likewise.
9404         (setregid): Likewise.
9405         (setreuid): Likewise.
9406         (sigaction): Likewise.
9407         (truncate): Likewise.
9408         (vhangup): Likewise.
9409         * sysdeps/unix/common/syscalls.list: Remove file.
9410         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9411         * sysdeps/unix/sysv/linux/Implies: Likewise.
9412
9413 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9414
9415         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9416         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9417         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9418         Moved to ...
9419         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9420         Here.
9421         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9422         to ...
9423         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9424         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9425         to ...
9426         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9427         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9428         to ...
9429         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9430         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9431         to ...
9432         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9433         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9434         to ...
9435         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9436         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9437         to ...
9438         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9439         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9440         to ...
9441         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9442         Here.
9443         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9444         to ...
9445         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9446         Here.
9447         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9448         to ...
9449         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9450         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9451         Moved to ...
9452         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9453         Here.
9454         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9455         to ...
9456         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9457
9458 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9459
9460         * sysdeps/unix/common/bits/dirent.h: Remove file.
9461         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9462
9463         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9464         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9465         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9466         * sysdeps/unix/bsd/isatty.c: Likewise.
9467         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9468         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9469         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9470
9471 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9472
9473         [BZ #13563]
9474         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9475         long double comparison inaccuracies.
9476         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9477         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9478
9479 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9480
9481         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9482         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9483
9484 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9485
9486         [BZ #14049]
9487         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9488         nonzero digits before rounding a hex value.
9489         * stdlib/tst-strtod.c (tests): Add another test.
9490
9491 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9492
9493         * sysdeps/s390/fpu/libm-test-ulps: Update.
9494
9495 2012-05-03  Andreas Jaeger  <aj@suse.de>
9496
9497         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9498         does not get optimized out.
9499         (malloc_opt_barrier): New.
9500
9501 2012-05-03  Andreas Jaeger  <aj@suse.de>
9502             Roland McGrath  <roland@hack.frob.com>
9503
9504         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9505         intermediate file deletion.
9506         (generated): Add .symlist files.
9507
9508 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9509
9510         [BZ #13775]
9511         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9512         Redirect under this condition.
9513         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9514         [__USE_GNU] (__dprintf_chk): Not under this condition.
9515         [__USE_GNU] (__vdprintf_chk): Likewise.
9516         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9517         under this condition.
9518         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9519         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9520         [__USE_XOPEN2K8] (vdprintf): Likewise.
9521         [__USE_GNU] (__dprintf_chk): Not under this condition.
9522         [__USE_GNU] (__vdprintf_chk): Likewise.
9523         [__USE_GNU] (dprintf): Likewise.
9524         [__USE_GNU] (vdprintf): Likewise.
9525
9526 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9527
9528         * elf/Makefile (common-generated): Set this instead of generated for
9529         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9530         $(all-built-dso)-derived lists.
9531
9532 2012-05-03  Andreas Jaeger  <aj@suse.de>
9533
9534         * sysdeps/i386/fpu/libm-test-ulps: Update.
9535
9536         * FAQ: Removed.
9537         * FAQ.in: Likewise.
9538         * scripts/gen-FAQ.pl: Likewise.
9539         * manual/install.texi (Installation): Point to online location of
9540         FAQ.
9541         * Makefile (files-for-dist): Remove FAQ.
9542         (FAQ): Remove.
9543
9544 2012-05-02  Allan McRae  <allan@archlinux.org>
9545
9546         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9547         (LDFLAGS-reldepmod5.so): Likewise.
9548         (LDFLAGS-reldep6mod1.so): Likewise.
9549         (LDFLAGS-reldep6mod4.so): Likewise.
9550         (LDFLAGS-reldep8mod3.so): Likewise.
9551         (LDFLAGS-unload4mod1.so): Likewise.
9552         (LDFLAGS-unload4mod2.so): Likewise.
9553         (LDFLAGS-tst-initorder): Likewise.
9554         (LDFLAGS-tst-initordera2.so): Likewise.
9555         (LDFLAGS-tst-initordera3.so): Likewise.
9556         (LDFLAGS-tst-initordera4.so): Likewise.
9557         (LDFLAGS-tst-initorderb2.so): Likewise.
9558         (LDFLAGS-noload): Likewise.
9559         (LDFLAGS-next): Likewise.
9560         (LDFLAGS-order2mod1.so): Likewise.
9561         (LDFLAGS-order2mod2.so): Likewise.
9562         (LDFLAGS-tst-initorder2): Likewise.
9563         (LDFLAGS-tst-initorder2a.so): Likewise.
9564         (LDFLAGS-tst-initorder2b.so): Likewise.
9565         (LDFLAGS-tst-initorder2c.so): Likewise.
9566         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9567
9568 2012-05-02  David S. Miller  <davem@davemloft.net>
9569
9570         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9571
9572 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9573
9574         [BZ #14055]
9575         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9576
9577 2012-05-02  Andreas Jaeger  <aj@suse.de>
9578
9579         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9580         since we manipulate rounding mode.
9581         (CPPFLAGS-test-idouble.c): Likewise.
9582         (CPPFLAGS-test-ifloat.c): Likewise.
9583         (CFLAGS-test-ldouble.c): Likewise.
9584         (CFLAGS-test-double.c): Likewise.
9585         (CFLAGS-test-float.c): Likewise.
9586         (CFLAGS-test-misc.c): Likewise.
9587         (CFLAGS-test-test-fenv.c): Likewise.
9588
9589 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9590
9591         [BZ #2550]
9592         [BZ #2570]
9593         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9594         comparisons to determine direction to adjust input.
9595
9596 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9597
9598         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9599         output to the target.
9600
9601         * scripts/localplt.awk: New file.
9602         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9603         (check-localplt-CFLAGS): Variable removed.
9604         ($(all-built-dso:=.jmprel)): New static pattern rule.
9605         (generated): Add those targets.
9606         (localplt-built-dso): New variable.
9607         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9608
9609         * elf/check-localplt.c: File removed.
9610
9611         * scripts/check-execstack.awk: New file.
9612         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9613         (check-execstack-CFLAGS): Variable removed.
9614         ($(objpfx)check-execstack.h): Target removed.
9615         ($(objpfx)execstack-default): New target.
9616         (generated): Add that instead of check-execstack.h.
9617         ($(all-built-dso:=.phdr)): New static pattern rule.
9618         (generated): Add those targets.
9619         * elf/check-execstack.c: File removed.
9620
9621         * scripts/check-textrel.awk: New file.
9622         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9623         (check-textrel-CFLAGS): Variable removed.
9624         (all-built-dso): Use := to define.o
9625         ($(all-built-dso:=.dyn)): New static pattern rule.
9626         (generated): Add those targets.
9627         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9628         * config.make.in (READELF): New substituted variable.
9629         * elf/check-textrel.c: File removed.
9630
9631 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9632
9633         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9634         allow.
9635         * conform/data/ctype.h-data [C99-based standards] (isblank):
9636         Expect function.
9637         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9638         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9639         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9640         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9641         Specify type.  Require positive value.
9642         (EILSEQ): Likewise.
9643         (ERANGE): Likewise.
9644         [ISO || POSIX] (EILSEQ): Do not expect.
9645         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9646         Specify type.  Require positive value.
9647         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9648         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9649         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9650         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9651         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9652         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9653         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9654         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9655         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9656         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9657         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9658         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9659         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9660         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9661         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9662         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9663         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9664         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9665         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9666         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9667         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9668         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9669         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9670         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9671         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9672         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9673         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9674         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9675         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9676         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9677         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9678         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9679         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9680         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9681         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9682         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9683         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9684         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9685         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9686         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9687         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9688         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9689         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9690         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9691         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9692         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9693         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9694         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9695         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9696         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9697         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9698         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9699         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9700         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9701         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9702         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9703         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9704         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9705         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9706         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9707         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9708         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9709         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9710         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9711         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9712         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9713         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9714         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9715         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9716         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9717         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9718         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9719         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9720         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9721         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9722         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9723         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9724         Require >= 2.
9725         (FLT_ROUNDS): Expect as macro, not constant.
9726         (FLT_MANT_DIG): Use macro-int-constant.
9727         (DBL_MANT_DIG): Likewise.
9728         (LDBL_MANT_DIG): Likewise.
9729         (FLT_DIG): Likewise.
9730         (DBL_DIG): Likewise.
9731         (LDBL_DIG): Likewise.
9732         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9733         (DBL_MIN_EXP): Likewise.
9734         (LDBL_MIN_EXP): Likewise.
9735         (FLT_MAX_EXP): Use macro-int-constant.
9736         (DBL_MAX_EXP): Likewise.
9737         (LDBL_MAX_EXP): Likewise.
9738         (FLT_MAX_10_EXP): Likewise.
9739         (DBL_MAX_10_EXP): Likewise.
9740         (LDBL_MAX_10_EXP): Likewise.
9741         (FLT_MAX): Use macro-constant.
9742         (DBL_MAX): Likewise.
9743         (LDBL_MAX): Likewise.
9744         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9745         (DBL_EPSILON): Likewise.
9746         (LDBL_EPSILON): Likewise.
9747         (FLT_MIN): Likewise.
9748         (DBL_MIN): Likewise.
9749         (LDBL_MIN): Likewise.
9750         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9751         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9752         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9753         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9754         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9755         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9756         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9757         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9758         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9759         [ISO11] (FLT_TRUE_MIN): Likewise.
9760         [ISO11] (LDBL_TRUE_MIN): Likewise.
9761         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9762         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9763         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9764         (SCHAR_MAX): Likewise.
9765         (UCHAR_MAX): Likewise.
9766         (CHAR_MIN): Likewise.
9767         (CHAR_MAX): Likewise.
9768         (MB_LEN_MAX): Use macro-int-constant.
9769         (SHRT_MIN): Use macro-int-constant.  Specify type.
9770         (SHRT_MAX): Likewise.
9771         (USHRT_MAX): Likewise.
9772         (INT_MAX): Likewise.
9773         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9774         bound negative.
9775         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9776         bound with "U".
9777         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9778         bound with "L".
9779         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9780         bound negative.  Suffix upper bound with "L".
9781         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9782         bound with "UL".
9783         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9784         Specify type.
9785         [C99-based standards] (LLONG_MAX): Likewise.
9786         [C99-based standards] (ULLONG_MAX): Likewise.
9787         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9788         == 0.
9789         [ISO11] (max_align_t): Require type.
9790         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9791
9792         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9793         from $CFLAGS, without defining away __attribute__ calls.
9794         (checknamespace): Use $CFLAGS_namespace.
9795
9796         * conform/conformtest.pl (@keywords): Only include C99 keywords
9797         for standards based on C99 or C11.
9798
9799         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9800         Disable tests.
9801         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9802         UNIX98]: Likewise.
9803
9804         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9805         usability of symbols in #if.
9806
9807         * conform/conformtest.pl: If macro or constant types start
9808         "promoted:", expect the symbol to be of the following type
9809         promoted by the integer promotions.
9810
9811         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9812         in one place.  Also handle "macro-constant".
9813
9814         * conform/conformtest.pl: Only accept expected macro values with
9815         "==".  Parse all "macro" lines in one place.
9816         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9817
9818         * conform/conformtest.pl: Handle braced types on "constant" lines
9819         instead of handling "typed-constant".
9820         * conform/data/signal.h-data: Use "constant" instead of
9821         "typed-constant".
9822
9823         * conform/conformtest.pl: Handle "optional-" at start of lines in
9824         one place rather than duplicating several cases.  Handle each
9825         format of "macro" line with initial "optional-".
9826
9827         * conform/conformtest.pl: Only accept expected constant or
9828         optional-constant values with "==".  Parse all "constant" lines in
9829         one place.  Parse all "optional-constant" lines in one place.
9830         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9831         * conform/data/fmtmsg.h-data: Likewise.
9832         * conform/data/netinet/in.h-data: Likewise.
9833         * conform/data/tar.h-data: Likewise.
9834         * conform/data/limits.h-data: Use "==" form on "constant" and
9835         "optional-constant" lines.
9836
9837         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9838         Use -std=c99 for XOPEN2K.
9839         (@knownproblems): Remove.
9840         (newtoken): Don't check %isknown.
9841
9842         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9843         Do not expect macro.
9844         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9845         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9846         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9847         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9848         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9849         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9850         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9851         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9852         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9853         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9854         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9855         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9856         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9857         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9858         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9859         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9860         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9861         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9862         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9863         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9864         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9865         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9866         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9867         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9868         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9869         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9870         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9871         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9872         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9873         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9874         [XPG3] (acosh): Likewise.
9875         [XPG3] (asinh): Likewise.
9876         [XPG3] (atanh): Likewise.
9877         [XPG3] (cbrt): Likewise.
9878         [XPG3] (expm1): Likewise.
9879         [XPG3] (ilogb): Likewise.
9880         [XPG3] (log1p): Likewise.
9881         [XPG3] (logb): Likewise.
9882         [XPG3] (nextafter): Likewise.
9883         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9884         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9885         [XPG3] (remainder): Likewise.
9886         [XPG3] (rint): Likewise.
9887         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9888         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9889         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9890         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9891         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9892         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9893         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9894         [UNIX98 || XOPEN2K] (scalb): Expect.
9895         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9896         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9897         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9898         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9899         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9900         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9901         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9902         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9903         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9904         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9914         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9915         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9916         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9917         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9918         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9919         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9920         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9921         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9922         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9925         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9926         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9934         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9935         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9936         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9937         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9938         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9939         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9940         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9941         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9942         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9943         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9944         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9945         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9946         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9947         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9948         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9949         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9950         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9951         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9952         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9953         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9954         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9955         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9956         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9957         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9958         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9959         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
9960         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
9961         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
9962         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
9963         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
9964         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
9965         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
9966         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
9967         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
9968         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
9969         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
9970         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
9971         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
9972         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
9973         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
9974         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
9975         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
9976         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
9977         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
9978         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
9979         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
9980         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
9981         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
9982         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
9983         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
9984         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
9985         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
9986         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
9987         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
9988         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
9989         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
9990         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
9991         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
9992         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
9993         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
9994         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
9995         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
9996         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
9997         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
9998         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
9999         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
10000         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
10001         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
10002         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
10003         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
10004         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
10005         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
10006         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
10007         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
10008         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
10009         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
10010         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
10011         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
10012         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
10013         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
10014         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
10015         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
10016         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
10017         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
10018         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
10019         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
10020         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
10021         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
10022         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
10023         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
10024         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
10025         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
10026         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
10027         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
10028         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
10029         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
10030         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
10031         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
10032
10033         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
10034         _XOPEN_SOURCE_EXTENDED for XPG4.
10035
10036         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10037
10038         * Makeconfig (localtime): Remove variable.
10039         (inst_localtime-file): Likewise.
10040
10041 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10042
10043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10044         Update.
10045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10046         Update.
10047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10048         Update.
10049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10050         Update.
10051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10052         Update.
10053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10054         Update.
10055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10056         Update.
10057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10058         Update.
10059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10060         Update.
10061
10062 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10063
10064         [BZ #2550]
10065         [BZ #2570]
10066         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10067         comparisons to determine direction to adjust input.
10068         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10069         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10070         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10071         Likewise.
10072         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10073         Likewise.
10074         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10075         Likewise.
10076         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10077         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10078         Likewise.
10079         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10080         Likewise.
10081         * math/libm-test.inc (nexttoward_test): Add more tests.
10082
10083 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10084
10085         [BZ #14040]
10086         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10087         in version GLIBC_2.1, not GLIBC_2.0.
10088         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10089         Likewise.
10090
10091 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10092
10093         [BZ #13942]
10094         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10095         (1 - x) * (1 + x).
10096         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10097         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10098         * math/libm-test.inc (acos_test): Add more tests.
10099         (asin_test): Likewise.
10100         * sysdeps/i386/fpu/libm-test-ulps: Update.
10101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10102
10103         [BZ #14034]
10104         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10105         of square root.
10106         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10107         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10108         * math/libm-test.inc (acos_test_tonearest): New function.
10109         (acos_test_towardzero): Likewise.
10110         (acos_test_downward): Likewise.
10111         (acos_test_upward): Likewise.
10112         (asin_test_tonearest): Likewise.
10113         (asin_test_towardzero): Likewise.
10114         (asin_test_downward): Likewise.
10115         (asin_test_upward): Likewise.
10116         (main): Call the new functions.
10117         * sysdeps/i386/fpu/libm-test-ulps: Update.
10118         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10119
10120         [BZ #13884]
10121         [BZ #13924]
10122         * math/e_exp10.c: Include <float.h>.
10123         (__ieee754_exp10): Handle underflow here rather than multiplying
10124         large negative argument by M_LN10.
10125         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10126         of __ieee754_expf.
10127         * math/e_exp10l.c: Include <float.h>.
10128         (__ieee754_exp10l): Handle underflow here rather than multiplying
10129         large negative argument by M_LN10l.
10130         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10131         spurious overflow exception on underflow.
10132
10133 2012-04-29  Marek Polacek  <polacek@redhat.com>
10134
10135         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10136         (__fortify_function): New macro.
10137         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10138         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10139         __extern_always_inline.
10140         * libio/bits/stdio2.h: Likewise.
10141         * libio/bits/stdio.h: Likewise.
10142         * string/string.h: Likewise.
10143         * string/bits/string3.h: Likewise.
10144         * include/stdio.h: Likewise.
10145         * stdlib/bits/stdlib.h: Likewise.
10146         * stdlib/stdlib.h: Likewise.
10147         * rt/bits/mqueue2.h: Likewise.
10148         * rt/mqueue.h: Likewise.
10149         * posix/bits/unistd.h: Likewise.
10150         * posix/unistd.h: Likewise.
10151         * io/bits/poll2.h: Likewise.
10152         * io/bits/fcntl2.h: Likewise.
10153         * io/fcntl.h: Likewise.
10154         * io/sys/poll.h: Likewise.
10155         * misc/bits/syslog.h: Likewise.
10156         * misc/bits/syslog-ldbl.h: Likewise.
10157         * misc/sys/syslog.h: Likewise.
10158         * socket/bits/socket2.h: Likewise.
10159         * socket/sys/socket.h: Likewise.
10160         * debug/tst-chk1.c: Likewise.
10161         * wcsmbs/bits/wchar2.h: Likewise.
10162         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10163         * wcsmbs/wchar.h: Likewise.
10164
10165 2012-04-29  Andreas Jaeger  <aj@suse.de>
10166
10167         * Makerules (tests): Remove enable-check-abi protection.
10168         (check-abi-warn): Remove.
10169         (check-abi-%): Remove check-abi-warn usage.
10170
10171         * configure.in: Remove check-abi configure option.
10172         * configure: Regenerated.
10173         * config.make.in (enable-check-abi): Remove.
10174
10175 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10176
10177         [BZ #14033]
10178         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10179         double functions to double *_finite functions.
10180
10181         [BZ #13941]
10182         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10183         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10184         LDBL_MIN_EXP.
10185         * stdio-common/Makefile (tests): Add tst-sprintf3.
10186         * stdio-common/tst-sprintf3.c: New file.
10187
10188         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10189         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10190
10191 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10192
10193         * conform/conformtest.pl: Remove duplicate typed-constant
10194         handling.
10195
10196 2012-04-28  David S. Miller  <davem@davemloft.net>
10197
10198         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10199         (check-abi-%): Remove AWK script prerequisite and explicit
10200         abilist directory.
10201         (check-abi): Rewrite to just diff the symlist with the abilist.
10202         (config-tls, config-abi-config): Delete, no longer used.
10203         (update-abi-%): Remove AWK script and explicit abilist directory.
10204         (update-abi): Rewrite to simply compare and conditionally copy the
10205         symlist and the sysdep abilist file.  Remove update-abi-config
10206         checks.
10207         * abilist/ld.abilist: Remove.
10208         * abilist/libBrokenLocale.abilist: Remove.
10209         * abilist/libanl.abilist: Remove.
10210         * abilist/libcrypt.abilist: Remove.
10211         * abilist/libdl.abilist: Remove.
10212         * abilist/librt.abilist: Remove.
10213         * abilist/libthread_db.abilist: Remove.
10214         * abilist/libutil.abilist: Remove.
10215         * scripts/extract-abilist.awk: Remove.
10216         * scripts/merge-abilist.awk: Remove.
10217         * sysdeps/generic/libcidn.abilist: New file.
10218         * sysdeps/generic/libnss_compat.abilist: New file.
10219         * sysdeps/generic/libnss_db.abilist: New file.
10220         * sysdeps/generic/libnss_dns.abilist: New file.
10221         * sysdeps/generic/libnss_files.abilist: New file.
10222         * sysdeps/generic/libnss_hesiod.abilist: New file.
10223         * sysdeps/generic/libnss_nis.abilist: New file.
10224         * sysdeps/generic/libnss_nisplus.abilist: New file.
10225         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10226         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10227         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10228         file.
10229         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10230         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10231         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10232         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10233         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10234         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10235         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10236         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10237         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10238         file.
10239         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10240         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10241         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10242         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10243         file.
10244         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10245         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10246         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10247         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10248         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10249         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10250         file.
10251         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10252         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10253         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10254         file.
10255         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10256         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10257         New file.
10258         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10259         New file.
10260         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10261         New file.
10262         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10263         New file.
10264         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10265         New file.
10266         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10267         New file.
10268         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10269         New file.
10270         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10271         New file.
10272         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10273         New file.
10274         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10275         New file.
10276         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10277         New file.
10278         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10279         New file.
10280         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10281         New file.
10282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10283         file.
10284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10285         New file.
10286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10287         New file.
10288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10289         file.
10290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10291         New file.
10292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10293         New file.
10294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10295         file.
10296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10297         New file.
10298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10299         New file.
10300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10301         New file.
10302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10303         New file.
10304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10305         New file.
10306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10307         New file.
10308         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10310         file.
10311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10312         New file.
10313         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10314         file.
10315         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10316         file.
10317         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10318         file.
10319         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10320         file.
10321         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10322         file.
10323         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10324         New file.
10325         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10326         file.
10327         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10328         file.
10329         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10330         New file.
10331         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10332         file.
10333         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10334         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10335         file.
10336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10337         New file.
10338         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10339         file.
10340         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10341         file.
10342         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10343         file.
10344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10345         file.
10346         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10347         file.
10348         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10349         New file.
10350         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10351         file.
10352         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10353         file.
10354         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10355         New file.
10356         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10357         file.
10358         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10359         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10360         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10361         file.
10362         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10363         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10364         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10365         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10366         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10367         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10368         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10369         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10370         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10371         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10372         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10373         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10374         file.
10375         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10376         New file.
10377         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10378         file.
10379         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10380         file.
10381         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10382         file.
10383         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10384         file.
10385         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10386         file.
10387         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10388         New file.
10389         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10390         New file.
10391         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10392         file.
10393         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10394         New file.
10395         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10396         file.
10397         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10398         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10399         file.
10400         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10401         New file.
10402         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10403         file.
10404         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10405         file.
10406         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10407         file.
10408         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10409         file.
10410         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10411         file.
10412         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10413         New file.
10414         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10415         New file.
10416         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10417         file.
10418         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10419         New file.
10420         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10421         file.
10422
10423 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10424
10425         * conform/conformtest.pl: Fix typo in handling typed-constant from
10426         allow-header.
10427
10428 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10429
10430         * README: Cut down references to pre-2.6 Linux kernels and
10431         Linuxthreads.  Update lists of configurations in libc and ports
10432         and sort alphabetically.  Say "or newer" with Linux kernel version
10433         requirements.
10434
10435         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10436
10437 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10438
10439         [BZ #887]
10440         * math/libm-test.inc (logb_test_downward): New test to expose
10441         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10442         rounding mode.
10443
10444 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10445
10446         [BZ #14027]
10447         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10448         to be done.
10449         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10450         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10451
10452 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10453
10454         * sysdeps/unix/i386/brk.S: Remove file.
10455         * sysdeps/unix/i386/dl-brk.S: Likewise.
10456         * sysdeps/unix/i386/pipe.S: Likewise.
10457         * sysdeps/unix/i386/sigreturn.S: Likewise.
10458         * sysdeps/unix/i386/syscall.S: Likewise.
10459         * sysdeps/unix/i386/vfork.S: Likewise.
10460         * sysdeps/unix/i386/wait.S: Likewise.
10461
10462         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10463         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10464
10465         * configure.in (arm*-none*): Do not allow without
10466         --enable-hacker-mode.
10467         (netbsd*): Remove case setting base_os.
10468         (386bsd*): Likewise.
10469         (freebsd*): Likewise.
10470         (bsdi*): Likewise.
10471         (osf*): Likewise.
10472         (sunos*): Likewise.
10473         (ultrix*): Likewise.
10474         (newsos*): Likewise.
10475         (dynix*): Likewise.
10476         (*bsd*): Likewise.
10477         (sysv*): Likewise.
10478         (isc*): Likewise.
10479         (esix*): Likewise.
10480         (sco*): Likewise.
10481         (minix*): Likewise.
10482         (irix4*): Likewise.
10483         (irix6*): Likewise.
10484         (solaris[2-9]*): Likewise.
10485         (none): Likewise.
10486         * configure: Regenerated.
10487
10488 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10489
10490         [BZ #11521]
10491         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10492         overflow or cancellation in calculating denominator.
10493         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10494         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10495         down expression to avoid unexpected rounding in newer GCCs.
10496         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10497
10498 2012-04-26  David S. Miller  <davem@davemloft.net>
10499
10500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10501         long-double compat symbols.
10502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10504         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10506         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10507         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10508         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10515
10516 2012-04-25  David S. Miller  <davem@davemloft.net>
10517
10518         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10519         HWCAP_* values only after the memory barriers have been defined.
10520         (atomic_full_barrier): Define.
10521         (atomic_read_barrier): Define.
10522         (atomic_write_barrier): Define.
10523
10524 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10525
10526         * shlib-versions: Add libgcc_s version information.
10527         * sysdeps/generic/libgcc_s.h: Remove.
10528         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10529         libgcc_s.h.
10530         * sysdeps/gnu/unwind-resume.c: Likewise.
10531         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10532
10533 2012-04-25  David S. Miller  <davem@davemloft.net>
10534
10535         * sysdeps/unix/sparc/brk.S: Delete.
10536         * sysdeps/unix/sparc/dl-brk.S: Delete.
10537         * sysdeps/unix/sparc/pipe.S: Delete.
10538         * sysdeps/unix/sparc/sysdep.S: Delete.
10539         * sysdeps/unix/sparc/sysdep.h: Delete.
10540         * sysdeps/unix/sparc/vfork.S: Delete.
10541         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10542         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10543         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10544         ret_ERRVAL, r0, r1, MOVE): Define.
10545         (JUMPTARGET): Remove.
10546         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10547         sysdeps/unix/sparc/sysdep.h
10548         (ENTRY, END): Remove.
10549         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10550
10551 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10552
10553         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10554         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10555         -DIS_IN_build.
10556
10557         * timezone/README: Update upstream location and email address for
10558         tzcode and tzdata.
10559         * timezone/zdump.c: Update from tzcode 2012b.
10560         * timezone/zic.c: Likewise.
10561
10562         * configure.in (libc_cv_as_needed): Remove test.
10563         * configure: Regenerated.
10564         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10565         conditional definition.
10566         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10567         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10568         * config.make.in (have-as-needed): Remove variable.
10569
10570 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10571             Paul Pluzhnikov  <ppluzhnikov@google.com>
10572
10573         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10574         strings correctly.
10575
10576 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10577
10578         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10579         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10580         * sysdeps/sh/strlen.S: Likewise.
10581
10582 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10583
10584         * sysdeps/unix/fork.S: Remove file.
10585         * sysdeps/unix/i386/fork.S: Likewise.
10586         * sysdeps/unix/sparc/fork.S: Likewise.
10587
10588         * sysdeps/unix/system.c: Remove file.
10589         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10590
10591         * sysdeps/unix/getegid.S: Remove file.
10592         * sysdeps/unix/geteuid.S: Likewise.
10593
10594 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10595
10596         * scripts/check-localplt.awk: New file.
10597         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10598         of diff.
10599         * scripts/data/localplt-generic.data: Add a comment.
10600
10601         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10602         NODE when __dir_mkfile failed.
10603         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10604         Reported by Ludovic Courtès <ludo@gnu.org>.
10605
10606 2012-04-24  Andreas Jaeger  <aj@suse.de>
10607
10608         * Makerules (common-clean): Also remove gen-as-const-headers
10609         files.
10610
10611 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10612
10613         * Makerules (native-compile): Do not change working directory for
10614         build.  Use $(OUTPUT_OPTION) in command.
10615         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10616
10617 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10618
10619         [BZ #13886]
10620         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10621         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10622         * math/libm-test.inc (floor_test): Add more tests.
10623         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10624
10625 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10626
10627         * sysdeps/unix/getdents.c: Remove file.
10628         * sysdeps/unix/sysv/getdents.c: Likewise.
10629         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10630
10631         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10632         sysdeps/unix/mman/syscalls.list.
10633         (mmap): Likewise.
10634         (mprotect): Likewise.
10635         (msync): Likewise.
10636         (munmap): Likewise.
10637         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10638         * sysdeps/unix/mman/syscalls.list: Remove.
10639         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10640
10641         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10642         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10643         * configure: Regenerated.
10644         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10645         $(libgcc_s_suffix).
10646         * config.make.in (libgcc_s_suffix): Remove variable.
10647
10648 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10649
10650         * sysdeps/unix/sysv/gethostname.c: Move to ...
10651         * sysdeps/posix/gethostname.c: ... here.
10652
10653         * sysdeps/unix/execve.S: Remove file.
10654
10655         * sysdeps/unix/_exit.S: Remove file.
10656
10657 2012-04-23  Andreas Jaeger  <aj@suse.de>
10658
10659         [BZ #13739]
10660         * manual/Makefile: Remove make dist support, there's no
10661         need for a stand-alone documentation tar ball.
10662         (TEXI2DVI): Define always, it's not in Makeconfig.
10663         (dist): Removed.
10664         (tar-it): Removed.
10665         (edition): Removed.
10666         (glibc-doc-$(edition).tar): Removed
10667         (%.Z): Removed.
10668         (%.gz): Removed.
10669         (%.uu): Removed.
10670         (ETAGS): Remove, it's in Makeconfig.
10671         (move-if-change): Remove, it's in Makeconfig.
10672
10673 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10674
10675         [BZ #13970]
10676         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10677         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10678         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10679         (strtod_l, strtof_l, strtold_l): Remove __wur.
10680         It is not necessarily an error to ignore strtol's return value.
10681         One can reliably look at the stored endptr to decide whether
10682         the number had valid syntax.
10683
10684 2012-04-21  Andreas Jaeger  <aj@suse.de>
10685
10686         [BZ #13739]
10687         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10688
10689 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10690
10691         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10692         * sysdeps/unix/sysv/Versions: Remove file.
10693
10694 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10695
10696         [BZ #13927]
10697         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10698
10699 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10700
10701         [BZ #7064]
10702         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10703         version from __vm86.
10704
10705 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10706
10707         * sysdeps/unix/common/lxstat.c: Remove file.
10708         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10709
10710         * sysdeps/unix/sysv/Makefile: Remove file.
10711
10712         * sysdeps/unix/sysv/direct.h: Remove file.
10713
10714         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10715         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10716         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10717         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10718         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10719         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10720         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10721
10722         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10723
10724         * sysdeps/unix/xmknod.c: Remove file.
10725         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10726
10727         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10728
10729         * sysdeps/unix/sysv/i386/time.S: Remove file.
10730
10731         * sysdeps/unix/fxstat.c: Remove file.
10732         * sysdeps/unix/xstat.c: Likewise.
10733         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10734
10735         * sysdeps/unix/sysv/sigaction.c: Remove file.
10736
10737         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10738         (sysdep_headers): Remove variable.
10739         [termio.h not in sysdep_headers] (generated): Likewise.
10740         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10741         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10742         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10743         * sysdeps/unix/sysv/tcflow.c: Likewise.
10744         * sysdeps/unix/sysv/tcflush.c: Likewise.
10745         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10746         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10747         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10748         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10749         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10750
10751         * sysdeps/unix/siglist.c: Remove file.
10752
10753         * sysdeps/unix/getppid.S: Remove file.
10754
10755         * sysdeps/unix/mkdir.c: Remove file.
10756         * sysdeps/unix/rmdir.c: Likewise.
10757
10758 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10759
10760         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10761         ERR_MAX value.
10762         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10763         errlist-compat value.
10764
10765 2012-04-18  David S. Miller  <davem@davemloft.net>
10766
10767         * sysdeps/generic/memcopy.h (reg_char): Delete.
10768         * debug/strcat_chk.c: Use char, not reg_char.
10769         * debug/strcpy_chk.c: Likewise.
10770         * debug/strncat_chk.c: Likewise.
10771         * debug/strncpy_chk.c: Likewise.
10772         * string/memchr.c: Likewise.
10773         * string/memrchr.c: Likewise.
10774         * string/rawmemchr.c: Likewise.
10775         * string/strcat.c: Likewise.
10776         * string/strchr.c: Likewise.
10777         * string/strchrnul.c: Likewise.
10778         * string/strcmp.c: Likewise.
10779         * string/strcpy.c: Likewise.
10780         * string/strncat.c: Likewise.
10781         * string/strncmp.c: Likewise.
10782         * string/strncpy.c: Likewise.
10783
10784 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10785
10786         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10787         __builtin_memcopy is called when src and dest ranges are known to not
10788         overlap.
10789
10790 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10791
10792         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10793         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10794         fwd_align_merge macro call.
10795         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10796         bwd_align_merge macro call.
10797         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10798
10799 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10800
10801         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10802         bwd_align_merge macros.
10803         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10804         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10805         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10806
10807 2012-04-18  David S. Miller  <davem@davemloft.net>
10808
10809         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10810
10811 2012-04-18  Andreas Jaeger  <aj@suse.de>
10812
10813         [BZ# 6794]
10814         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10815         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10816         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10817
10818         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10819         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10820         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10821
10822         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10823         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10824         Adjust for changed ldbl-128 files.
10825
10826         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10827         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10828         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10829
10830 2012-04-17  David S. Miller  <davem@davemloft.net>
10831
10832         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10833
10834 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10835
10836         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10837         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10838         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10839         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10840         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10841         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10842
10843 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10844
10845         [BZ #6794]
10846         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10847         * math/libm-test.inc: Add ilogb errno and exception tests.
10848         * math/w_ilogb.c: New file: ilogb wrapper.
10849         * math/w_ilogbf.c: New file: ilogbf wrapper.
10850         * math/w_ilogbl.c: New file: ilogbl wrapper.
10851         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10852         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10853         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10854         exception being thrown with 0.0 as argument.
10855         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10856         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10857         exception being thrown with 0.0 as argument.
10858         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10859         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10860         exception being thrown with 0.0 as argument.
10861         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10862         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10863         exception being thrown with 0.0 as argument.
10864         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10865         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10866         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10867         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10868         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10869         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10870         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10871         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10872         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10873
10874 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10875
10876         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10877         with altivec.
10878
10879 2012-04-16  Marek Polacek  <polacek@redhat.com>
10880
10881         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10882
10883 2012-04-16  Marek Polacek  <polacek@redhat.com>
10884
10885         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10886         operands of fdivp instruction.
10887
10888 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10889
10890         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10891         * elf/tst-auditmod3b.c: Likewise.
10892         * elf/tst-auditmod4b.c: Likewise.
10893         * elf/tst-auditmod5b.c: Likewise.
10894         * elf/tst-auditmod6b.c: Likewise.
10895         * elf/tst-auditmod6c.c: Likewise.
10896         * elf/tst-auditmod7b.c: Likewise.
10897         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10898         * sysdeps/x86_64/preconfigure.in: Likewise.
10899         * sysdeps/x86_64/preconfigure: Regenerated.
10900
10901 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10902
10903         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10904         __ILP32__.
10905
10906 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10907
10908         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10909         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10910
10911 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10912
10913         [BZ #13973]
10914         * locale/iso-639.def: Fix gl language name. Spotted by
10915         Yaron Shahrabani.
10916
10917 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10918
10919         [BZ #2074]
10920         * libio/libio.h (__io_write_fn): Update comment.
10921
10922 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10923
10924         [BZ #2074]
10925         * stdio.texi (Hook Functions): The user provided writer function
10926         is not allowed to return -1.
10927
10928 2012-04-11  David S. Miller  <davem@davemloft.net>
10929
10930         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10931
10932 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10933
10934         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10935         Add a leading slash to rtkaio.
10936
10937 2012-04-11  Jim Meyering  <meyering@redhat.com>
10938
10939         [BZ #11959]
10940         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10941         It is not necessarily an error to ignore fwrite's return
10942         value.  One can reliably use ferror to test for errors after
10943         the fact.
10944
10945 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10946
10947         * bits/types.h (__snseconds_t): New type.
10948         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10949
10950         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10951         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10952         (__SNSECONDS_T_TYPE): Likewise.
10953         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10954         (__SNSECONDS_T_TYPE): Likewise.
10955         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10956         (__SNSECONDS_T_TYPE): Likewise.
10957
10958 2012-04-10  Andreas Jaeger  <aj@suse.de>
10959
10960         [BZ #2636]
10961         * manual/time.texi (Processor Time): Return type of times is
10962         elapsed real time since an arbitrary point in the past.
10963         (CPU Time): Move CLK_TCK from here...
10964         (Processor Time): ...to here.  Correct description.
10965         * manual/conf.texi (Constants for Sysconf): Correct description of
10966         _SC_CLK_TCK.
10967
10968 2012-04-10  David S. Miller  <davem@davemloft.net>
10969
10970         [BZ #13967]
10971         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
10972         where the is a gap between DT_REL(A) and DT_JMPREL.
10973
10974 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10975
10976         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
10977         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
10978         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
10979
10980 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10981
10982         * elf/dl-support.c (_dl_inhibit_cache): New variable.
10983         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
10984         (dl_main): Handle --inhibit-cache.
10985         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
10986         _dl_inhibit_cache.
10987         * elf/dl-load.c (_dl_map_object): Use it.
10988         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
10989
10990 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
10991
10992         [BZ #13872]
10993         * sysdeps/i386/fpu/e_powl.S (p78): New object.
10994         (__ieee754_powl): Saturate large exponents rather than testing for
10995         overflow of y*log2(x).
10996         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10997         * math/libm-test.inc (pow_test): Do not permit spurious overflow
10998         exceptions.
10999
11000         [BZ #11521]
11001         * math/s_ctan.c: Include <float.h>.
11002         (__ctan): Avoid internal overflow or cancellation in calculating
11003         denominator.
11004         * math/s_ctanf.c: Likewise.
11005         * math/s_ctanl.c: Likewise.
11006         * math/s_ctanh.c: Likewise.
11007         * math/s_ctanhf.c: Likewise.
11008         * math/s_ctanhl.c: Likewise.
11009         * math/libm-test.inc (ctan_test): Add more tests.
11010         (ctanh_test): Likewise.
11011         * sysdeps/i386/fpu/libm-test-ulps: Update.
11012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11013
11014 2012-04-09  Andreas Jaeger  <aj@suse.de>
11015
11016         [BZ #6894]
11017         * manual/filesys.texi (Directory Entries): Mention that d_namlen
11018         is an optional BSD extension.
11019
11020         [BZ #10254]
11021         * manual/stdio.texi (Opening Streams): Document additional fopen
11022         parameters.
11023
11024 2012-04-09  Roland McGrath  <roland@hack.frob.com>
11025
11026         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
11027         %eax without telling the compiler.
11028
11029 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
11030
11031         [BZ # 13963]
11032         * manual/install.texi: Use sourceware.org.
11033
11034 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11035
11036         [BZ #13873]
11037         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11038         (__ieee754_pow): Generate overflow and underflow using huge*huge
11039         and tiny*tiny rather than just returning constant infinity or zero
11040         for large exponents.
11041         * math/libm-test.inc (pow_test): Require overflow exceptions for
11042         applicable cases of large exponents.
11043
11044         [BZ #706]
11045         * sysdeps/i386/fpu/e_pow.S (p10): New object.
11046         (__ieee754_pow): Use iterative multiplication algorithm only for
11047         integer exponents with absolute value below 1024.  Check for odd
11048         integer exponents when using algorithm for real exponents.
11049         * math/libm-test.inc (pow_test): Add more tests.
11050         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11051
11052 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11053
11054         [BZ #13705]
11055         * math/libm-test.inc (exp_test): Do not allow overflow exception
11056         on underflow test.
11057
11058 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11059
11060         [BZ #13705]
11061         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11062         instead of __kernel_standard_f.
11063
11064 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11065
11066         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11067         * sysdeps/x86_64/memset_chk.S: Likewise.
11068
11069 2012-04-08  Andreas Jaeger  <aj@suse.de>
11070
11071         [BZ #10153]
11072         * manual/startup.texi (Environment Access): Describe return value
11073         for putenv and setenv.
11074
11075         [BZ #6895]
11076         * manual/filesys.texi (Directory Entries): Add description for
11077         DT_LNK.
11078
11079         [BZ #6890]
11080         * manual/filesys.texi (Directory Entries): Clarify that it's file
11081         system not operating system in the description of DT_UNKNOWN.
11082
11083         [BZ #6578]
11084         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11085
11086 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11087
11088         [BZ #6649]
11089         * manual/llio.texi (Opening and Closing Files): Add cross
11090         reference to explain mode argument.
11091
11092 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11093
11094         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11095         * sysdeps/x86_64/memset_chk.S: Likewise.
11096
11097 2012-04-07  David S. Miller  <davem@davemloft.net>
11098
11099         * elf/elf.h (R_SPARC_WDISP10): Define.
11100         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11101         R_SPARC_SIZE32.
11102         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11103         R_SPARC_SIZE64 and R_SPARC_H34.
11104
11105 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11106
11107         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11108         conditions and remove no longer applicable assertion.
11109
11110 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11111
11112         * bits/byteswap.h: Include <features.h>.
11113         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11114         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11115
11116 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11117
11118         * bits/byteswap.h (__bswap_16): Removed.
11119         Include <bits/byteswap-16.h> to get __bswap_16.
11120         * sysdeps/i386/bits/byteswap.h: Likewise.
11121         * sysdeps/s390/bits/byteswap.h: Likewise.
11122         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11123         * bits/byteswap-16.h: New file.
11124         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11125         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11126         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11127         * string/Makefile (headers): Add bits/byteswap-16.h.
11128
11129 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11130
11131         [BZ #13895]
11132         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11133         extra indirection.
11134         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11135         * nss/tst-nss-static.c: New.
11136
11137 2012-04-06  Robert Millan  <rmh@gnu.org>
11138
11139         [BZ #6486]
11140         * manual/llio.texi (File Position Primitive): lseek
11141         refers to WHENCE when it really means OFFSET.
11142
11143 2012-04-06  Andreas Jaeger  <aj@suse.de>
11144
11145         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11146         strncmp declarations.
11147
11148         * abilist/libc.abilist: Add __poll and __ppoll.
11149
11150 2012-04-05  David S. Miller  <davem@davemloft.net>
11151
11152         * scripts/check-local-headers.sh: Accept a host triplet in the
11153         path matched by the exclude regexp.
11154
11155         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11156         definition.
11157         * sysdeps/powerpc/powerpc32/dl-machine.h
11158         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11159         * sysdeps/s390/s390-32/dl-machine.h
11160         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11161         * sysdeps/sparc/sparc32/dl-machine.h
11162         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11163         * sysdeps/sparc/sparc64/dl-machine.h
11164         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11165
11166         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11167         lazy binding.
11168         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11169         undefined symbol errors.
11170
11171         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11172         DT_NEEDED entries.
11173
11174 2012-04-05  Michael Matz  <matz@suse.de>
11175
11176         [BZ #13592]
11177         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11178
11179 2012-04-05  Andreas Jaeger  <aj@suse.de>
11180
11181         [BZ #13908]
11182         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11183         comment.
11184
11185 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11186
11187         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11188         which ROUND is no valid rounding mode.
11189
11190 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11191
11192         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11193         read again.
11194         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11195
11196 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11197
11198         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11199         an exception using FPU order intentionally.
11200
11201 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11202
11203         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11204         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11205         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11206         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11207
11208 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11209
11210         [BZ #12340]
11211         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11212         EINVAL when BUFLEN is too smal.
11213
11214 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11215
11216         [BZ #13553]
11217         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11218         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11219
11220 2012-04-03  Andreas Jaeger  <aj@suse.de>
11221
11222         [BZ #13938]
11223         * manual/setjmp.texi (System V contexts): Fix sentence.
11224
11225         [BZ #13926]
11226         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11227         New macro for this case.
11228         [!__GNUC__] (__bswap_64): New inline function for this case.
11229         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11230         * bits/byteswap.h: Likewise.
11231         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11232         ull, guard with __GLIBC_HAVE_LONG_LONG.
11233
11234         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11235         __GLIBC_HAVE_LONG_LONG.
11236
11237         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11238         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11239
11240 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11241
11242         [BZ #13691]
11243         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11244         inptr and inend, rather than using last_ch.
11245
11246 2012-04-02  David S. Miller  <davem@davemloft.net>
11247
11248         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11249         * stdio-common/printf-parse.h (read_int): Change return type to
11250         'int', return -1 on INT_MAX overflow.
11251         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11252         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11253         overflows INT_MAX.  Check for overflow of in-format-string precision
11254         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11255         SIZE_MAX not INT_MAX for integer overflow test.
11256         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11257         skip the construct in the format string but do not record anything.
11258         * stdio-common/bug22.c: Adjust to test both width/prevision
11259         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11260         explicitly for proper errno values.
11261
11262 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11263
11264         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11265         CHAR_MAX.
11266         * string/test-strcmp.c [! WIDE]: Likewise.
11267         * time/tst-mktime2.c: Likewise for INT_MAX.
11268         * string/test-string.h: #include <sys/param.h> for MIN.
11269
11270         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11271         * sysdeps/i386/init-first.c (init): Likewise.
11272         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11273         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11274         * sysdeps/sh/init-first.c (init): Likewise.
11275
11276 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11277
11278         * po/ru.po: Update from translation team.
11279         * po/vi.po: Likewise.
11280
11281 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11282
11283         * resolv/nss_dns/dns-host.c: Merge copyright years.
11284
11285 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11286
11287         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11288         Optimize memcpy with prefetch if
11289         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11290         src, dst pointers have unequal 16 byte alignments.
11291
11292 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11293
11294         [BZ #13928]
11295         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11296         from a CNAME entry and return the minimum ttl for the query.
11297         (gaih_getanswer_slice): Likewise.
11298
11299 2012-03-30  Jeff Law  <law@redhat.com>
11300
11301         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11302         due to long keys.
11303         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11304         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11305
11306         * resolv/nss_dns/dns-host.c: Update copyright year.
11307
11308 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11309
11310         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11311         requests to save a system call.  Fix check that all bytes are sent.
11312
11313         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11314         comments for sendmmsg.
11315
11316 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11317
11318         [BZ #13691]
11319         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11320         with only 1 character between 0x0041 and 0x01b0.
11321         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11322         * wcsmbs/tst-mbsnrtowcs.c: New file.
11323
11324 2012-03-29  David S. Miller  <davem@davemloft.net>
11325
11326         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11327         small copies by hand.
11328
11329 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11330
11331         [BZ #13761]
11332         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11333         _nss_compat_initgroups_dyn): Fall back to malloc/free
11334         for large group memberships.
11335
11336 2012-03-28  David S. Miller  <davem@davemloft.net>
11337
11338         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11339         that branches into memcpy.
11340         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11341         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11342         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11343         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11344         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11345         bits.
11346         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11347         implementation too.
11348         * sysdeps/sparc/mempcpy.S: New file.
11349
11350         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11351         the IFUNC routine in the libc case.
11352         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11353
11354         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11355         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11356         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11357         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11358         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11359         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11360         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11361         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11362
11363         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11364         loop to 256 bytes instead of 64 bytes and fix test signedness.
11365
11366         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11367         * sysdeps/sparc/sparc32/Makefile: rather than here...
11368         * sysdeps/sparc/sparc64/Makefile: and here.
11369
11370 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11371
11372         * malloc/mallocbug.c: Avoid warnings about unused variables.
11373
11374 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11375
11376         [BZ #13760]
11377         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11378         in the right place. Discard and retry query if response is
11379         larger than input buffer size.
11380
11381 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11382
11383         [BZ #369]
11384         [BZ #2678]
11385         [BZ #3866]
11386         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11387         x for large integer exponent.
11388         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11389         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11390         sign of result as needed afterwards.
11391         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11392         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11393         result for underflowing pow the same as for overflow.
11394         (__kernel_standard_l): Handle powl overflow and underflow here
11395         rather than calling __kernel_standard.
11396         * math/libm-test.inc (pow_test): Add more tests.
11397
11398         [BZ #3868]
11399         [BZ #13879]
11400         [BZ #13910]
11401         [BZ #13911]
11402         [BZ #13912]
11403         [BZ #13913]
11404         [BZ #13915]
11405         [BZ #13916]
11406         [BZ #13917]
11407         [BZ #13918]
11408         [BZ #13919]
11409         [BZ #13920]
11410         [BZ #13921]
11411         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11412         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11413         (__kernel_standard_l): New function.
11414         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11415         __kernel_standard.
11416         * math/w_acosl.c (__acosl): Likewise.
11417         * math/w_asinl.c (__asinl): Likewise.
11418         * math/w_atan2l.c (__atan2l): Likewise.
11419         * math/w_atanhl.c (__atanhl): Likewise.
11420         * math/w_coshl.c (__coshl): Likewise.
11421         * math/w_exp10l.c (__exp10l): Likewise.
11422         * math/w_exp2l.c (__exp2l): Likewise.
11423         * math/w_fmodl.c (__fmodl): Likewise.
11424         * math/w_hypotl.c (__hypotl): Likewise.
11425         * math/w_j0l.c (__j0l, __y0l): Likewise.
11426         * math/w_j1l.c (__j1l, __y1l): Likewise.
11427         * math/w_jnl.c (__jnl, __ynl): Likewise.
11428         * math/w_lgammal.c (__lgammal): Likewise.
11429         * math/w_log10l.c (__log10l): Likewise.
11430         * math/w_log2l.c (__log2l): Likewise.
11431         * math/w_logl.c (__logl): Likewise.
11432         * math/w_powl.c (__powl): Likewise.
11433         * math/w_remainderl.c (__remainderl): Likewise.
11434         * math/w_scalbl.c (sysv_scalbl): Likewise.
11435         * math/w_sinhl.c (__sinhl): Likewise.
11436         * math/w_sqrtl.c (__sqrtl): Likewise.
11437         * math/w_tgammal.c (__tgammal): Likewise.
11438         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11439         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11440         * math/libm-test.inc (acos_test): Add more tests.
11441         (acosh_test): Likewise.
11442         (asin_test): Likewise.
11443         (atanh_test): Likewise.
11444         (exp_test): Likewise.
11445         (exp10_test): Likewise.
11446         (exp2_test): Likewise.
11447         (expm1_test): Likewise.
11448         (lgamma_test): Likewise.
11449         (log_test): Likewise.
11450         (log10_test): Likewise.
11451         (log1p_test): Likewise.
11452         (log2_test): Likewise.
11453         (pow_test): Do not allow some spurious overflow exceptions.
11454         (sqrt_test): Add more tests.
11455         (tgamma_test): Likewise.
11456         (y0_test): Likewise.
11457         (y1_test): Likewise.
11458         (yn_test): Likewise.
11459
11460 2012-03-27  Anton Blanchard  <anton@samba.org>
11461
11462         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11463         MAP_HUGETLB.
11464         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11465         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11466         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11467
11468 2012-03-27  David S. Miller  <davem@davemloft.net>
11469
11470         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11471
11472         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11473         have-as-vis3 check.
11474
11475 2012-03-27  Andreas Jaeger  <aj@suse.de>
11476
11477         * sysdeps/x86_64/elf/configure.in: Moved to ...
11478         * sysdeps/x86_64/configure.in: ... here.
11479         * sysdeps/x86_64/elf/start.S: Moved to ...
11480         * sysdeps/x86_64/start.S: ... here.
11481         * sysdeps/x86_64/elf/configure: Delete.
11482
11483         * sysdeps/x86_64/configure.in: Merge contents from
11484         sysdeps/i386/configure.in (without i686 check).
11485
11486         * sysdeps/i386/elf/Versions: Merge into ...
11487         * sysdeps/i386/Versions: ... this.
11488         * sysdeps/i386/elf/Versions: Delete file.
11489         * sysdeps/i386/elf/start.S: Moved to ...
11490         * sysdeps/i386/start.S: ...here.
11491         * sysdeps/i386/elf/configure.in: Merge into...
11492         * sysdeps/i386/configure.in: ...here.
11493         * sysdeps/i386/elf/configure.in: Delete file.
11494         * sysdeps/i386/elf/configure: Delete file.
11495
11496         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11497         * debug/backtracesyms.c: ... here.
11498         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11499         * debug/backtracesymsfd.c: ... here.
11500         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11501         * sysdeps/generic/ifunc-sel.h: ... here.
11502
11503         * sysdeps/unix/i386/start.c: Delete file.
11504         * sysdeps/unix/sparc/start.c: Delete file.
11505         * sysdeps/unix/start.c: Delete file.
11506
11507         * sysdeps/sh/elf/configure.in: Moved to ...
11508         * sysdeps/sh/configure.in: ... here.
11509         * sysdeps/sh/elf/start.S: Moved to ...
11510         * sysdeps/sh/start.S: ... here.
11511         * sysdeps/sh/elf/configure: Delete file.
11512
11513         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11514         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11515         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11516         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11517         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11518         * sysdeps/powerpc/powerpc64/start.S: here.
11519         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11520         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11521         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11522         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11523         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11524
11525         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11526         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11527         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11528         * sysdeps/powerpc/powerpc32/start.S: ... here.
11529         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11530         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11531         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11532
11533         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11534         * sysdeps/powerpc/ifunc-sel.h: ... here.
11535         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11536         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11537
11538         * sysdeps/sparc/elf/configure.in: Moved to ...
11539         * sysdeps/sparc/configure.in: ... here.
11540         * sysdeps/sparc/elf/configure: Delete file.
11541         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11542         * sysdeps/sparc/sparc32/start.S: ... here.
11543         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11544         * sysdeps/sparc/sparc64/start.S: ... here.
11545         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11546         * sysdeps/sparc/sparc32/Makefile: ... this.
11547         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11548         * sysdeps/sparc/sparc64/Makefile: ... this.
11549
11550         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11551         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11552         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11553         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11554         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11555         * sysdeps/s390/s390-32/setjmp.S: ... here.
11556         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11557         * sysdeps/s390/s390-32/configure.in: ... here.
11558         * sysdeps/s390/s390-32/elf/configure: Delete file.
11559         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11560         * sysdeps/s390/s390-32/start.S: ... here.
11561
11562         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11563         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11564         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11565         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11566         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11567         * sysdeps/s390/s390-64/setjmp.S: ... here.
11568         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11569         * sysdeps/s390/s390-64/configure.in: ... here
11570         * sysdeps/s390/s390-64/elf/configure: Delete file.
11571         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11572         * sysdeps/s390/s390-64/start.S: ... here.
11573         * sysdeps/s390/s390-64/elf/configure: Delete.
11574
11575         * configure.in: Remove support for elf directories in sysdeps.
11576
11577         * configure: Regenerated.
11578         * sysdeps/i386/configure: Regenerated.
11579         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11580         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11581         * sysdeps/s390/s390-32/configure: Regenerated.
11582         * sysdeps/s390/s390-64/configure: Regenerated.
11583         * sysdeps/sh/configure: Regenerated.
11584         * sysdeps/sparc/configure: Regenerated.
11585         * sysdeps/x86_64/configure: Regenerated.
11586
11587 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11588
11589         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11590
11591         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11592         denormal result into account.
11593
11594 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11595
11596         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11597         Reported by Allan McRae <allan@archlinux.org>.
11598
11599 2012-03-23  Jeff Law  <law@redhat.com>
11600
11601         * nss/getnssent.c (__nss_getent): Fix typo.
11602
11603 2012-03-23  David S. Miller  <davem@davemloft.net>
11604
11605         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11606
11607 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11608
11609         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11610         to pad to uint64_t for each field.
11611         (dl_tls_index): Replace unsigned long with uint64_t.
11612
11613 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11614         Paul Pluzhnikov  <ppluzhnikov@google.com>
11615
11616         [BZ #6528]
11617         * grp/Makefile (otherlibs): Don't set it.
11618         * inet/Makefile (otherlibs): Likewise.
11619         * login/Makefile (otherlibs): Likewise.
11620         * nscd/Makefile (otherlibs): Likewise.
11621         * posix/Makefile (otherlibs): Likewise.
11622         * pwd/Makefile (otherlibs): Likewise.
11623         * rt/Makefile (otherlibs): Likewise.
11624         * sunrpc/Makefile (otherlibs): Likewise.
11625         * nss/Makefile (otherlibs): Likewise.
11626         Add libnss_files to routines and static-only-routines.
11627         ($(objpfx)getent): Remove rule.
11628         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11629         static-only-routines.
11630
11631 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11632
11633         [BZ #13892]
11634         * math/s_cexp.c: Include <float.h>.
11635         (__cexp): Handle exp result overflowing not necessarily
11636         overflowing both real and imaginary parts of result.
11637         * math/s_cexpf.c: Likewise.
11638         * math/s_cexpl.c: Likewise.
11639         * math/libm-test.inc (cexp_test): Add more tests.
11640         * sysdeps/i386/fpu/libm-test-ulps: Update.
11641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11642
11643 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11644
11645         * include/link.h (ELFW): New macro.
11646         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11647         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11648
11649 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11650
11651         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11652         with uint64_t.
11653
11654 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11655
11656         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11657         declaration.
11658         (struct La_x32_retval): Likewise.
11659
11660 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11661
11662         * sysdeps/x86_64/preconfigure.in: New file.
11663         * sysdeps/x86_64/preconfigure: New generated file.
11664
11665 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11666
11667         [BZ #13824]
11668         * math/e_exp2l.c: Include <float.h>.
11669         (__ieee754_exp2l): Handle overflow and underflow cases
11670         separately.  Only pass fractional part of argument to
11671         __ieee754_expl.
11672         * math/libm-test.inc (exp2_test): Add more tests.
11673
11674         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11675         negating x to take absolute value.
11676         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11677         Likewise.
11678         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11679         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11680         Likewise.
11681         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11682         computing low part if x was negated.
11683         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11684
11685 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11686
11687         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11688         la_x32_gnu_pltexit.
11689         (pltexit): Cast int_retval to ptrdiff_t.
11690         * elf/tst-auditmod3b.c: Likewise.
11691         * elf/tst-auditmod4b.c: Likewise.
11692         * elf/tst-auditmod5b.c: Likewise.
11693         * elf/tst-auditmod6b.c: Likewise.
11694         * elf/tst-auditmod6c.c: Likewise.
11695         * elf/tst-auditmod7b.c: Likewise.
11696
11697         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11698         and x32_gnu_pltexit.
11699
11700         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11701         __ELF_NATIVE_CLASS.
11702         (La_x32_regs): New macro.
11703         (La_x32_retval): Likewise.
11704         (la_x32_gnu_pltenter): New function prototype.
11705         (la_x32_gnu_pltexit): Likewise.
11706
11707 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11708
11709         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11710         exponent.
11711
11712         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11713
11714         * configure.in (libc_cv_cc_nofma): Check for option to disable
11715         generation of FMA instructions.
11716         * configure: Regenerate.
11717         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11718         * sysdeps/ieee754/dbl-64/Makefile: New file.
11719         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11720         Remove brandred-fma4.
11721         (CFLAGS-brandred-fma4.c): Remove.
11722         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11723         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11724         define.
11725         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11726         define.
11727
11728 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11729
11730         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11731         LLONG_MAX != LONG_MAX.
11732         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11733         (_fitoa_word): Likewise.
11734         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11735         LLONG_MAX != LONG_MAX.
11736         * stdio-common/_itowa.h: Include <_itoa.h>.
11737         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11738         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11739         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11740         only if not defined.
11741         (_ITOA_WORD_TYPE): Likewise.
11742         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11743         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11744
11745 2012-03-21  David S. Miller  <davem@davemloft.net>
11746
11747         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11748
11749 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11750
11751         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11752         of x86_64 when setting libc_cv_slibdir, libdir and
11753         libc_cv_localedir.
11754         * sysdeps/unix/sysv/linux/configure: Regenerated.
11755
11756 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11757
11758         * manual/lang.texi (Old Varargs): Remove section.
11759         (How Variadic): Update menu.
11760         (va_start): Do not mention varargs.h.
11761
11762 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11763             Joseph Myers  <joseph@codesourcery.com>
11764
11765         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11766         link test.
11767         * configure: Regenerated.
11768
11769 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11770
11771         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11772         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11773         conformtest.pl
11774
11775 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11776
11777         * NOTES: Remove.
11778         * Makefile (files-for-dist): Remove NOTES.
11779         (NOTES): Remove rule.
11780         * README: Don't refer to NOTES.
11781         * manual/creature.texi: Don't include macros.texi.
11782         * manual/intro.texi (creature.texi): Remove comment referring to
11783         NOTES.
11784
11785         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11786         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11787         * configure: Regenerated.
11788         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11789         LIBC_TRY_CC_OPTION.
11790         (libc_cv_as_i686): Likewise.
11791         (libc_cv_cc_avx): Likewise.
11792         (libc_cv_cc_sse2avx): Likewise.
11793         (libc_cv_cc_fma4): Likewise.
11794         (libc_cv_cc_novzeroupper): Likewise.
11795         * sysdeps/i386/configure: Regenerated.
11796
11797         [BZ #13883]
11798         * sysdeps/i386/fpu/s_cexp.S: Remove.
11799         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11800         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11801         * math/libm-test.inc (cexp_test): Add more tests.
11802         * sysdeps/i386/fpu/libm-test-ulps: Update.
11803         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11804
11805 2012-03-21  Allan McRae  <allan@archlinux.org>
11806
11807         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11808
11809 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11810
11811         [BZ #13871]
11812         * math/w_exp2.c: Do not include <float.h>.
11813         (o_threshold, u_threshold): Remove.
11814         (__exp2): Calculate result before checking finiteness and calling
11815         __kernel_standard.
11816         * math/w_exp2f.c: Likewise.
11817         * math/w_exp2l.c: Likewise.
11818         * math/libm-test.inc (exp2_test): Require overflow exception for
11819         1e6 input.
11820
11821         [BZ #3866]
11822         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11823         range of signed 64-bit integers before using fistpll.  Remove
11824         checks for whether integers fit in mantissa bits.
11825         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11826         the range of signed 32-bit integers before using fistpl.  Remove
11827         checks for whether integers fit in mantissa bits.
11828         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11829         (__ieee754_powl): Test for y outside the range of signed 64-bit
11830         integers before using fistpll.  Reduce 64-bit values to 63-bit
11831         ones as needed.
11832         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11833         divide-by-zero is raised for zero to large negative powers.
11834         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11835         (__ieee754_powl): Test for y outside the range of signed 64-bit
11836         integers before using fistpll.  Reduce 64-bit values to 63-bit
11837         ones as needed.
11838         * math/libm-test.inc (pow_test): Add more tests.
11839
11840 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11841
11842         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11843         <stdio-common/_itoa.h>.
11844         * debug/segfault.c: Likewise.
11845         * elf/dl-cache.c: Likewise.
11846         * elf/dl-minimal.c: Likewise.
11847         * elf/dl-misc.c: Likewise.
11848         * elf/dl-sysdep.c: Likewise.
11849         * elf/dl-version.c: Likewise.
11850         * elf/rtld.c: Likewise.
11851         * hurd/hurdsock.c: Likewise.
11852         * hurd/lookup-retry.c: Likewise.
11853         * malloc/malloc.c: Likewise.
11854         * malloc/mtrace.c: Likewise.
11855         * nscd/nscd_getgr_r.c: Likewise.
11856         * nscd/nscd_getpw_r.c: Likewise.
11857         * nscd/nscd_getserv_r.c: Likewise.
11858         * posix/getopt_init.c: Likewise.
11859         * posix/wordexp.c: Likewise.
11860         * stdio-common/_itoa.c: Likewise.
11861         * stdio-common/printf_fphex.c: Likewise.
11862         * stdio-common/vfprintf.c: Likewise.
11863         * string/_strerror.c: Likewise.
11864         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11865         * sysdeps/i386/i686/hp-timing.h: Likewise.
11866         * sysdeps/mach/_strerror.c: Likewise.
11867         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11868         * sysdeps/mach/hurd/sethostid.c: Likewise.
11869         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11870         * sysdeps/mach/xpg-strerror.c: Likewise.
11871         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11872         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11873         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11874         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11875         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11876         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11877         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11878         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11879         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11880         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11881         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11882         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11883         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11884         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11885         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11886         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11887         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11888         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11889         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11890         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11891         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11892
11893         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11894
11895         * stdio-common/_itoa.h: Moved to ...
11896         * sysdeps/generic/_itoa.h: Here.
11897
11898         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11899
11900         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11901         instead of "_itoa.h" and "_itowa.h".
11902         * stdio-common/vfprintf.: Likewise.
11903
11904 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11905
11906         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11907         <bits/wordsize.h>.
11908         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11909         (__signbit): Likwise.
11910         (llrintf): Likwise.
11911         (llrint): Likwise.
11912
11913 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11914
11915         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11916         __WORDSIZE != 64.
11917
11918 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11919
11920         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11921         OVERFLOW_EXCEPTION_OK.
11922         * math/libm-test.inc ("Philosophy"): Update comment about
11923         exception testing.
11924         (OVERFLOW_EXCEPTION): Define.
11925         (OVERFLOW_EXCEPTION_OK): Likewise.
11926         (INVALID_EXCEPTION_OK): Renumber.
11927         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11928         (IGNORE_ZERO_INF_SIGN): Likewise.
11929         (test_exceptions): Handle FE_OVERFLOW.
11930         (exp10_test): Expect overflow exceptions.
11931         (exp2_test): Likewise.
11932         (expm1_test): Likewise.
11933         (nextafter_test): Likewise.
11934         (pow_test): Likewise.
11935         (scalbn_test): Likewise.
11936         (scalbln_test): Likewise.
11937
11938 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11939
11940         * sysdeps/x86_64/bits/atomic.h
11941         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11942         64bit integer.
11943         (atomic_exchange_acq): Likewise.
11944         (__arch_exchange_and_add_body): Likewise.
11945         (__arch_add_body): Likewise.
11946         (atomic_add_negative): Likewise.
11947         (atomic_add_zero): Likewise.
11948
11949 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11950
11951         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11952         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11953
11954 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11955
11956         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11957         Check __x86_64__ instead of __WORDSIZE.
11958
11959 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11960
11961         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
11962
11963 2012-03-19  David S. Miller  <davem@davemloft.net>
11964
11965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11966
11967         * sysdeps/sparc/fpu/fenv_private.h: New file.
11968         * sysdeps/sparc/fpu/math_private.h: Use it.
11969         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
11970         Remove.
11971         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
11972         (libc_feholdexcept_setroundl): Remove.
11973         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
11974         Remove.
11975         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
11976         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
11977
11978 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11979
11980         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
11981         int64_t instead of long int.
11982         (INSERT_WORDS64): Likwise.
11983
11984 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11985
11986         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
11987         _Unwind_GetCFA return to _Unwind_Ptr first.
11988
11989 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
11990
11991         [BZ #13629]
11992         * math/s_clog.c: Include <float.h>.
11993         (__clog): Scale large or subnormal inputs.
11994         * math/s_clogf.c: Likewise.
11995         * math/s_clogl.c: Likewise.
11996         * math/s_clog10.c: Include <float.h>.
11997         (M_LOG10_2): Define.
11998         (__clog10): Scale large or subnormal inputs.
11999         * math/s_clog10f.c: Likewise.
12000         * math/s_clog10l.c: Likewise.
12001         * math/libm-test.inc (clog_test): Add more tests.
12002         (clog10_test): Likewise.
12003         * sysdeps/i386/fpu/libm-test-ulps: Update.
12004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12005
12006         [BZ #11451]
12007         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
12008         x and y.
12009         * math/libm-test.inc (atan2_test): Add another test.
12010
12011         * Makerules (common-objdir-compile): Remove.
12012         * sysdeps/unix/Makefile (config-generated): Do not add
12013         $(unix-generated) to variable.
12014         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
12015         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
12016         Remove rule.
12017         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
12018         Likewise.
12019         [generic bits/local_lim.h] (before-compile): Do not append to
12020         variable.
12021         [generic bits/local_lim.h] (common-generated): Likewise.
12022         [generic sys/param.h] (before-compile): Do not append to variable.
12023         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
12024         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
12025         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
12026         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
12027         include.
12028         [generic sys/param.h] (sys/param.h-includes): Remove variable.
12029         [generic sys/param.h] (sys/param.h-includes): Remove rule.
12030         [generic sys/param.h] ($(addprefix
12031         $(common-objpfx),$(sys/param.h-includes))): Likewise.
12032         [generic sys/param.h] (common-generated): Do not append to
12033         variable.
12034         [generic sys/param.h] (sysdep_headers): Likewise.
12035         [generic bits/errno.h] (before-compile): Do not append to
12036         variable.
12037         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12038         rule.
12039         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12040         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12041         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12042         [generic bits/errno.h] (common-generated): Do not append to
12043         variable.
12044         [generic bits/ioctls.h] (before-compile): Do not append to
12045         variable.
12046         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12047         rule.
12048         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12049         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12050         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12051         rule.
12052         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12053         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12054         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12055         [generic bits/ioctls.h] (common-generated): Do not append to
12056         variable.
12057         [generic sys/syscall.h] (syscall.h): Remove variable.
12058         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12059         rule.
12060         [generic sys/syscall.h] (before-compile): Do not append to
12061         variable.
12062         [generic sys/syscall.h] (common-generated): Likewise.
12063         * sysdeps/unix/errnos-tmpl.c: Remove file.
12064         * sysdeps/unix/errnos.awk: Likewise.
12065         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12066         * sysdeps/unix/ioctls.awk: Likewise.
12067         * sysdeps/unix/mk-local_lim.c: Likewise.
12068         * sysdeps/unix/snarf-ioctls: Likewise.
12069
12070 2012-03-19  Richard Henderson  <rth@twiddle.net>
12071
12072         * sysdeps/i386/fpu/fenv_private.h: New file.
12073         * sysdeps/i386/fpu/math_private.h: Use it.
12074         (math_opt_barrier, math_force_eval): Remove.
12075         (libc_feholdexcept_setround_53bit): Remove.
12076         (libc_feupdateenv_53bit): Remove.
12077         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12078         (math_opt_barrier, math_force_eval): Remove.
12079         (libc_feholdexcept): Remove.
12080         (libc_feholdexcept_setround): Remove.
12081         (libc_fetestexcept, libc_fesetenv): Remove.
12082         (libc_feupdateenv_test): Remove.
12083         (libc_feupdateenv, libc_feholdsetround): Remove.
12084         (libc_feresetround): Remove.
12085
12086         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12087         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12088
12089         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12090         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12091         (libc_feupdateenv_testl): New.
12092         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12093         (libc_feupdateenv_testf): New.
12094         (libc_feupdateenv): Use libc_feupdateenv_test.
12095         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12096         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12097
12098         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12099         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12100         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12101         (libc_feresetround_noex): New.
12102         (libc_feresetround_noexf): New.
12103         (libc_feresetround_noexl): New.
12104         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12105         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12106         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12107         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12108         SET_RESTORE_ROUND.
12109         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12110         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12111         (__cos): Likewise.
12112         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12113         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12114         SET_RESTORE_ROUND_NOEX.
12115         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12116         SET_RESTORE_ROUND_NOEXF.
12117         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12118         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12119         (libc_feholdsetroundf): New.
12120         (libc_feresetround, libc_feresetroundf): New.
12121
12122         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12123         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12124         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12125
12126         * sysdeps/generic/math_private.h: Include <fenv.h>.
12127         (default_libc_feholdexcept): New.
12128         (default_libc_feholdexcept_setround): New.
12129         (default_libc_fesetenv, default_libc_feupdateenv): New.
12130         (libc_feholdexcept): Only define if undefined.
12131         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12132         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12133         (libc_feholdexcept_setroundl): Likewise.
12134         (libc_feholdexcept_setround_53bit): Likewise.
12135         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12136         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12137         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12138         (libc_feupdateenv_53bit): Likewise.
12139         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12140         (libc_feholdexcept): Convert from macro to inline function.
12141         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12142         (libc_fesetenv, libc_feupdateenv): Likewise.
12143
12144         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12145         not previously defined.
12146         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12147         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12148         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12149         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12150         * sysdeps/ieee754/flt-32/math_private.h: New file.
12151         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12152         math_private.h below SET_FLOAT_WORD.
12153         (__isnan, __isinf_ns, __finite): Remove.
12154         (__isnanf, __isinf_nsf, __finitef): Remove.
12155
12156 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12157
12158         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12159
12160 2012-03-17  David S. Miller  <davem@davemloft.net>
12161
12162         [BZ #6471]
12163         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12164         for 2.16.
12165
12166 2012-03-16  David S. Miller  <davem@davemloft.net>
12167
12168         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12169         warnings.
12170
12171         [BZ #6471]
12172         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12173         properly.
12174         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12175         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12176         sysdep_routines when subdir is sysvipc.
12177         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12178         __getshmlba helper.
12179
12180         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12181
12182 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12183
12184         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12185         [__LP64__].
12186
12187 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12188
12189         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12190         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12191         (__lround): Renamed to ...
12192         (__llround): This.  Replace long int with long long int.
12193         Define lround functions as aliases of llround functions.
12194         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12195
12196 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12197
12198         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12199         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12200         adresses to uintptr_t.  Replace "long int" and "unsigned long
12201         int" with "greg_t" on va_arg.
12202
12203 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12204
12205         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12206         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12207
12208         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12209         Move e_machine check before EI_CLASS check.  Handle x32
12210         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12211         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12212         SKIP_EM_IA_64 and include
12213         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12214
12215         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12216         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12217         (add_system_dir): New macro.
12218
12219         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12220         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12221
12222 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12223
12224         [BZ #2551]
12225         [BZ #2552]
12226         [BZ #2553]
12227         [BZ #2554]
12228         [BZ #2562]
12229         [BZ #2563]
12230         [BZ #2565]
12231         [BZ #2566]
12232         [BZ #2576]
12233         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12234         (y0): Likewise.
12235         * math/w_j0f.c (j0f): Likewise.
12236         (y0f): Likewise.
12237         * math/w_j0l.c (__j0l): Likewise.
12238         (__y0l): Likewise.
12239         * math/w_j1.c (j1): Likewise.
12240         (y1): Likewise.
12241         * math/w_j1f.c (j1f): Likewise.
12242         (y1f): Likewise.
12243         * math/w_j1l.c (__j1l): Likewise.
12244         (__y1l): Likewise.
12245         * math/w_jn.c (jn): Likewise.
12246         (yn): Likewise.
12247         * math/w_jnf.c (jnf): Likewise.
12248         (ynf): Likewise.
12249         * math/w_jnl.c (__jnl): Likewise.
12250         (__ynl): Likewise.
12251         * math/libm-test.inc (j0_test): Add more tests.
12252         (j1_test): Likewise.
12253         (jn_test): Likewise.  Add trailing semicolon to existing test.
12254         (y0_test): Likewise.
12255         (y1_test): Likewise.
12256         * sysdeps/i386/fpu/libm-test-ulps: Update.
12257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12258
12259         [BZ #13851]
12260         [BZ #13854]
12261         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12262         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12263         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12264         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12265         (__tanl): Set errno for infinite argument.
12266         * sysdeps/i386/fpu/mptan.c: Remove.
12267         * sysdeps/i386/fpu/s_tan.S: Likewise.
12268         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12269         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12270         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12271         * math/libm-test.inc (tan_test): Add more tests and enable more
12272         tests for double and long double.
12273         * sysdeps/i386/fpu/libm-test-ulps: Update.
12274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12275
12276 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12277
12278         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12279         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12280
12281 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12282
12283         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12284         * configure.in: Use it for both main tree and add-ons.
12285         * configure: Regenerated.
12286
12287 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12288
12289         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12290
12291 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12292
12293         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12294         in comment.
12295
12296         [BZ #13851]
12297         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12298         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12299         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12300         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12301         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12302         infinite argument.
12303         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12304         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12305         != 0 for prec == 2.
12306         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12307         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12308         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12309         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12310         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12311         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12312         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12313         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12314         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12315         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12316         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12317         * math/libm-test.inc (cos_test): Add more tests and enable more
12318         tests for long double.
12319         (sin_test): Likewise.
12320         (sincos_test): Likewise.
12321         * sysdeps/i386/fpu/libm-test-ulps: Update.
12322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12323
12324 2012-03-16  David S. Miller  <davem@davemloft.net>
12325
12326         * sysdeps/sparc/fpu/math_private.h: New file.
12327
12328 2012-03-15  David S. Miller  <davem@davemloft.net>
12329
12330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12331         file.
12332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12334         file.
12335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12336         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12337         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12338         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12339         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12340         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12341         sysdep routines.
12342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12343
12344         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12345         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12346
12347         * sysdeps/sparc/sparc-ifunc.h: New file.
12348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12349         sparc-ifunc.h
12350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12352         Likewise.
12353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12354         Likewise.
12355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12356         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12358         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12359         Likewise.
12360         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12363         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12364         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12365         Likewise.
12366         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12367         Likewise.
12368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12369         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12372         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12373         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12374         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12375         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12376         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12377         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12378         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12379         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12380         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12381         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12382         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12383         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12384         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12385         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12386         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12387         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12388         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12389         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12390         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12391         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12392
12393 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12394
12395         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12396         scaling.
12397         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12398
12399 2012-03-15  Andreas Jaeger  <aj@suse.de>
12400
12401         [BZ #13852]
12402         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12403         ieee754/flt-32 implementation for sin, cos and sincos.
12404         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12405         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12406         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12407         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12408         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12409         ieee754/flt-32 implementation for tan.
12410
12411         * math/libm-test.inc (cos_test): Enable some large input tests for
12412         float as well
12413         (sin_test): Likewise.
12414         (sincos_test): Likewise.
12415         (tan_test): Add tests for large input.
12416
12417         * sysdeps/i386/fpu/libm-test-ulps: Update.
12418
12419 2012-03-15  Andreas Jaeger  <aj@suse.de>
12420
12421         [BZ #13658]
12422         * math/libm-test.inc (cos_test): Add more test cases.
12423         (sin_test): Likewise.
12424         (sincos_test): Likewise.
12425
12426 2012-03-15  Andreas Jaeger  <aj@suse.de>
12427
12428         [BZ #13837]
12429         * math/libm-test.inc (cos_test): Add a test case for large input
12430         value.
12431         (sin_test): Likewise.
12432         (sincos_test): Likewise.
12433
12434 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12435         Joseph Myers  <joseph@codesourcery.com>
12436
12437         [BZ #13658]
12438         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12439         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12440         * sysdeps/i386/fpu/branred.c: Likewise.
12441         * sysdeps/i386/fpu/dosincos.c: Likewise.
12442         * sysdeps/i386/fpu/mpa.c: Likewise.
12443         * sysdeps/i386/fpu/s_cos.S: Likewise.
12444         * sysdeps/i386/fpu/s_sin.S: Likewise.
12445         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12446         * sysdeps/i386/fpu/sincos32.c: Likewise.
12447
12448         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12449         Define.
12450         (libc_feupdateenv_53bit): Define.
12451         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12452         Define.
12453         (libc_feupdateenv_53bit): Define.
12454
12455         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12456         53 bit (without extend i386 double precision).
12457
12458         * math/libm-test.inc (sincos_test): Add tests for large input.
12459         (sin): Likewise.
12460         (cos): Likewise.
12461
12462         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12463
12464 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12465
12466         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12467
12468 2012-03-15  David S. Miller  <davem@davemloft.net>
12469
12470         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12471         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12472         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12473         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12475         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12476         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12477         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12478         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12479         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12480         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12481         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12482         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12483         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12484         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12486         file.
12487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12488         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12489         file.
12490         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12492         file.
12493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12494         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12495         file.
12496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12497         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12498         fmin/fmax sysdep routines.
12499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12500
12501 2012-03-14  David S. Miller  <davem@davemloft.net>
12502
12503         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12504         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12505         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12506         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12507         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12508         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12509         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12510         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12511         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12512         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12513         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12514         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12515         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12516         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12517         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12518         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12519         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12520         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12521         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12522         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12523         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12524         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12525         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12526         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12527         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12528         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12529         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12530         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12531         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12532         routines.
12533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12534         file.
12535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12537         file.
12538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12540         file.
12541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12543         file.
12544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12546         file.
12547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12549         file.
12550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12551         file.
12552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12553         file.
12554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12555         file.
12556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12557         New file.
12558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12559         file.
12560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12561         file.
12562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12564         file.
12565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12567         file.
12568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12570         file.
12571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12573         VIS3 routines.
12574
12575         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12576         New file.
12577
12578         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12579
12580         * sysdeps/sparc/configure.in: New file.
12581         * sysdeps/sparc/configure: Generate.
12582         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12583         * configure: Regenerate.
12584         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12585         * config.make.in (have-as-vis3): New.
12586         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12587         available use -Av9d instead of -Av9a.
12588         * sysdeps/sparc/sparc64/Makefile: Likewise.
12589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12591         New file.
12592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12593         file.
12594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12595         New file.
12596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12597         file.
12598         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12599         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12600         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12601         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12602         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12603
12604         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12605         fzeros/fnegs to load 0x80000000 into a float register instead of
12606         using the stack.
12607         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12608
12609 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12612         bits/syscall.h.
12613         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12614         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12615         ($(inst_includedir)/bits/syscall.h): Remove rule.
12616         ($(objpfx)bits/syscall.d): Include instead of
12617         $(objpfx)syscall-list.d.
12618         (generated): Change syscall-list.h and syscall-list.d to
12619         bits/syscall.h and bits/syscall.d.
12620
12621 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12622
12623         [BZ #13846]
12624         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12625
12626 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12627
12628         [BZ #13841]
12629         * math/s_csqrt.c: Include <float.h>.
12630         (__csqrt): Scale large or subnormal inputs.
12631         * math/s_csqrtf.c: Likewise.
12632         * math/s_csqrtl.c: Likewise.
12633         * math/libm-test.inc (csqrt_test): Add more tests.
12634         * sysdeps/i386/fpu/libm-test-ulps: Update.
12635         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12636
12637         [BZ #13840]
12638         * math/libm-test.inc (hypot_test): Add more tests.
12639
12640 2012-03-13  David S. Miller  <davem@davemloft.net>
12641
12642         [BZ #13840]
12643         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12644         double-precision for the calculation instead of scaling.
12645
12646 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12647
12648         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12649         manipulate bits before adding and subtracting TWO52[sx].
12650         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12651         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12652         Likewise.
12653         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12654
12655 2012-03-13  David S. Miller  <davem@davemloft.net>
12656
12657         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12658         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12659         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12660         rtld-global-offsets.h
12661         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12662
12663         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12664         large parameters.
12665
12666         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12667
12668         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12669         'err' in the ifdef scope in which it is actually used.
12670
12671         * nss/nss_db/db-init.c: Include string.h
12672
12673 2012-03-12  David S. Miller  <davem@davemloft.net>
12674
12675         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12676         masking out of the most significant byte of random value used.
12677         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12678         Fix coding style in previous change.
12679
12680         * sysdeps/unix/sysv/linux/kernel-features.h
12681         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12682         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12683         expression.
12684         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12685         later.
12686
12687 2012-03-11  David S. Miller  <davem@davemloft.net>
12688
12689         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12690         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12691         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12692         for 'resultvar' otherwise things get truncated on 64-bit.
12693
12694         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12695         Fix masking out of the most significant byte of random value used.
12696
12697         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12698
12699 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12700
12701         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12702
12703 2012-03-09  David S. Miller  <davem@davemloft.net>
12704
12705         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12706         variables with appropriate CPP guards.
12707         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12708         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12709         on resulting framesize and the management of the outregs buffer for pltexit.
12710         Preserve floating point return values across _dl_call_pltexit call.
12711         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12712         framesize and the management of the outregs buffer for pltexit.
12713         Preserve floating point return values across _dl_call_pltexit
12714         call.
12715         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12716         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12717         (print_exit): Fix format string for return register value.
12718
12719 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12720
12721         * sunrpc/Makefile (others): Add rpcgen.
12722         ($(objpfx)rpcgen): Remove special build rule and dependency on
12723         libc.
12724         * sunrpc/rpcgen.c: New file.
12725
12726 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12727
12728         [BZ #13673]
12729         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12730         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12731         * sysdeps/i386/crti.S: Likewise.
12732         * sysdeps/i386/crtn.S: Likewise.
12733         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12734         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12735         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12736         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12737         * sysdeps/sh/crti.S: Likewise.
12738         * sysdeps/sh/crtn.S: Likewise.
12739         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12740
12741         [BZ #13673]
12742         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12743         with URL.
12744         * locale/programs/locfile-kw.gperf: Likewise.
12745         * locale/programs/charmap-kw.h: Regenerated.
12746         * locale/programs/locfile-kw.h: Likewise.
12747
12748         [BZ #13673]
12749         * intl/plural.y: Replace FSF snail mail address with URL.
12750         * intl/plural.c: Regenerated.
12751
12752 2012-03-09  Richard Henderson  <rth@twiddle.net>
12753
12754         * include/math_private.h: Remove file.
12755         * math/math_private.h: Move file ...
12756         * sysdeps/generic/math_private.h: ... here.
12757
12758         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12759         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12760         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12761
12762         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12763         and <math_private.h>.
12764         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12765         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12766         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12767         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12768         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12769         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12770         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12771         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12772         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12773         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12774         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12775         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12776         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12777         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12778         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12779         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12780         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12781         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12782         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12783         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12784         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12785         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12786         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12787         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12788         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12789         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12790         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12791         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12792         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12793         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12794         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12795         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12796         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12797         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12798         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12799         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12800         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12801         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12802         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12803         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12804         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12805         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12806         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12807         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12808         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12809         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12810         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12813         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12814         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12815         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12816         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12817         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12818         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12819         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12820         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12821         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12822         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12823         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12824         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12825         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12826         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12827         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12828         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12829         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12830         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12831         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12832         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12833         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12834         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12835         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12836         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12837         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12838         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12839         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12840         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12841         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12842         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12843         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12844         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12845         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12846         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12847         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12848         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12849         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12850         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12851         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12852         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12853         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12854         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12855         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12856         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12857         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12858         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12859         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12860         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12861         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12862         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12863         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12864         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12865         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12866         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12867         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12868         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12869         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12870         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12871         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12872         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12873         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12874         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12875         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12876         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12877         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12878         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12879         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12880         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12881         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12882         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12883         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12884         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12885         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12886         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12887         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12888         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12889         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12890         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12891         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12892         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12893         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12894         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12895         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12896         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12897         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12898         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12899         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12900         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12901         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12902         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12903         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12904         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12905         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12906         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12907         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12908         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12909         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12910         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12911         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12912         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12913         * sysdeps/ieee754/k_standard.c: Likewise.
12914         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12915         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12916         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12917         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12918         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12919         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12920         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12921         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12922         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12923         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12924         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12925         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12926         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12927         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12928         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12929         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12930         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12931         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12932         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12933         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12934         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12935         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12936         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12937         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12938         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12939         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12940         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12941         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12942         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12943         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12944         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12945         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12946         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12947         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12948         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12949         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12950         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12951         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12952         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12953         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12954         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12955         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12956         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12957         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12958         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12959         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
12960         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
12961         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
12962         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
12963         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
12964         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
12965         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
12966         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
12967         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
12968         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
12969         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
12970         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
12971         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
12972         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
12973         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
12981         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
12983         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
12984         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
12985         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12986         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
12987         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
12988         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
12990         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
12991         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
12992         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
12993         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
12996         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
12997         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
12998         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
12999         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13000         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13001         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
13002         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
13003         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13004         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
13005         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13006         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
13007         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
13008         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13009         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13010         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
13011         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
13012         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
13013         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
13014         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13015         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13016         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13017         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13018         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
13019         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13021         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
13022         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
13023         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13024         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13025         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13026         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13027         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13028         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13029         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13030         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13031         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13032         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13033         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13034         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13036         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13037         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13038         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13041         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13042         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13043         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13044         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13045         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13046         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13047         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13048         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13049         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13050         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13051         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13052         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13053         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13055         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13056         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13057         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13058         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13059         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13060         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13061         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13062         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13063         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13064         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13065         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13066         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13067         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13070         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13071         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13072         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13073         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13074         * sysdeps/ieee754/s_lib_version.c: Likewise.
13075         * sysdeps/ieee754/s_matherr.c: Likewise.
13076         * sysdeps/ieee754/s_signgam.c: Likewise.
13077         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13078         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13079         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13080         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13081         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13082         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13083         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13084         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13085         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13086         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13087         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13088         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13089         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13090         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13091         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13092         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13093         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13094         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13095         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13096         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13097         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13098
13099 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13100
13101         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13102         * sunrpc/rpc_main.c: Likewise.
13103         * sunrpc/rpc_svcout.c: Likewise.
13104
13105 2012-03-09  David S. Miller  <davem@davemloft.net>
13106
13107         * include/math_private.h: New file.
13108
13109 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13110
13111         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13112         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13113         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13114         from <bits/socket_type.h>.
13115         (enum __socket_type): Don't define here.
13116         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13117         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13118         bits/socket_type.h.
13119
13120         [BZ #13566]
13121         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13122         checking __USE_GNU.
13123
13124         * Makerules ($(inst_includedir)/%.h): New rule.
13125         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13126         (install-others): Remove variable setting.
13127         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13128
13129 2012-03-08  Richard Henderson  <rth@twiddle.net>
13130
13131         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13132         from macro to inline function; merge with the
13133         !__LIBC_INTERNAL_MATH_INLINES version.
13134         (__ieee754_sqrtf): Likewise.
13135
13136         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13137         to inline function.
13138         (__rintf, __floor, __floorf): Likewise.
13139
13140         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13141         macro to inline function.
13142         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13143
13144         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13145         not <math/math_private.h>.
13146
13147 2012-03-08  David S. Miller  <davem@davemloft.net>
13148
13149         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13150         copyright year.
13151         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13152
13153 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13154
13155         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13156         normalization.
13157         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13158         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13159
13160 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13161
13162         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13163         be defined individually, they must be defined as a block.  Define
13164         S for printing a string instead of hidint the different by using a
13165         macro for adding the 'l'.
13166         * stdio-common/tst-fphex-wide.c: Adjust.
13167
13168 2012-03-07  Marek Polacek  <polacek@redhat.com>
13169
13170         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13171
13172 2012-03-08  Marek Polacek  <polacek@redhat.com>
13173
13174         [BZ #13806]
13175         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13176         * stdio-common/tst-fphex.c: Define a few macros to make the
13177         test reusable.  Use them.
13178         * stdio-common/tst-fphex-wide.c: New file.
13179
13180 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13181
13182         [BZ #6911]
13183         * manual/macros.texi (gnusystems): New macro.
13184         (nongnusystems): Likewise.
13185         (gnulinuxhurdsystems): Likewise.
13186         (gnuhurdsystems): Likewise..
13187         (gnulinuxsystems): Likewise.
13188         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13189         variants of the GNU system, not "GNU system".
13190         * manual/conf.texi: Likewise.
13191         * manual/errno.texi: Likewise.  Update example of errno macro
13192         expansion.
13193         * manual/filesys.texi: Likewise.
13194         (getumask): Document as specific to GNU/Hurd.
13195         * manual/install.texi: Likewise.  Reword some references to
13196         GNU/Linux.
13197         * manual/intro.texi: Likewise.
13198         * manual/io.texi: Likewise.
13199         (File Name Portability): Detail which constraints are inapplicable
13200         to all GNU systems and which are only inapplicable to GNU/Hurd.
13201         * manual/job.texi: Likewise.
13202         * manual/llio.texi: Likewise.
13203         (O_NOCTTY): Document as present on GNU/Linux.
13204         * manual/maint.texi: Likewise.
13205         * manual/memory.texi: Likewise.
13206         * manual/pattern.texi: Likewise.
13207         * manual/pipe.texi: Likewise.
13208         * manual/process.texi: Likewise.
13209         * manual/resource.texi: Likewise.
13210         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13211         child on GNU/Hurd.
13212         * manual/setjmp.texi: Likewise.
13213         * manual/signal.texi: Likewise.
13214         * manual/startup.texi: Likewise.
13215         * manual/stdio.texi: Likewise.
13216         * manual/terminal.texi: Likewise.
13217         (ONLCR): Document as POSIX.
13218         (OXTABS): Document availability on GNU/Linux as XTABS.
13219         (ONOEOT): Document availability separately from other bits.
13220         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13221         * manual/time.texi: Likewise.
13222         * manual/users.texi: Likewise.
13223         * INSTALL: Regenerated.
13224         * sysdeps/gnu/errlist.c: Regenerated.
13225
13226         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13227         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13228         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13229         puts.
13230         * configure: Regenerated.
13231
13232 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13233
13234         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13235         default includes instead of AC_HEADER_CHECK.
13236         * sysdeps/i386/configure: Regenerated.
13237
13238         [BZ #10716]
13239         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13240         * math/s_cacoshf.c (__cacoshf): Likewise.
13241         * math/s_cacoshl.c (__cacoshl): Likewise.
13242         * math/s_casinh.c (__casinh): Set signs of result from argument.
13243         * math/s_casinhf.c (__casinhf): Likewise.
13244         * math/s_casinhl.c (__casinhl): Likewise.
13245         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13246         (casinh_test): Add more tests.
13247         * sysdeps/i386/fpu/libm-test-ulps: Update.
13248         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13249
13250 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13251
13252         * po/zh_TW.po: Update from translation team.
13253
13254         * login/Makefile (distribute): Remove variable.
13255         * catgets/Makefile: Likewise.
13256         * mach/Makefile: Likewise.
13257         * malloc/Makefile: Likewise.
13258         * misc/Makefile: Likewise.
13259         * iconv/Makefile: Likewise.
13260         * nscd/Makefile: Likewise.
13261         * hurd/Makefile: Likewise.
13262         * manual/Makefile: Likewise.
13263         * locale/Makefile: Likewise.
13264         * intl/Makefile: Likewise.
13265         * conform/Makefile: Likewise.
13266         * nss/Makefile: Likewise.
13267         * time/Makefile: Likewise.
13268         * soft-fp/Makefile: Likewise.
13269         * dirent/Makefile: Likewise.
13270         * gmon/Makefile: Likewise.
13271         * po/Makefile: Likewise.
13272         * rt/Makefile: Likewise.
13273         * socket/Makefile: Likewise.
13274         * math/Makefile: Likewise.
13275         * signal/Makefile: Likewise.
13276         * debug/Makefile: Likewise.
13277         * elf/Makefile: Likewise.
13278         * timezone/Makefile: Likewise.
13279         * stdlib/Makefile: Likewise.
13280         * iconvdata/Makefile: Likewise.
13281         * sunrpc/Makefile: Likewise.
13282         * io/Makefile: Likewise.
13283         * argp/Makefile: Likewise.
13284         * inet/Makefile: Likewise.
13285         * hesiod/Makefile: Likewise.
13286         * grp/Makefile: Likewise.
13287         * csu/Makefile: Likewise.
13288         * wctype/Makefile: Likewise.
13289         * crypt/Makefile: Likewise.
13290         * libio/Makefile: Likewise.
13291         * string/Makefile: Likewise.
13292         * nis/Makefile: Likewise.
13293         * resolv/Makefile: Likewise.
13294         * stdio-common/Makefile: Likewise.
13295         * wcsmbs/Makefile: Likewise.
13296         * dlfcn/Makefile: Likewise.
13297         * posix/Makefile: Likewise.
13298
13299         [BZ #6959]
13300         * timezone/Makefile: Don't install timezone files, just the programs
13301         and scripts.
13302
13303 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13304
13305         * nss/databases.def: Add missing gshadow entry.
13306
13307         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13308
13309 2012-03-06  Marek Polacek  <polacek@redhat.com>
13310
13311         [BZ #13726]
13312         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13313         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13314         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13315         * stdio-common/tst-long-dbl-fphex.c: New file.
13316
13317 2012-03-06  David S. Miller  <davem@davemloft.net>
13318
13319         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13320         (set_obp_int): New function.
13321         (get_obp_int): New function.
13322         (__get_clockfreq_via_dev_openprom): Likewise.
13323         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13324         Avoid unused variable warnings on 'val' and use builtin_expect.
13325         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13326         __builtin_expect.
13327         (INLINE_CLONE_SYSCALL): Likewise.
13328
13329 2012-03-05  David S. Miller  <davem@davemloft.net>
13330
13331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13332
13333 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13334
13335         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13336
13337         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13338         only for |x| >= 40.
13339         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13340
13341 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13342
13343         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13344         Replace gettimeofday with __vdso_gettimeofday.
13345
13346         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13347         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13348         __vdso_clock_gettime and __vdso_getcpu.
13349
13350         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13351         time with __vdso_time.
13352
13353 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13354
13355         * manual/lang.texi (size_t): Note types to which size_t may be
13356         equivalent with the GNU C Library, but do not describe when
13357         differences between them are significant.
13358
13359 2012-03-05  Andreas Jaeger  <aj@suse.de>
13360
13361         * sysdeps/i386/fpu/libm-test-ulps: Update.
13362
13363 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13364
13365         [BZ #3976]
13366         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13367         (__ieee754_pow): Save and restore rounding mode and use
13368         round-to-nearest for main computations.
13369         * math/libm-test.inc (pow_test_tonearest): New function.
13370         (pow_test_towardzero): Likewise.
13371         (pow_test_downward): Likewise.
13372         (pow_test_upward): Likewise.
13373         (main): Call the new functions.
13374         * sysdeps/i386/fpu/libm-test-ulps: Update.
13375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13376
13377         [BZ #3976]
13378         * math/libm-test.inc (cosh_test_tonearest): New function.
13379         (cosh_test_towardzero): Likewise.
13380         (cosh_test_downward): Likewise.
13381         (cosh_test_upward): Likewise.
13382         (sinh_test_tonearest): Likewise.
13383         (sinh_test_towardzero): Likewise.
13384         (sinh_test_downward): Likewise.
13385         (sinh_test_upward): Likewise.
13386         (main): Call the new functions.
13387         * sysdeps/i386/fpu/libm-test-ulps: Update.
13388         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13389
13390 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13391
13392         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13393         default stack guard is set in last bytes.
13394         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13395
13396 2012-03-05  Kees Cook  <keescook@chromium.org>
13397
13398         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13399
13400         [BZ #13656]
13401         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13402         possibly allocate from heap instead of stack.
13403         * stdio-common/bug-vfprintf-nargs.c: New file.
13404         * stdio-common/Makefile (tests): Add nargs overflow test.
13405
13406 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13407
13408         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13409
13410 2012-03-03  Marek Polacek  <polacek@redhat.com>
13411
13412         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13413         * math/math_private.h: Likewise.
13414         * stdlib/tst-strtod.c: Likewise.
13415         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13416         * sysdeps/x86_64/bits/atomic.h: Likewise.
13417
13418 2012-03-02  David S. Miller  <davem@davemloft.net>
13419
13420         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13421         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13422         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13423         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13424         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13425         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13426         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13427         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13428
13429 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13430
13431         [BZ #13792]
13432         * manual/examples/README: New file, says the example source files
13433         can be used under GPL>=2.
13434         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13435         line containing just "*/".
13436         * manual/examples/add.c: Add copyright header (GPL>=2).
13437         * manual/examples/argp-ex1.c: Likewise.
13438         * manual/examples/argp-ex2.c: Likewise.
13439         * manual/examples/argp-ex3.c: Likewise.
13440         * manual/examples/argp-ex4.c: Likewise.
13441         * manual/examples/atexit.c: Likewise.
13442         * manual/examples/db.c: Likewise.
13443         * manual/examples/dir.c: Likewise.
13444         * manual/examples/dir2.c: Likewise.
13445         * manual/examples/execinfo.c: Likewise.
13446         * manual/examples/filecli.c: Likewise.
13447         * manual/examples/filesrv.c: Likewise.
13448         * manual/examples/fmtmsgexpl.c: Likewise.
13449         * manual/examples/genpass.c: Likewise.
13450         * manual/examples/inetcli.c: Likewise.
13451         * manual/examples/inetsrv.c: Likewise.
13452         * manual/examples/isockad.c: Likewise.
13453         * manual/examples/longopt.c: Likewise.
13454         * manual/examples/memopen.c: Likewise.
13455         * manual/examples/memstrm.c: Likewise.
13456         * manual/examples/mkfsock.c: Likewise.
13457         * manual/examples/mkisock.c: Likewise.
13458         * manual/examples/mygetpass.c: Likewise.
13459         * manual/examples/pipe.c: Likewise.
13460         * manual/examples/popen.c: Likewise.
13461         * manual/examples/rprintf.c: Likewise.
13462         * manual/examples/search.c: Likewise.
13463         * manual/examples/select.c: Likewise.
13464         * manual/examples/setjmp.c: Likewise.
13465         * manual/examples/sigh1.c: Likewise.
13466         * manual/examples/sigusr.c: Likewise.
13467         * manual/examples/stpcpy.c: Likewise.
13468         * manual/examples/strdupa.c: Likewise.
13469         * manual/examples/strftim.c: Likewise.
13470         * manual/examples/strncat.c: Likewise.
13471         * manual/examples/subopt.c: Likewise.
13472         * manual/examples/swapcontext.c: Likewise.
13473         * manual/examples/termios.c: Likewise.
13474         * manual/examples/testopt.c: Likewise.
13475         * manual/examples/testpass.c: Likewise.
13476         * manual/examples/timeval_subtract.c: Likewise.
13477
13478         [BZ #13792]
13479         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13480         function to ...
13481         * manual/timeval_subtract.c.texi: ... here, new file.
13482
13483 2012-03-02  David S. Miller  <davem@davemloft.net>
13484
13485         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13486
13487 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13488
13489         [BZ #3976]
13490         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13491         (__sin): Save and restore rounding mode and use round-to-nearest
13492         for all computations.
13493         (__cos): Save and restore rounding mode and use round-to-nearest
13494         for all computations.
13495         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13496         <fenv.h>.
13497         (tan): Save and restore rounding mode and use round-to-nearest for
13498         all computations.
13499         * math/libm-test.inc (cos_test_tonearest): New function.
13500         (cos_test_towardzero): Likewise.
13501         (cos_test_downward): Likewise.
13502         (cos_test_upward): Likewise.
13503         (sin_test_tonearest): Likewise.
13504         (sin_test_towardzero): Likewise.
13505         (sin_test_downward): Likewise.
13506         (sin_test_upward): Likewise.
13507         (tan_test_tonearest): Likewise.
13508         (tan_test_towardzero): Likewise.
13509         (tan_test_downward): Likewise.
13510         (tan_test_upward): Likewise.
13511         (main): Call the new functions.
13512         * sysdeps/i386/fpu/libm-test-ulps: Update.
13513         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13514
13515         [BZ #10135]
13516         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13517         small n, then large n, before computing and testing k+n.
13518         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13519         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13520         Likewise.
13521         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13522         Likewise.
13523         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13524         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13525         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13526         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13527         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13528         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13529         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13530         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13531         * math/libm-test.inc (scalbn_test): Add more tests.
13532         (scalbln_test): Likewise.
13533
13534         * manual/filesys.texi (mode_t): Describe constraints on size and
13535         signedness, not exact equivalence to a particular type.
13536         (ino_t): Likewise.
13537         (ino64_t): Likewise.
13538         (dev_t): Likewise.
13539         (nlink_t): Likewise.
13540         (blkcnt_t): Likewise.
13541         (blkcnt64_t): Likewise.
13542         * manual/llio.texi (off_t): Likewise.
13543
13544         [BZ #3976]
13545         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13546         (__ieee754_exp): Save and restore rounding mode and use
13547         round-to-nearest for all computations.
13548         * math/libm-test.inc (exp_test_tonearest): New function.
13549         (exp_test_towardzero): Likewise.
13550         (exp_test_downward): Likewise.
13551         (exp_test_upward): Likewise.
13552         (main): Call the new functions.
13553         * sysdeps/i386/fpu/libm-test-ulps: Update.
13554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13555
13556 2012-03-01  Chris Demetriou  <cgd@google.com>
13557
13558         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13559         have predictable order.
13560
13561 2012-03-01  David S. Miller  <davem@davemloft.net>
13562
13563         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13564
13565         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13566         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13567         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13568         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13569
13570         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13571         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13572         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13574         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13575         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13576         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13577         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13578         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13579
13580         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13581
13582         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13583         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13584         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13585
13586         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13587         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13588         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13589         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13590         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13591         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13592         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13593         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13594         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13595         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13596         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13597         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13598         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13599         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13600         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13601         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13602         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13603         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13604         * sysdeps/sparc/elf/configure: Regenerated.
13605
13606 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13607
13608         * configure.in (AS, LD): Require binutils 2.20 or later.
13609         * configure: Regenerated.
13610         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13611         as required minimum version.
13612         * INSTALL: Regenerated.
13613
13614         [BZ #2541]
13615         [BZ #4108]
13616         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13617         before squaring exponent.
13618         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13619         bottom long double and 27 bits of top long double before squaring
13620         exponent.
13621         * math/libm-test.inc (erfc_test): Add more tests.
13622         * sysdeps/i386/fpu/libm-test-ulps: Update.
13623         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13624         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13625
13626 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13627
13628         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13629         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13630         containing bit-fields.
13631         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13632         * soft-fp/single.h (_FP_UNION_S): Likewise.
13633         * soft-fp/double.h (_FP_UNION_D): Likewise.
13634
13635 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13636
13637         [BZ #13786]
13638         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13639         not include ../strcmp.S.
13640         [USE_AS_STRNCASECMP_L]: Likewise.
13641         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13642         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13643         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13644         (__strncasecmp_l_ia32): Define as alias to
13645         __strncasecmp_l_nonascii.
13646
13647         [BZ #5794]
13648         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13649         * sysdeps/i386/fpu/libm-test-ulps: Update.
13650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13651
13652         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13653         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13654
13655 2012-02-29  Jeff Law  <law@redhat.com>
13656
13657         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13658         out of bounds read.
13659
13660 2012-02-29  Marek Polacek  <polacek@redhat.com>
13661
13662         [BZ #13706]
13663         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13664         * elf/Makefile: Add rules to run tst-unused-dep.out.
13665
13666 2012-02-28  David S. Miller  <davem@davemloft.net>
13667
13668         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13669         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13670         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13671         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13672         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13673         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13674
13675 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13676
13677         * math/libm-test.inc (llround_test): Move one test from
13678         lround_test.  Use TEST_f_L in moved test.
13679         (lround_test): Move misplaced test to llround_test.  Add testcase
13680         from bug 2561.
13681
13682 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13683
13684         * sysdeps/x86_64/fpu/e_expf.S: New file.
13685         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13686
13687 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13688
13689         [BZ #13637]
13690         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13691         of remain_len that may cause incomplete multi-byte character and
13692         false match.
13693         * posix/bug-regex33.c: New file.
13694         * posix/Makefile (tests): Add bug-regex33.
13695
13696 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13697
13698         * manual/macros.texi: New file.
13699         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13700         * manual/libc.texinfo: Include macros.texi.
13701         * manual/creatute.texi: Likewise.
13702         * manual/install.texi: Likewise.
13703         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13704         @glibcadj{} in references to the GNU C Library.
13705         * manual/charset.texi: Likewise.
13706         * manual/conf.texi: Likewise.
13707         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13708         when not using those macros.
13709         * manual/creature.texi: Likewise.
13710         * manual/crypt.texi: Likewise.
13711         * manual/errno.texi: Likewise.
13712         * manual/filesys.texi: Likewise.
13713         * manual/header.texi: Likewise.
13714         * manual/install.texi: Likewise.
13715         * manual/intro.texi: Likewise.
13716         * manual/io.texi: Likewise.
13717         * manual/job.texi: Likewise.
13718         * manual/lang.texi: Likewise.
13719         * manual/libc.texiinfo: Likewise.
13720         * manual/llio.texi: Likewise.
13721         * manual/locale.texi: Likewise.
13722         * manual/maint.texi: Likewise.
13723         * manual/math.texi: Likewise.
13724         * manual/memory.texi: Likewise.
13725         * manual/message.texi: Likewise.
13726         * manual/nss.texi: Likewise.
13727         * manual/pattern.texi: Likewise.
13728         * manual/process.texi: Likewise.
13729         * manual/resource.texi: Likewise.
13730         * manual/search.texi: Likewise.
13731         * manual/setjmp.texi: Likewise.
13732         * manual/signal.texi: Likewise.
13733         * manual/socket.texi: Likewise.
13734         * manual/startup.texi: Likewise.
13735         * manual/stdio.texi: Likewise.
13736         * manual/string.texi: Likewise.
13737         * manual/sysinfo.texi: Likewise.
13738         * manual/syslog.texi: Likewise.
13739         * manual/terminal.texi: Likewise.
13740         * manual/time.texi: Likewise.
13741         * manual/users.texi: Likewise.
13742         * INSTALL: Regenerated.
13743         * NOTES: Regenerated.
13744         * sysdeps/gnu/errlist.c: Regenerated.
13745
13746 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13747
13748         * include/dirent.h: Include <dirstream.h> before
13749         <dirent/dirent.h>.
13750
13751 2012-02-28  David S. Miller  <davem@davemloft.net>
13752
13753         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13754         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13755         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13756         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13757
13758 2012-02-27  David S. Miller  <davem@davemloft.net>
13759
13760         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13762         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13763         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13764
13765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13766         frame pointer instead of stack pointer relative arg slot.
13767         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13768         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13769         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13770
13771 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13772
13773         [BZ #3992]
13774         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13775
13776 2012-02-27  David S. Miller  <davem@davemloft.net>
13777
13778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13781         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13782         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13783         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13784         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13785         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13786
13787 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13788
13789         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13790         later.  Allow versions 5-9.
13791         * configure: Regenerated.
13792         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13793         required minimum version and 4.6 as recommended version.  Do not
13794         mention bugs in GCC 2.7 and 2.8.
13795         * INSTALL: Regenerated.
13796
13797 2012-02-27  David S. Miller  <davem@davemloft.net>
13798
13799         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13801         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13802         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13803         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13804         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13805         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13806         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13807
13808         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13809         manipulate bits before adding and subtracting TWO112[sx].
13810         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13811
13812 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13813
13814         [BZ #13775]
13815         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13816         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13817         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13818         being in POSIX, because they are in 1003.1-2008.
13819
13820         * rt/tst-aio.c: Include <fcntl.h>.
13821         * rt/tst-aio7.c: Likewise.
13822         * rt/tst-aio64.c: Likewise.
13823
13824         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13825
13826 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13827
13828         * manual/install.texi (--with-headers): Describe headers as
13829         interface headers, not private headers.
13830         (Specific advice for GNU/Linux systems): Describe use of headers
13831         from "make headers_install", not private headers from older
13832         kernels.
13833         * INSTALL: Regenerated.
13834         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13835         Change to 2.6.19.
13836         * sysdeps/unix/sysv/linux/configure: Regenerated.
13837
13838         * manual/llio.texi (fclean): Remove documentation.
13839
13840         * manual/Makefile (libc-texi-generated): New variable.  Include
13841         version.texi.
13842         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13843         $(libc-texi-generated), not duplicated list of files.
13844         (version.texi, stamp-version): New rules.
13845         (realclean): Remove $(libc-texi-generated), not individual files
13846         from that list.  Do not remove dir-add.texinfo.
13847         * manual/libc.texinfo: Comment out uses of edition numbers and
13848         references to printed manual.  Remove last-updated dates.
13849         (EDITION): Comment out.
13850         (ISBN): Likewise.
13851         (VERSION, UPDATED): Remove.
13852         (version.texi): Include.
13853
13854 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13855
13856         * sysdeps/posix/spawni.c: Include <signal.h>.
13857         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13858         * sysdeps/pthread/aio_fsync.c: Likewise.
13859
13860 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13861
13862         * conform/Makefile (tests): Run only when not cross-compiling and
13863         when fast-check is not defined.
13864
13865         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13866         * conform/data/limits.h-data: Fixes for POSIX2008.
13867         * conform/run-conformtest.sh: Run all tests.
13868         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13869         headers.
13870         * include/bits/dlfcn.h: Likewise.
13871         * include/langinfo.h: Likewise.
13872         * include/monetary.h: Likewise.
13873         * include/sys/poll.h: Likewise.
13874
13875         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13876         for __USE_GNU.
13877         * posix/spawn.h: Define __need_sigset_t.
13878         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13879         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13880         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13881         to get sigevent_t only.
13882         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13883         only for __USE_GNU.
13884         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13885         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13886         process_vm_writev only for __USE_GNU.
13887         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13888
13889         * conform/Makefile: For now ignore errors from run-conformtest.
13890         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13891         POSIX to avoid namespace pollution.  Don't prepend headers.
13892         * conform/data/aio.h-data: Fixes for POSIX testing.
13893         * conform/data/fcntl.h-data: Likewise.
13894         * conform/data/glob.h-data: Likewise.
13895         * conform/data/grp.h-data: Likewise.
13896         * conform/data/pthread.h-data: Likewise.
13897         * conform/data/pwd.h-data: Likewise.
13898         * conform/data/signal.h-data: Likewise.
13899         * conform/data/spawn.h-data: Likewise.
13900         * conform/data/stdio.h-data: Likewise.
13901         * conform/data/stdlib.h-data: Likewise.
13902         * conform/data/stropts.h-data: Likewise.
13903         * conform/data/sys/mman.h-data: Likewise.
13904         * conform/data/sys/stat.h-data: Likewise.
13905         * conform/data/sys/types.h-data: Likewise.
13906         * conform/data/sys/wait.h-data: Likewise.
13907         * conform/data/time.h-data: Likewise.
13908         * conform/data/unistd.h-data: Likewise.
13909         * conform/data/utime.h-data: Likewise.
13910
13911         * io/sys/stat.h: fchmod was always in POSIX.
13912         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13913         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13914         * rt/aio.h: Define __need_timespec before including <time.h>.
13915         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13916         struct.  Add forward declaration of pthread_attr_t and use it in
13917         sigevent.
13918         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13919         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13920         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13921         always remove CLK_TCK definition.
13922
13923 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13924
13925         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13926
13927 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13928
13929         * conform/run-conformtest.sh: New file.
13930         * conform/Makefile: Run run-conformtest for tests.
13931         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13932         support.
13933
13934         * conform/data/uchar.h-data: New file.
13935         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13936         * conform/data/arpa/inet.h-data: Likewise.
13937         * conform/data/assert.h-data: Likewise.
13938         * conform/data/complex.h-data: Likewise.
13939         * conform/data/cpio.h-data: Likewise.
13940         * conform/data/ctype.h-data: Likewise.
13941         * conform/data/dirent.h-data: Likewise.
13942         * conform/data/dlfcn.h-data: Likewise.
13943         * conform/data/errno.h-data: Likewise.
13944         * conform/data/fcntl.h-data: Likewise.
13945         * conform/data/float.h-data: Likewise.
13946         * conform/data/fmtmsg.h-data: Likewise.
13947         * conform/data/fnmatch.h-data: Likewise.
13948         * conform/data/ftw.h-data: Likewise.
13949         * conform/data/glob.h-data: Likewise.
13950         * conform/data/grp.h-data: Likewise.
13951         * conform/data/iconv.h-data: Likewise.
13952         * conform/data/inttypes.h-data: Likewise.
13953         * conform/data/langinfo.h-data: Likewise.
13954         * conform/data/libgen.h-data: Likewise.
13955         * conform/data/limits.h-data: Likewise.
13956         * conform/data/locale.h-data: Likewise.
13957         * conform/data/math.h-data: Likewise.
13958         * conform/data/monetary.h-data: Likewise.
13959         * conform/data/mqueue.h-data: Likewise.
13960         * conform/data/ndbm.h-data: Likewise.
13961         * conform/data/net/if.h-data: Likewise.
13962         * conform/data/netdb.h-data: Likewise.
13963         * conform/data/netinet/in.h-data: Likewise.
13964         * conform/data/nl_types.h-data: Likewise.
13965         * conform/data/poll.h-data: Likewise.
13966         * conform/data/pthread.h-data: Likewise.
13967         * conform/data/pwd.h-data: Likewise.
13968         * conform/data/regex.h-data: Likewise.
13969         * conform/data/sched.h-data: Likewise.
13970         * conform/data/search.h-data: Likewise.
13971         * conform/data/semaphore.h-data: Likewise.
13972         * conform/data/setjmp.h-data: Likewise.
13973         * conform/data/signal.h-data: Likewise.
13974         * conform/data/spawn.h-data: Likewise.
13975         * conform/data/stdarg.h-data: Likewise.
13976         * conform/data/stdio.h-data: Likewise.
13977         * conform/data/stdlib.h-data: Likewise.
13978         * conform/data/string.h-data: Likewise.
13979         * conform/data/strings.h-data: Likewise.
13980         * conform/data/stropts.h-data: Likewise.
13981         * conform/data/sys/ipc.h-data: Likewise.
13982         * conform/data/sys/mman.h-data: Likewise.
13983         * conform/data/sys/msg.h-data: Likewise.
13984         * conform/data/sys/resource.h-data: Likewise.
13985         * conform/data/sys/select.h-data: Likewise.
13986         * conform/data/sys/sem.h-data: Likewise.
13987         * conform/data/sys/shm.h-data: Likewise.
13988         * conform/data/sys/socket.h-data: Likewise.
13989         * conform/data/sys/stat.h-data: Likewise.
13990         * conform/data/sys/statvfs.h-data: Likewise.
13991         * conform/data/sys/time.h-data: Likewise.
13992         * conform/data/sys/timeb.h-data: Likewise.
13993         * conform/data/sys/times.h-data: Likewise.
13994         * conform/data/sys/types.h-data: Likewise.
13995         * conform/data/sys/uio.h-data: Likewise.
13996         * conform/data/sys/un.h-data: Likewise.
13997         * conform/data/sys/utsname.h-data: Likewise.
13998         * conform/data/sys/wait.h-data: Likewise.
13999         * conform/data/syslog.h-data: Likewise.
14000         * conform/data/tar.h-data: Likewise.
14001         * conform/data/termios.h-data: Likewise.
14002         * conform/data/utime.h-data: Likewise.
14003         * conform/data/utmpx.h-data: Likewise.
14004         * conform/data/varargs.h-data: Likewise.
14005         * conform/data/wchar.h-data: Likewise.
14006         * conform/data/wctype.h-data: Likewise.
14007         * conform/data/wordexp.h-data: Likewise.
14008
14009         * include/stropts.h: New file.
14010         * include/uchar.h: New file.
14011         * include/aio.h: Changes to allow conformtest.pl to use the headers.
14012         * include/assert.h: Likewise.
14013         * include/ctype.h: Likewise.
14014         * include/dirent.h: Likewise.
14015         * include/dlfcn.h: Likewise.
14016         * include/fcntl.h: Likewise.
14017         * include/fnmatch.h: Likewise.
14018         * include/glob.h: Likewise.
14019         * include/grp.h: Likewise.
14020         * include/libio.h: Likewise.
14021         * include/locale.h: Likewise.
14022         * include/math.h: Likewise.
14023         * include/net/if.h: Likewise.
14024         * include/netdb.h: Likewise.
14025         * include/netinet/in.h: Likewise.
14026         * include/pthread.h: Likewise.
14027         * include/pwd.h: Likewise.
14028         * include/regex.h: Likewise.
14029         * include/sched.h: Likewise.
14030         * include/search.h: Likewise.
14031         * include/setjmp.h: Likewise.
14032         * include/signal.h: Likewise.
14033         * include/stdio.h: Likewise.
14034         * include/stdlib.h: Likewise.
14035         * include/string.h: Likewise.
14036         * include/sys/cdefs.h: Likewise.
14037         * include/sys/mman.h: Likewise.
14038         * include/sys/msg.h: Likewise.
14039         * include/sys/resource.h: Likewise.
14040         * include/sys/select.h: Likewise.
14041         * include/sys/socket.h: Likewise.
14042         * include/sys/stat.h: Likewise.
14043         * include/sys/statvfs.h: Likewise.
14044         * include/sys/time.h: Likewise.
14045         * include/sys/times.h: Likewise.
14046         * include/sys/uio.h: Likewise.
14047         * include/sys/utsname.h: Likewise.
14048         * include/sys/wait.h: Likewise.
14049         * include/termios.h: Likewise.
14050         * include/time.h: Likewise.
14051         * include/ulimit.h: Likewise.
14052         * include/unistd.h: Likewise.
14053         * include/utime.h: Likewise.
14054         * include/wchar.h: Likewise.
14055         * include/wctype.h: Likewise.
14056         * include/wordexp.h: Likewise.
14057
14058         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14059
14060         * time/time.h: TIME_UTC must be a macro.
14061         Make timespec_get available for ISO C11 only as well.
14062
14063 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14064
14065         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14066         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14067
14068 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14069
14070         * configure.in: Use -o not -a in test for unsupported multi-arch.
14071
14072 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14073
14074         * manual/texinfo.tex: Update to version 2012-01-19.16.
14075
14076 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14077
14078         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14079
14080 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14081
14082         [BZ #13738]
14083         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14084         * manual/fdl-1.3.texi: New file.
14085         * manual/fdl-1.1.texi: File removed.
14086
14087         [BZ #13738]
14088         * manual/libc.texinfo (FDL_VERSION): New @set.
14089         Use it for mention of FDL in cover text.
14090         (Documentation License): Use it in @include file name.
14091
14092 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14093             Roland McGrath  <roland@hack.frob.com>
14094
14095         [BZ #5461]
14096         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14097         not LONG_LONG_MAX and LONG_LONG_MIN.
14098         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14099         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14100         name.
14101         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14102
14103 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14104
14105         [BZ #2547]
14106         [BZ #11365]
14107         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14108         manipulate bits before adding and subtracting TWO23[sx].
14109         * math/libm-test.inc (nearbyint_test): Add more tests.
14110
14111 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14112
14113         [BZ #2548]
14114         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14115         bits before adding and subtracting TWO23[sx].
14116         * math/libm-test.inc (rint_test): Add more tests.
14117         (rint_test_tonearest): Likewise.
14118         (rint_test_towardzero): Likewise.
14119         (rint_test_downward): Likewise.
14120         (rint_test_upward: Likewise.
14121
14122 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14123
14124         [BZ #10110]
14125         * include/stdc-predef.h: New file.  Extracted from features.h.
14126         * include/features.h: Include stdc-predef.h.
14127         * Makefile (headers): Add stdc-predef.h.
14128         * CONFORMANCE (Compiler limitations): Update.
14129
14130 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14131
14132         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14133
14134 2012-02-21  David S. Miller  <davem@davemloft.net>
14135
14136         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14137         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14138
14139 2012-02-20  David S. Miller  <davem@davemloft.net>
14140
14141         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14142         using a normal save/restore sequence, rather than allocating a
14143         dummy stack frame just to store a frame pointer and restore.
14144         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14145
14146 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14147
14148         * manual/install.texi: Fix stray word in line-wrapped comment.
14149
14150 2012-02-20  David S. Miller  <davem@davemloft.net>
14151
14152         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14153         both binutils and gcc support GOTDATA.
14154
14155         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14156         "rd %pc" in the PIC register setup sequences.
14157
14158         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14159         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14160         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14161         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14162         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14163         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14164         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14165         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14166         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14167         (SYSCALL_ERROR_HANDLER): Likewise.
14168         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14169         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14170         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14171         (SYSCALL_ERROR_HANDLER): Likewise.
14172
14173         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14174         (HAVE_GCC_GOTDATA): New.
14175         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14176         relocation support in both binutils and gcc.
14177         * sysdeps/sparc/elf/configure: Regenerate.
14178
14179         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14180         * sysdeps/sparc/sparc32/elf/configure: Delete.
14181         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14182         * sysdeps/sparc/sparc64/elf/configure: Delete.
14183         * sysdeps/sparc/elf/configure.in: New file.
14184         * sysdeps/sparc/elf/configure: Generate.
14185
14186         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14187         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14188         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14189         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14190         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14191
14192 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14193
14194         * manual/install.texi: Do not mention specific glibc version
14195         numbers.
14196         * manual/libc.texinfo (VERSION, UPDATED): Update.
14197         (@copying): Use @copyright{} and range of years.
14198
14199 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14200
14201         [BZ #13695]
14202         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14203         [crti.S not in sysdirs] (generated): Do not append.
14204         [crti.S not in sysdirs] (omit-deps): Likewise.
14205         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14206         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14207         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14208         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14209         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14210         Likewise.
14211         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14212         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14213         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14214         * csu/defs.awk: Remove file.
14215         * sysdeps/generic/initfini.c: Likewise.
14216         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14217         variable.
14218         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14219         Likewise.
14220
14221 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14222
14223         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14224         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14225         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14226         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14227         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14228         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14229         <bits/epoll.h>.
14230         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14231         (__EPOLL_PACKED): Define to empty if not defined by
14232         <bits/epoll.h>.
14233         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14234         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14235         bits/epoll.h.
14236
14237 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14238
14239         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14240         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14241         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14242         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14243         <bits/timerfd.h>.
14244         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14245         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14246         bits/timerfd.h.
14247
14248 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14249
14250         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14251         in C locale.
14252         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14253         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14254         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14256
14257 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14258
14259         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14260         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14261
14262 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14263
14264         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14265         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14266         defined.
14267         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14268         Likewise.
14269         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14270         entry for 2.16.
14271
14272 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14273
14274         * math/w_acos.c: Use non-signaling floating-point comparisons.
14275         * math/w_acosf.c: Likewise.
14276         * math/w_acosh.c: Likewise.
14277         * math/w_acoshf.c: Likewise.
14278         * math/w_acoshl.c: Likewise.
14279         * math/w_acosl.c: Likewise.
14280         * math/w_asin.c: Likewise.
14281         * math/w_asinf.c: Likewise.
14282         * math/w_asinl.c: Likewise.
14283         * math/w_atanh.c: Likewise.
14284         * math/w_atanhf.c: Likewise.
14285         * math/w_atanhl.c: Likewise.
14286         * math/w_exp2.c: Likewise.
14287         * math/w_exp2f.c: Likewise.
14288         * math/w_exp2l.c: Likewise.
14289         * math/w_j0.c: Likewise.
14290         * math/w_j0f.c: Likewise.
14291         * math/w_j0l.c: Likewise.
14292         * math/w_j1.c: Likewise.
14293         * math/w_j1f.c: Likewise.
14294         * math/w_j1l.c: Likewise.
14295         * math/w_jn.c: Likewise.
14296         * math/w_jnf.c: Likewise.
14297         * math/w_log.c: Likewise.
14298         * math/w_log10.c: Likewise.
14299         * math/w_log10f.c: Likewise.
14300         * math/w_log10l.c: Likewise.
14301         * math/w_log2.c: Likewise.
14302         * math/w_log2f.c: Likewise.
14303         * math/w_log2l.c: Likewise.
14304         * math/w_logf.c: Likewise.
14305         * math/w_logl.c: Likewise.
14306         * math/w_sqrt.c: Likewise.
14307         * math/w_sqrtf.c: Likewise.
14308         * math/w_sqrtl.c: Likewise.
14309         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14310         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14311         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14312         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14313         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14314
14315 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14316
14317         [BZ #9739]
14318         * manual/string.texi (strnlen): Use correct parameter name in
14319         equivalent expression.
14320
14321 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14322
14323         [BZ #11174]
14324         * manual/users.texi (seteuid): Consistently use neweuid for
14325         argument name.
14326
14327 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14328
14329         [BZ #13704]
14330         * manual/nss.texi (Services in the NSS configuration): Correct
14331         list of services in example configuration file.
14332
14333 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14334
14335         [BZ #11322]
14336         * manual/arith.texi: Remove statements about negative zero
14337         behaving identically to zero.
14338
14339 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14340
14341         [BZ #5993]
14342         * manual/install.texi: Do not document upgrading from libc5.
14343
14344 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14345
14346         [BZ #4596]
14347         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14348
14349 2012-02-18  David S. Miller  <davem@davemloft.net>
14350
14351         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14352         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14353         %o7 across the call.
14354         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14355         instead.
14356         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14357         SETUP_PIC_REG_LEAF.
14358         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14359         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14360         * sysdeps/sparc/crtn.S: Likewise.
14361
14362 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14363
14364         * aout/Makefile: Remove.
14365
14366 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14367
14368         [BZ #13058]
14369         * manual/examples/argp-ex1.c (main): Format definition in GNU
14370         style.
14371         * manual/examples/argp-ex2.c (main): Likewise.
14372         * manual/examples/argp-ex3.c (main): Likewise.
14373         * manual/examples/argp-ex4.c (main): Likewise.
14374         * manual/examples/longopt.c (main): Use new-style prototype
14375         definition.
14376         * manual/examples/strncat.c (main): Specify return type and use
14377         (void) for arguments.
14378         * manual/examples/subopt.c (main): Use char **argv argument.
14379
14380 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14381
14382         [BZ #5077]
14383         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14384         rounding modes.
14385
14386 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14387
14388         [BZ #6907]
14389         * manual/string.texi (strchr): Change when strchrnul is
14390         recommended.
14391
14392 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14393
14394         [BZ #174]
14395         * manual/locale.texi (setlocale): Document LOCPATH.
14396
14397 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14398
14399         [BZ #10210]
14400         * manual/process.texi (execle): Move @dots{} before last argument.
14401
14402 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14403
14404         [BZ #12047]
14405         * manual/charset.texi (Generic Charset Conversion): Fix typo
14406         (LC_TYPE -> LC_CTYPE).
14407
14408 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14409
14410         [BZ #5805]
14411         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14412         (scalbnf): Likewise.
14413         (scalbnl): Likewise.
14414         (scalbln): Likewise.
14415         (scalblnf): Likewise.
14416         (scalblnl): Likewise.
14417         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14418         (vwarnx): Likewise.
14419         (verr): Likewise.
14420         (verrx): Likewise.
14421         * manual/filesys.texi (telldir): Use braces around return type.
14422         * manual/llio.texi (mmap): Add space after comma.
14423         (mmap64): Likewise.
14424         * manual/math.texi (jn): Use @var{} on parameter names.
14425         (jnf): Likewise.
14426         (jnl): Likewise.
14427         (yn): Likewise.
14428         (ynf): Likewise.
14429         (ynl): Likewise.
14430         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14431         line.
14432         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14433         "...".
14434         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14435         (sched_get_priority_max): Likewise.
14436         * manual/signal.texi (sigvec): Add space after comma.
14437         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14438         names.
14439         (if_indextoname): Likewise.
14440         (if_freenameindex): Likewise.
14441         (sendto): Use ',' instead of '.' in prototype.
14442         * manual/startup.texi (syscall): Use @dots{} instead of literal
14443         "...".
14444         * manual/stdio.texi (__fpending): Separate initial words of
14445         paragraph from @deftypefun line.
14446         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14447         "...".
14448         (vsyslog): Use @var{} on parameter names.
14449         * manual/terminal.texi (stty): Use @var{} on parameter names.
14450         * manual/users.texi (getutmp): Use @var{} on parameter names.
14451         (getutmpx): Likewise.
14452
14453 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14454
14455         [BZ #6884]
14456         * manual/stdio.texi (fopen): Fix typos in description of
14457         ",ccs=STRING".
14458
14459 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14460
14461         [BZ #4026]
14462         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14463         get clock_id definition.
14464
14465 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14466
14467         [BZ #4822]
14468         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14469         (madvise): Cast every argument to void on its own.
14470
14471 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14472
14473         [BZ #9902]
14474         * manual/startup.texi (Exit Status): Fix typo.
14475
14476 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14477
14478         [BZ #10140]
14479         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14480         * manual/examples/argp-ex2.c: Likewise.
14481         * manual/examples/argp-ex3.c: Likewise.
14482
14483 2012-02-16  Richard Henderson  <rth@redhat.com>
14484
14485         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14486         * sysdeps/s390/s390-32/initfini.c: Remove.
14487         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14488         * sysdeps/s390/s390-64/initfini.c: Remove.
14489
14490 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14491
14492         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14493         compiler output for sysdeps/generic/initfini.c.
14494         * sysdeps/sh/elf/initfini.c: Remove file.
14495
14496 2012-02-16  David S. Miller  <davem@davemloft.net>
14497
14498         [BZ #11494]
14499         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14500
14501         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14502         * sysdeps/sparc/crti.S: New file.
14503         * sysdeps/sparc/crtn.S: New file.
14504         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14505         * sysdeps/sparc/sparc64/Makefile: Likewise.
14506
14507 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14508
14509         [BZ #3335]
14510         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14511
14512 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14513
14514         [BZ #4822]
14515         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14516
14517         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14518         (write, read, close): Likewise.
14519         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14520
14521 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14522
14523         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14524         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14525         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14526         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14527         <bits/signalfd.h>.
14528         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14529         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14530         bits/signalfd.h.
14531
14532 2012-02-14  Marek Polacek  <polacek@redhat.com>
14533
14534         * sysdeps/x86_64/crti.S: New file.
14535         * sysdeps/x86_64/crtn.S: New file.
14536         * sysdeps/x86_64/elf/initfini.c: Remove file.
14537
14538 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14539
14540         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14541         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14542         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14543         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14544         <bits/inotify.h>.
14545         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14546         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14547         bits/inotify.h.
14548
14549 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14550
14551         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14552         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14553         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14554         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14555         <bits/eventfd.h>.
14556         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14557         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14558         bits/eventfd.h.
14559
14560 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14561
14562         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14563         __feraiseexcept instead of feraiseexcept.
14564
14565         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14566         nanosleep invocations.
14567         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14568         strings, and add error checking for a nanosleep invocations.
14569
14570 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14571
14572         Replace FSF snail mail address with URLs, as per GNU coding standards.
14573         Most of the snail mail addresses were wrong anyway, and omitting
14574         them makes the source code easier to maintain.  Almost all of the
14575         changes are to license notices and to locale LC_IDENTIFICATION
14576         addresses, except for this one:
14577         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14578         not its snail mail address.
14579
14580 2012-02-09  Richard Henderson  <rth@twiddle.net>
14581
14582         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14583         of kernel-features.h.
14584
14585         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14586
14587 2012-02-08  Marek Polacek  <polacek@redhat.com>
14588
14589         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14590         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14591         * sysdeps/gnu/_G_config.h: Likewise.
14592         * sysdeps/generic/_G_config.h: Likewise.
14593
14594 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14595
14596         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14597         tests.
14598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14599
14600         * sysdeps/powerpc/powerpc32/crti.S: New file.
14601         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14602         * sysdeps/powerpc/powerpc64/crti.S: New file.
14603         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14604
14605         * Makeconfig (have-initfini): Don't set.
14606         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14607         * configure.in (nopic_initfini): Don't substitute.
14608         * config.h.in (HAVE_INITFINI): Don't #undef.
14609         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14610         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14611
14612 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14613
14614         Support crti.S and crtn.S provided directly by architectures.
14615         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14616         [crti.S in sysdirs] (omit-deps): Likewise.
14617         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14618         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14619         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14620         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14621         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14622         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14623         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14624         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14625         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14626         compiler output for sysdeps/generic/initfini.c.
14627         * sysdeps/i386/elf/Makefile: Remove file.
14628         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14629
14630 2012-02-07  Marek Polacek  <polacek@redhat.com>
14631
14632         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14633         * sysdeps/gnu/_G_config.h: Likewise.
14634         * sysdeps/mach/hurd/_G_config.h: Likewise.
14635
14636 2012-02-07  Marek Polacek  <polacek@redhat.com>
14637
14638         * math/Makefile (tests): Add tst-CMPLX2.
14639         * math/tst-CMPLX2.c: New file.
14640
14641 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14642
14643         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14644
14645         * math/libm-test.inc (jn_test): Add missing L suffix.
14646
14647 2012-02-06  Marek Polacek  <polacek@redhat.com>
14648
14649         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14650         * sysdeps/i386/fpu/e_powf.S: Likewise.
14651         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14652         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14653         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14654         * sysdeps/i386/fpu/e_pow.S: Likewise.
14655         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14656         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14657         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14658         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14659         * sysdeps/i386/fpu/e_log2.S: Likewise.
14660         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14661         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14662         * sysdeps/i386/fpu/e_powl.S: Likewise.
14663         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14664         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14665         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14666         * sysdeps/i386/fpu/e_logl.S: Likewise.
14667         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14668         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14669         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14670         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14671         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14672         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14673         * sysdeps/i386/fpu/e_log.S: Likewise.
14674         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14675         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14676         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14677         * sysdeps/i386/fpu/e_logf.S: Likewise.
14678         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14679         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14680         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14681         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14682         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14683         * sysdeps/i386/fpu/e_log10.S: Likewise.
14684         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14685         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14686         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14687         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14688         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14689         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14690         * sysdeps/i386/asm-syntax.h: Likewise.
14691         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14692         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14693         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14694         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14695         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14696         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14697         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14698         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14699         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14700         * sysdeps/powerpc/sysdep.h: Likewise.
14701         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14702         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14703
14704 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14705
14706         [BZ #411]
14707         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14708
14709 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14710
14711         * sysdeps/i386/sysdep.h: Include <features.h>.
14712         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14713         version.
14714
14715 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14716
14717         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14718         Define.
14719         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14720         LOAD_PIC_REG_STR.
14721
14722 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14723
14724         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14725         (SETUP_PIC_REG): Use GET_PC_THUNK.
14726         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14727         macro.
14728
14729 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14730
14731         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14732         for non-PIC compilation.
14733         (SETUP_PIC_REG): Add .p2align directive.
14734         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14735         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14736         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14737         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14738         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14739         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14740         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14741         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14742         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14743         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14744         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14745         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14746         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14747         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14748         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14749         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14750         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14751         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14752         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14753         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14754         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14755         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14756         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14757         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14758         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14759         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14760         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14761         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14762         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14763         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14764         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14765         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14766         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14767         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14768         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14769         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14770         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14771         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14772         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14773         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14774         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14775
14776 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14777
14778         * math/tst-CMPLX.c: Include <stdio.h>.
14779
14780 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14781
14782         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14783         float.
14784         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14785         * sysdeps/sparc/bits/mathdef.h: Likewise.
14786
14787 2012-01-31  Marek Polacek  <polacek@redhat.com>
14788
14789         * libio/libio.h: Don't define _PARAMS.
14790         * locale/programs/config.h: Don't define PARAMS.
14791         * stdlib/strtol_l.c: Likewise.
14792         (__strtol_l): Remove PARAMS from the prototype.
14793
14794 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14795
14796         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14797         names.  Just use the correct names.  Remove unnecessary wrapper
14798         functions.
14799         * malloc/arena.c: Likewise.
14800         * malloc/hooks.c: Likewise.
14801
14802         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14803         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14804         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14805
14806 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14807
14808         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14809         into tail calls.
14810         (update_get_addr): New function.
14811         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14812         GET_ADDR_MODULE parameter.
14813
14814 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14815
14816         * crypt/cert.c: Remove __STDC__ conditionals.
14817         * crypt/crypt-entry.c: Likewise.
14818         * crypt/crypt_util.c: Likewise.
14819         * libio/filedoalloc.c: Likewise.
14820         * libio/fileops.c: Likewise.
14821         * libio/genops.c: Likewise.
14822         * libio/iofclose.c: Likewise.
14823         * libio/iofdopen.c: Likewise.
14824         * libio/iofopen.c: Likewise.
14825         * libio/iofopen64.c: Likewise.
14826         * libio/iogetdelim.c: Likewise.
14827         * libio/iopopen.c: Likewise.
14828         * libio/obprintf.c: Likewise.
14829         * libio/oldfileops.c: Likewise.
14830         * libio/oldiofclose.c: Likewise.
14831         * libio/oldiofdopen.c: Likewise.
14832         * libio/oldiofopen.c: Likewise.
14833         * libio/oldiopopen.c: Likewise.
14834         * libio/wfiledoalloc.c: Likewise.
14835         * libio/wgenops.c: Likewise.
14836         * locale/programs/xmalloc.c: Likewise.
14837         * misc/syslog.c: Likewise.
14838         * stdio-common/xbug.c: Likewise.
14839         * string/memchr.c: Likewise.
14840         * string/memcmp.c: Likewise.
14841         * string/memrchr.c: Likewise.
14842         * string/rawmemchr.c: Likewise.
14843         * sysdeps/posix/getcwd.c: Likewise.
14844         * time/strftime_l.c: Likewise.
14845
14846 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14847
14848         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14849         * config.make.in (config-cflags-sse2avx): Define.
14850         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14851         Fix typo.
14852
14853 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14854
14855         * scripts/config.guess: Update from upstream config git repository.
14856         * scripts/config.sub: Likewise.
14857
14858 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14859
14860         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14861         (EM_NUM): Update.
14862         (R_TILEPRO_*, R_TILEGX_*): New macros.
14863
14864         * scripts/firstversions.awk: Fix bug in version range handling.
14865
14866         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14867
14868         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14869
14870         * include/sys/epoll.h: New file.
14871         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14872         libc_hidden_def.
14873
14874 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14875
14876         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14877         Avoid unnecessary __WORDSIZE == 64 test.
14878         (fmaxf): Use VEX format if possible.
14879         (fmax): Likewise.
14880         (fminf): Likewise.
14881         (fmin): Likewise.
14882
14883         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14884         * math/math_private.h: Remove libc_fegetround* and
14885         libc_fesetround*.
14886         * sysdeps/i386/configure.in: Check for -msse2avx.
14887         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14888         also if SSE2AVX is defined.
14889         Remove libc_fegetround* and libc_fesetround*.
14890         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14891         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14892         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14893         of HAS_YMM_USABLE.
14894         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14895         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14896         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14897         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14898         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14899
14900         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14901
14902 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14903
14904         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14905         size is not set.
14906         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14907
14908 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14909
14910         [BZ #13618]
14911         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14912         relocation.
14913         * Makeconfig (libm): Define.
14914         * elf/Makefile: Add rules to build and run tst-relsort1.
14915         * elf/tst-relsort1.c: New file.
14916         * elf/tst-relsort1mod1.c: New file.
14917         * elf/tst-relsort1mod2.c: New file.
14918
14919 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14920
14921         * math/s_ldexp.c: Remove __STDC__ conditionals.
14922         * math/s_ldexpf.c: Likewise.
14923         * math/s_ldexpl.c: Likewise.
14924         * math/s_nextafter.c: Likewise.
14925         * math/s_nexttowardf.c: Likewise.
14926         * math/s_significand.c: Likewise.
14927         * math/s_significandf.c: Likewise.
14928         * math/s_significandl.c: Likewise.
14929         * math/w_jnl.c: Likewise.
14930         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14931         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14932         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14933         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14934         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14935         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14936         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14937         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14938         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14939         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14940         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14941         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14942         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14943         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14944         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14945         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14946         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14947         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14948         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14949         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14950         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14951         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14952         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14953         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14954         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14955         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14956         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14957         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14958         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14959         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
14960         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
14961         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
14962         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
14963         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
14964         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
14965         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
14966         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
14967         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
14968         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
14969         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
14970         * sysdeps/ieee754/k_standard.c: Likewise.
14971         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14972         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
14973         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
14974         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
14975         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
14976         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
14977         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
14978         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
14979         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
14980         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
14981         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
14982         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
14983         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
14984         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
14985         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
14986         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
14987         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
14988         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
14989         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
14990         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
14991         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
14992         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
14993         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
14994         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
14995         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
14996         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
14997         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14998         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14999         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15000         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15001         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15002         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
15003         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15004         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15005         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15006         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15007         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
15008         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15009         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15010         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
15011         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
15012         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15013         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
15014         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
15015         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15016         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
15017         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15018         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15019         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15020         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15021         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
15022         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15023         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15024         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15025         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15026         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15027         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
15028         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15029         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15030         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15031         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15032         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15033         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15034         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15035         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15036         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15037         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15038         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15039         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15040         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15041         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15042         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15043         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15044         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15045         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15046         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15047         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15048         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15049         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15050         * sysdeps/ieee754/s_matherr.c: Likewise.
15051         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15052         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15053         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15054         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15055
15056 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15057
15058         * crypt/md5.h: Remove __STDC__ conditionals.
15059         * libio/libioP.h: Likewise.
15060         * locale/programs/config.h: Likewise.
15061         * sysdeps/generic/sysdep.h: Likewise.
15062         * sysdeps/i386/asm-syntax.h: Likewise.
15063         * sysdeps/s390/asm-syntax.h: Likewise.
15064         * sysdeps/unix/sysdep.h: Likewise.
15065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15067
15068 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15069
15070         * libio/libio.h: Remove __STDC__ conditionals.
15071         * malloc/obstack.h: Likewise.
15072         * math/complex.h: Likewise.
15073         * math/math.h: Likewise.
15074         * sysdeps/generic/_G_config.h: Likewise.
15075         * sysdeps/gnu/_G_config.h: Likewise.
15076         * sysdeps/mach/hurd/_G_config.h: Likewise.
15077         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15078         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15079         * sysdeps/sparc/bits/mathdef.h: Likewise.
15080
15081 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15082
15083         [BZ #13583]
15084         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15085         Clean up HAS_* macros.
15086         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15087         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15088         possible.
15089         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15090         HAS_AVX.
15091         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15092         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15093         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15094         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15095         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15096
15097 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15098
15099         * elf/tst-unique3.cc (gets): Remove declaration.
15100         * elf/tst-unique3lib.cc (gets): Likewise.
15101         * elf/tst-unique3lib2.cc (gets): Likewise.
15102         * elf/tst-unique4.cc (gets): Likewise.
15103
15104 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15105
15106         * include/stdio.h: Add C++ protection.  Add gets declarations and
15107         definitions.
15108         * debug/tst-chk1.c: Don't declare gets here.
15109         * stdio-common/tst-gets.c: Likewise.
15110
15111 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15112
15113         * posix/glob: Remove directory.
15114
15115 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15116
15117         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15118
15119 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15120
15121         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15122         of the non-standard EPFNOSUPPORT.
15123
15124 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15125
15126         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15127         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15128         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15129
15130 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15131
15132         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15133
15134 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15135
15136         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15137         transient errors.
15138         * nscd/grpcache.c (cache_addgr): Likewise.
15139         * nscd/hstcache.c (cache_addhst): Likewise.
15140         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15141         * nscd/pwdcache.c (cache_addpw): Likewise.
15142         * nscd/servicescache.c (cache_addserv): Likewise.
15143
15144 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15145
15146         * malloc/malloc.c: Various cleanups.
15147         * malloc/hooks.c: Likewise.
15148
15149         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15150         * stdlib/bug-fmtmsg1.c: New file.
15151
15152         * stdlib/fmtmsg.c (init): Add missing unlock.
15153         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15154
15155 2012-01-12  Marek Polacek  <polacek@redhat.com>
15156
15157         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15158         and _GNU_SOURCE.
15159
15160 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15161
15162         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15163         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15164         macro to ensure uniqueness of label name.
15165         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15166         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15167
15168 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15169
15170         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15171
15172         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15173         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15174         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15175         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15176
15177 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15178
15179         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15180
15181         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15182         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15183         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15184
15185         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15186
15187         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15188         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15189         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15190         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15191
15192         * math/bits/math-finite.h: Add ldexp support.
15193
15194 2012-01-10  Marek Polacek  <polacek@redhat.com>
15195
15196         * locale/programs/localedef.h (show_archive_content): Add noreturn
15197         attribute.
15198
15199 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15200
15201         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15202
15203 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15204
15205         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15206
15207         * io/Makefile (headers): Add bits/poll2.h.
15208
15209 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15210
15211         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15212         typo #include statement.
15213
15214 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15215
15216         * include/sys/cdefs.h: Define __attribute_alloc_size.
15217         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15218         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15219         * elf/pldd.c: Likewise.
15220         * iconv/iconv_charmap.c: Likewise.
15221         * iconv/iconvconfig.c: Likewise.
15222         * iconv/strtab.c: Likewise.
15223         * locale/programs/locale.c: Likewise.
15224         * locale/programs/localedef.h: Likewise.
15225         * locale/programs/simple-hash.c: Likewise.
15226         * nscd/nscd.h: Likewise.
15227         * nss/makedb.c: Likewise.
15228         * sysdeps/generic/ldconfig.h: Likewise.
15229         * locale/programs/localedef.c: Remove xmalloc prototype.
15230         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15231
15232 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15233
15234         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15235         appropriate.
15236
15237 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15238
15239         * math/Makefile (tests): Add tst-CMPLX.
15240         * math/tst-CMPLX.c: New file.
15241
15242         * math/complex.h (CMPLXL): Fix typo.
15243
15244         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15245         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15246         GLIBC_2.16.
15247         * debug/tst-chk1.c: Add poll and ppoll tests.
15248         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15249         * include/sys/poll.h: Add hidden proto for ppoll.
15250         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15251         * sysdeps/mach/hurd/ppoll.c: Likewise.
15252         * io/ppoll.c: Likewise.
15253         * debug/poll_chk.c: New file.
15254         * debug/ppoll_chk.c: New file.
15255         * include/bits/poll2.h: New file.
15256         * io/bits/poll2.h: New file.
15257
15258         [BZ #1350]
15259         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15260
15261         * configure.in: static is always set to yes.  Remove.
15262         * config.make.in: Don't set build-static.
15263         * Makeconfig: Remove use of build-static.
15264         * dlfcn/Makefile: Likewise.
15265         * elf/Makefile: Likewise.
15266         * math/Makefile: Likewise.
15267         * misc/Makefile: Likewise.
15268         * nptl/Makefile: Likewise.
15269         * sysdeps/mach/hurd/Makefile: Likewise.
15270
15271         * configure.in: PWD_P is not used anymore.
15272         * config.make.in: Remove PWD_P entry.
15273
15274         * configure.in: Remove last remnants of RANLIB.
15275         No need to check for signed size_t anymore.
15276         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15277         and IA-64.
15278         Remove __builtin_expect test because we require at least gcc 3.4.
15279         * aclocal.m4: Likewise.
15280
15281         * wcsmbs/mbrtoc16.c: Implement using towc function.
15282         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15283         * wcsmbs/wcsmbsload.c: Likewise.
15284         * iconv/gconv_simple.c: Likewise.
15285         * iconv/gconv_int.h: Likewise.
15286         * iconv/gconv_builtin.h: Likewise.
15287         * iconv/iconv_prog.c: Remove CHAR16 handling.
15288
15289         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15290
15291         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15292
15293         * configure.in: Remove --with-elf and --enable-bounded options.
15294         Dont set base_machine for ia64.  More non-ELF conditions removed.
15295         Remove testing and setting of leading underscore information.
15296         * config.make.in (build-bounded): Set to no.
15297         * config.h.in: Remove NO_UNDERSCORES entry.
15298         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15299         them.
15300         * csu/start.c: Remove !NO_UNDERSCORE code.
15301         * locale/localeinfo.h: Likewise.
15302         * sysdeps/generic/machine-gmon.h: Likewise.
15303         * sysdeps/generic/sysdep.h: Likewise.
15304         * sysdeps/i386/sysdep.h: Likewise.
15305         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15306         * sysdeps/mach/sysdep.h: Likewise.
15307         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15308         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15309         * sysdeps/sh/sysdep.h: Likewise.
15310         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15311         * sysdeps/unix/i386/sysdep.S: Likewise.
15312         * sysdeps/unix/sparc/start.c: Likewise.
15313         * sysdeps/unix/sparc/sysdep.S: Likewise.
15314         * sysdeps/unix/sparc/sysdep.h: Likewise.
15315         * sysdeps/unix/start.c: Likewise.
15316         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15317         * sysdeps/x86_64/sysdep.h: Likewise.
15318
15319 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15320
15321         [BZ #13553]
15322         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15323         for non-gcc.
15324         * argp/argp-fmtstream.h: Use const instead __const.
15325         * argp/argp.h: Likewise.
15326         * assert/assert.h: Likewise.
15327         * bits/fenv.h: Likewise.
15328         * bits/sched.h: Likewise.
15329         * bits/sigset.h: Likewise.
15330         * bits/sigthread.h: Likewise.
15331         * catgets/nl_types.h: Likewise.
15332         * conform/data/pthread.h-data: Likewise.
15333         * crypt/crypt-private.h: Likewise.
15334         * crypt/crypt.h: Likewise.
15335         * crypt/crypt_util.c: Likewise.
15336         * ctype/ctype.h: Likewise.
15337         * debug/execinfo.h: Likewise.
15338         * debug/mbsnrtowcs_chk.c: Likewise.
15339         * debug/mbsrtowcs_chk.c: Likewise.
15340         * debug/wcsnrtombs_chk.c: Likewise.
15341         * debug/wcsrtombs_chk.c: Likewise.
15342         * debug/wcstombs_chk.c: Likewise.
15343         * dirent/dirent.h: Likewise.
15344         * dlfcn/dlfcn.h: Likewise.
15345         * elf/neededtest4.c: Likewise.
15346         * grp/grp.h: Likewise.
15347         * gshadow/gshadow.h: Likewise.
15348         * iconv/gconv.h: Likewise.
15349         * iconv/gconv_int.h: Likewise.
15350         * iconv/gconv_simple.c: Likewise.
15351         * iconv/iconv.h: Likewise.
15352         * iconv/loop.c: Likewise.
15353         * iconv/skeleton.c: Likewise.
15354         * include/aio.h: Likewise.
15355         * include/aliases.h: Likewise.
15356         * include/argz.h: Likewise.
15357         * include/arpa/inet.h: Likewise.
15358         * include/assert.h: Likewise.
15359         * include/dirent.h: Likewise.
15360         * include/dlfcn.h: Likewise.
15361         * include/execinfo.h: Likewise.
15362         * include/fcntl.h: Likewise.
15363         * include/fenv.h: Likewise.
15364         * include/glob.h: Likewise.
15365         * include/grp.h: Likewise.
15366         * include/libintl.h: Likewise.
15367         * include/mntent.h: Likewise.
15368         * include/netdb.h: Likewise.
15369         * include/pwd.h: Likewise.
15370         * include/rpc/netdb.h: Likewise.
15371         * include/sched.h: Likewise.
15372         * include/search.h: Likewise.
15373         * include/shadow.h: Likewise.
15374         * include/signal.h: Likewise.
15375         * include/stdio.h: Likewise.
15376         * include/stdlib.h: Likewise.
15377         * include/string.h: Likewise.
15378         * include/sys/socket.h: Likewise.
15379         * include/sys/stat.h: Likewise.
15380         * include/sys/statfs.h: Likewise.
15381         * include/sys/statvfs.h: Likewise.
15382         * include/sys/syslog.h: Likewise.
15383         * include/sys/time.h: Likewise.
15384         * include/sys/uio.h: Likewise.
15385         * include/time.h: Likewise.
15386         * include/unistd.h: Likewise.
15387         * include/utmp.h: Likewise.
15388         * include/wchar.h: Likewise.
15389         * include/wctype.h: Likewise.
15390         * inet/aliases.h: Likewise.
15391         * inet/arpa/inet.h: Likewise.
15392         * inet/netinet/ether.h: Likewise.
15393         * inet/netinet/in.h: Likewise.
15394         * intl/libintl.h: Likewise.
15395         * io/bits/fcntl2.h: Likewise.
15396         * io/fcntl.h: Likewise.
15397         * io/ftw.h: Likewise.
15398         * io/sys/poll.h: Likewise.
15399         * io/sys/stat.h: Likewise.
15400         * io/sys/statfs.h: Likewise.
15401         * io/sys/statvfs.h: Likewise.
15402         * io/utime.h: Likewise.
15403         * libio/bits/stdio.h: Likewise.
15404         * libio/bits/stdio2.h: Likewise.
15405         * libio/libio.h: Likewise.
15406         * libio/libioP.h: Likewise.
15407         * libio/stdio.h: Likewise.
15408         * locale/lc-ctype.c: Likewise.
15409         * locale/locale.h: Likewise.
15410         * login/utmp.h: Likewise.
15411         * malloc/arena.c: Likewise.
15412         * malloc/malloc.c: Likewise.
15413         * malloc/malloc.h: Likewise.
15414         * malloc/mcheck.c: Likewise.
15415         * malloc/mtrace.c: Likewise.
15416         * math/bits/mathcalls.h: Likewise.
15417         * math/fenv.h: Likewise.
15418         * math/math_private.h: Likewise.
15419         * misc/bits/error.h: Likewise.
15420         * misc/bits/syslog.h: Likewise.
15421         * misc/err.h: Likewise.
15422         * misc/error.h: Likewise.
15423         * misc/fstab.h: Likewise.
15424         * misc/mntent.h: Likewise.
15425         * misc/regexp.h: Likewise.
15426         * misc/search.h: Likewise.
15427         * misc/sgtty.h: Likewise.
15428         * misc/sys/mman.h: Likewise.
15429         * misc/sys/syslog.h: Likewise.
15430         * misc/sys/uio.h: Likewise.
15431         * misc/sys/xattr.h: Likewise.
15432         * misc/ttyent.h: Likewise.
15433         * nis/rpcsvc/ypclnt.h: Likewise.
15434         * nss/nss.h: Likewise.
15435         * posix/bits/unistd.h: Likewise.
15436         * posix/fnmatch.h: Likewise.
15437         * posix/glob.h: Likewise.
15438         * posix/sched.h: Likewise.
15439         * posix/spawn.h: Likewise.
15440         * posix/sys/wait.h: Likewise.
15441         * posix/unistd.h: Likewise.
15442         * posix/wordexp.h: Likewise.
15443         * pwd/pwd.h: Likewise.
15444         * resolv/netdb.h: Likewise.
15445         * resource/sys/resource.h: Likewise.
15446         * rt/aio.h: Likewise.
15447         * rt/bits/mqueue2.h: Likewise.
15448         * rt/mqueue.h: Likewise.
15449         * shadow/shadow.h: Likewise.
15450         * signal/signal.h: Likewise.
15451         * socket/send.c: Likewise.
15452         * socket/sendto.c: Likewise.
15453         * socket/sys/socket.h: Likewise.
15454         * stdio-common/printf.h: Likewise.
15455         * stdlib/bits/stdlib.h: Likewise.
15456         * stdlib/fmtmsg.h: Likewise.
15457         * stdlib/monetary.h: Likewise.
15458         * stdlib/stdlib.h: Likewise.
15459         * stdlib/ucontext.h: Likewise.
15460         * streams/stropts.h: Likewise.
15461         * string/argz.h: Likewise.
15462         * string/bits/string2.h: Likewise.
15463         * string/string.h: Likewise.
15464         * string/strings.h: Likewise.
15465         * sunrpc/rpc/auth.h: Likewise.
15466         * sunrpc/rpc/auth_des.h: Likewise.
15467         * sunrpc/rpc/clnt.h: Likewise.
15468         * sunrpc/rpc/netdb.h: Likewise.
15469         * sunrpc/rpc/pmap_clnt.h: Likewise.
15470         * sunrpc/rpc/xdr.h: Likewise.
15471         * sysdeps/generic/inttypes.h: Likewise.
15472         * sysdeps/generic/net/if.h: Likewise.
15473         * sysdeps/generic/sys/swap.h: Likewise.
15474         * sysdeps/gnu/net/if.h: Likewise.
15475         * sysdeps/gnu/utmpx.h: Likewise.
15476         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15477         * sysdeps/i386/i486/bits/string.h: Likewise.
15478         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15479         * sysdeps/s390/bits/string.h: Likewise.
15480         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15481         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15482         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15483         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15484         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15485         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15486         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15487         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15488         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15489         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15490         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15491         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15492         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15493         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15494         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15495         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15496         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15497         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15498         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15499         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15500         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15501         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15502         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15503         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15504         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15505         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15506         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15507         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15508         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15509         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15510         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15511         * sysvipc/sys/ipc.h: Likewise.
15512         * sysvipc/sys/msg.h: Likewise.
15513         * sysvipc/sys/sem.h: Likewise.
15514         * sysvipc/sys/shm.h: Likewise.
15515         * termios/termios.h: Likewise.
15516         * time/sys/time.h: Likewise.
15517         * time/time.h: Likewise.
15518         * wcsmbs/bits/wchar2.h: Likewise.
15519         * wcsmbs/uchar.h: Likewise.
15520         * wcsmbs/wchar.h: Likewise.
15521         * wctype/wctype.h: Likewise.
15522
15523         [BZ #13551]
15524         * Makeconfig: Remove all but ELF support including AIX support.
15525         * Makerules: Likewise.
15526         * config.h.in: Likewise.
15527         * config.make.in: Likewise.
15528         * configure: Likewise.
15529         * configure.in: Likewise.
15530         * csu/Makefile: Likewise.
15531         * csu/version.c: Likewise.
15532         * debug/Makefile: Likewise.
15533         * dlfcn/Makefile: Likewise.
15534         * elf/Makefile: Likewise.
15535         * extra-lib.mk: Likewise.
15536         * iconv/Makefile: Likewise.
15537         * include/libc-symbols.h: Likewise.
15538         * include/shlib-compat.h: Likewise.
15539         * resolv/Makefile: Likewise.
15540         * resolv/res_libc.c: Likewise.
15541         * rt/Makefile: Likewise.
15542         * sysdeps/i386/asm-syntax.h: Likewise.
15543         * sysdeps/i386/sysdep.h: Likewise.
15544         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15545         * sysdeps/mach/sysdep.h: Likewise.
15546         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15547         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15548         * sysdeps/s390/asm-syntax.h: Likewise.
15549         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15550         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15551         * sysdeps/sh/sysdep.h: Likewise.
15552         * sysdeps/unix/sparc/sysdep.h: Likewise.
15553         * sysdeps/wordsize-32/divdi3.c: Likewise.
15554         * sysdeps/x86_64/sysdep.h: Likewise.
15555
15556         * argp/Versions: Remove _argp_unlock_xxx.
15557
15558         [BZ #13559]
15559         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15560         * abilist/libBrokenLocale.abilist: Likewise.
15561         * abilist/libanl.abilist: Likewise.
15562         * abilist/libc.abilist: Likewise.
15563         * abilist/libcrypt.abilist: Likewise.
15564         * abilist/libdl.abilist: Likewise.
15565         * abilist/libm.abilist: Likewise.
15566         * abilist/libnsl.abilist: Likewise.
15567         * abilist/libpthread.abilist: Likewise.
15568         * abilist/libresolv.abilist: Likewise.
15569         * abilist/librt.abilist: Likewise.
15570         * abilist/libthread_db.abilist: Likewise.
15571         * abilist/libutil.abilist: Likewise.
15572         * abilist/libnss_db.abilist: New file.
15573
15574         * scripts/abilist.awk: Add support for indirect functions.
15575
15576         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15577
15578         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15579
15580         * shlib-versions: Remove entries for ports architectures.
15581
15582         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15583         files in ports.
15584         * elf/stackguard-macros.h: Remove support for IA-64.
15585         * elf/tst-auditmod1.c: Likewise.
15586         * sysdeps/generic/ldsodefs.h: Likewise.
15587
15588         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15589         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15590         configure files.
15591
15592         [BZ #13552]
15593         * configure.in: Remove --enable-omitfp support.
15594         * FAQ.in: Adjust.
15595         * config.make.in: Likewise.
15596         * Makeconfig: Likewise.
15597         * manual/install.texi: Likewise.
15598
15599         In case anyone cares, the IA-64 architecture could move to ports.
15600         * sysdeps/ia64/*: Removed.
15601         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15602         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15603
15604         [BZ #13555]
15605         * configure.in: Remove entries for unsupported architectures.
15606
15607         [BZ #13533]
15608         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15609         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15610         routines.
15611         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15612         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15613         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15614         fall back to using wcrtomb.
15615         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15616         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15617         renaming.
15618         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15619         * wcsmbs/tst-c16c32-1.c: New file.
15620
15621         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15622         local variable.
15623
15624         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15625
15626         * elf/tst-unique3.cc: Add explicit declaration of gets.
15627         * elf/tst-unique3lib.cc: Likewise.
15628         * elf/tst-unique3lib2.cc: Likewise.
15629         * elf/tst-unique4.cc: Likewise.
15630
15631         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15632
15633 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15634
15635         [BZ #13566]
15636         * assert/assert.h (static_assert): Don't define for C++.
15637         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15638         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15639
15640 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15641
15642         * iconv/loop.c (single loop): Fix assertion in storing of
15643         remaining bytes.
15644
15645         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15646
15647 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15648
15649         * posix/getconf.c: Update copyright year.
15650         * nss/getent.c: Likewise.
15651         * nss/makedb.c: Likewise.
15652         * iconv/iconvconfig.c: Likewise.
15653         * iconv/iconv_prog.c: Likewise.
15654         * elf/ldconfig.c: Likewise.
15655         * elf/pldd.c: Likewise.
15656         * elf/sotruss.ksh: Likewise.
15657         * catgets/gencat.c: Likewise.
15658         * csu/version.c: Likewise.
15659         * elf/ldd.bash.in: Likewise.
15660         * elf/sprof.c (print_version): Likewise.
15661         * locale/programs/locale.c: Likewise.
15662         * locale/programs/localedef.c: Likewise.
15663         * login/programs/pt_chown.c: Likewise.
15664         * nscd/nscd.c (print_version): Likewise.
15665         * debug/xtrace.sh: Likewise.
15666         * malloc/memusage.sh: Likewise.
15667         * malloc/mtrace.pl: Likewise.
15668         * debug/catchsegv.sh: Likewise.
15669
15670 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15671
15672         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15673         pure attribute.
15674
15675 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15676
15677         [BZ #13533]
15678         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15679         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15680         transformations.
15681         * iconv/gconv_int.h: Likewise.
15682         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15683         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15684         from libc for GLIBC_2.16.
15685         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15686         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15687         * wcsmbs/uchar.h: Really define mbstate_t.
15688         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15689         * wcsmbs/c16rtomb.c: New file.
15690         * wcsmbs/mbrtoc16.c: New file.
15691         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15692         for C/POSIX locale.
15693         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15694         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15695
15696         * wcsmbs/wchar.h: Add missing __restrict.
15697
15698 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15699
15700         [BZ #13532]
15701         * time/Makefile (routines): Add timespec_get.
15702         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15703         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15704         timespec for ISO C11.
15705         * time/timespec_get.c: New file.
15706         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15707         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15708
15709         [BZ #13531]
15710         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15711         * stdlib/stdlib.h: Declare aligned_alloc.
15712         * Versions.def: Add GLIBC_2.16 for libc.
15713         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15714
15715         [BZ 13527]
15716         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15717         ISO C11.
15718
15719         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15720         code.
15721
15722         [BZ #13528]
15723         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15724
15725         [BZ #13529]
15726         * assert/assert.h (static_assert): Define.
15727
15728         * version.h: Update for 2.16 development version.
15729
15730         [BZ #13526]
15731         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15732         _ISOC11_SOURCE.
15733
15734         * version.h (RELEASE): Bump for 2.15 release.
15735         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15736
15737         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15738         Patch by Marek Polacek <mpolacek@redhat.com>.
15739
15740         * bits/byteswap.h: Protect long long constants with __extension__.
15741         * sysdeps/i386/bits/byteswap.h: Likewise.
15742         * sysdeps/ia64/bits/byteswap.h: Likewise.
15743         * sysdeps/s390/bits/byteswap.h: Likewise.
15744         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15745
15746 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15747
15748         [BZ #13540]
15749         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15750         destination buffer.
15751         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15752
15753 2011-12-23  Marek Polacek  <polacek@redhat.com>
15754
15755         * elf/dl-addr.c (determine_info): Add inline keyword.
15756         * elf/tst-auditmod4b.c (check_avx): Likewise.
15757         * elf/tst-auditmod6b.c (check_avx): Likewise.
15758         * elf/tst-auditmod6c.c (check_avx): Likewise.
15759         * elf/tst-auditmod7b.c (check_avx): Likewise.
15760
15761 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15762
15763         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15764         !__SSE_MATH__.
15765
15766 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15767
15768         [BZ #13540]
15769         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15770         processing for last bytes.
15771
15772 2011-08-06  Bruno Haible  <bruno@clisp.org>
15773
15774         [BZ #13061]
15775         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15776         U+0385, not to U+1FEE.
15777
15778         [BZ #13062]
15779         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15780         entry for U+00A5 U+0301.
15781
15782 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15783
15784         [BZ #13166]
15785         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15786         buffer for the output is too small.
15787
15788         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15789         optimization.
15790
15791         [BZ #13185]
15792         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15793         SSE flags if possible.
15794
15795 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15796
15797         [BZ #13540]
15798         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15799         processing for last bytes.
15800
15801 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15802
15803         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15804         (syscall-list-default-options, syscall-list-default-condition)
15805         (syscall-list-includes): Define.
15806         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15807         list of ABIs and options and #if conditions for each ABI.  Do not
15808         handle common syscalls between ABIs specially.
15809         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15810         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/s390/Makefile (64bit-predefine): Remove.
15815         (syscall-list-variants, syscall-list-32bit-options)
15816         (syscall-list-32bit-condition, syscall-list-64bit-options)
15817         (syscall-list-64bit-condition): Define.
15818         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15819         Remove.
15820         (syscall-list-variants, syscall-list-32bit-options)
15821         (syscall-list-32bit-condition, syscall-list-64bit-options)
15822         (syscall-list-64bit-condition): Define.
15823         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15824         Remove.
15825         (syscall-list-variants, syscall-list-32bit-options)
15826         (syscall-list-32bit-condition, syscall-list-64bit-options)
15827         (syscall-list-64bit-condition): Define.
15828
15829 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15830
15831         * locale/iso-639.def: Add brx entry.
15832
15833         [BZ #13328]
15834         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15835         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15836
15837         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15838         __feraiseexcept_renamed.
15839
15840 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15841
15842         [BZ #13538]
15843         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15844         EPOLLET with unsigned values.
15845         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15846         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15847
15848         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15849         to large cancellation.
15850         * math/s_cacoshf.c: Likewise.
15851         * math/s_cacoshl.c: Likewise.
15852
15853 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15854
15855         [BZ #13305]
15856         [BZ #12786]
15857         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15858         * math/s_cacoshf.c: Likewise.
15859         * math/s_cacoshl.c: Likewise.
15860
15861 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15862
15863         [BZ #13439]
15864         * iconv/gconv.h: Define __GCONV_SWAP.
15865         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15866         * iconvdata/utf-16.c: Likewise.
15867         * iconvdata/utf-32.c: Likewise.
15868
15869 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15870
15871         [BZ #13524]
15872         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15873         numerator after shifting it by one limb.
15874
15875 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15876
15877         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15878         under [__USE_EXTERN_INLINES].
15879
15880 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15881
15882         [BZ #13446]
15883         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15884
15885 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15886
15887         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15888         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15889         optimized code.
15890         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15891         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15892         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15893         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15894         for strncasecmp/strncasecmp_l compilation.
15895         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15896         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15897
15898 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15899
15900         [BZ #13484]
15901         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15902         of __asm__.
15903
15904 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15905
15906         [BZ #13506]
15907         * time/tzfile.c (__tzfile_read): Check values from file header.
15908
15909 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15910
15911         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15912         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15913         * powerpc/powerpc32/dl-start.S: Likewise.
15914         * powerpc/powerpc32/elf/start.S: Likewise.
15915         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15916         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15917         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15918         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15919         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15920         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15921         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15922         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15923         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15924         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15925         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15926         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15927         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15928         * powerpc/powerpc32/memset.S: Likewise.
15929         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15930         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15931         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15932         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15933         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15934         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15935         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15936         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15937         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15938         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15939         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15940         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15941         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15942
15943 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15944
15945         * math/libm-test.inc: Added more nearbyint tests.
15946         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15947         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15948         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15949         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15950
15951 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15952
15953         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15954         FD_CLOEXEC.
15955
15956 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15957
15958         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15959         Add wcscpy-ssse3 wcscpy-c.
15960         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
15961         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
15962         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
15963         * sysdeps/x86_64/wcschr.S: New file.
15964         * sysdeps/x86_64/wcsrchr.S: New file.
15965         * string/test-strcmp.c: Remove checking of wcscmp function for
15966         wrong alignments.
15967         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
15968         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
15969         wcsrchr-sse2 wcsrchr-c.
15970         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
15971         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
15972         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
15973         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
15974         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
15975         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
15976         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
15977         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
15978         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
15979         * wcsmbc/wcschr.c (WCSCHR): New macro.
15980
15981 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15982
15983         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
15984         * wcsmbs/test-wcsrchr.c: New file.
15985         * string/test-strrchr.c: Add wcsrchr support.
15986         (WIDE): New macro.
15987         * wcsmbs/test-wcscpy.c: New file.
15988         * string/test-strcpy.c: Add wcscpy support.
15989         (WIDE): New macro.
15990
15991 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
15992
15993         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
15994         the inner loop.
15995
15996 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
15997
15998         [BZ #13472]
15999         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
16000
16001 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
16002
16003         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
16004         Minor optimizations.
16005
16006         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
16007         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
16008         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
16009
16010 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
16011
16012         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
16013         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
16014         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
16015         for gcc to avoid warnings.
16016         * inet/Makefile (tests): Add tst-checks.
16017         * inet/tst-checks.c: New file.
16018
16019         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
16020         warning.
16021
16022         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
16023         __wmemcmp_sse2.
16024
16025         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
16026         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
16027
16028         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
16029
16030 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
16031
16032         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
16033         problem.
16034
16035         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
16036
16037 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
16038
16039         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16040         conditional on GCC version.
16041         (__arch_compare_and_exchange_val_8_acq)
16042         (__arch_compare_and_exchange_val_16_acq)
16043         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16044         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16045         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16046
16047 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16048
16049         * sysdeps/sh/backtrace.c: New file.
16050
16051 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16052
16053         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16054         parenthesis.
16055
16056 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16057
16058         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16059         falling back to utime.
16060
16061 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16062
16063         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16064         expectations for float.
16065
16066 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16067
16068         * locale/weight.h (findidx): Add parameter len.
16069         * locale/weightwc.h (findidx): Likewise.
16070         * posix/fnmatch_loop.c (FCT): Adjust caller.
16071         * posix/regcomp.c (build_equiv_class): Likewise.
16072         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16073         * posix/regexec.c (check_node_accept_bytes): Likewise.
16074         * string/strcoll_l.c (STRCOLL): Likewise.
16075         * string/strxfrm_l.c (STRXFRM): Likewise.
16076
16077 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16078
16079         * Makefile.in: Remove CVSOPT handling.
16080         * configure.in: Remove use of AC_REVISION.
16081         * iconvdata/Makefile (distribute): No need to filter out CVS.
16082         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16083         handling.
16084
16085 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16086
16087         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16088         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16089         [USE_AS_STRNCASECMP_L]: Likewise.
16090         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16091         NO_TLS_DIRECT_SEG_REFS.
16092         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16093         Fix argument offsets for non-PIC.
16094         [USE_AS_STRNCASECMP_L]: Likewise.
16095         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16096         NO_TLS_DIRECT_SEG_REFS.
16097
16098 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16099
16100         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16101         O_CLOEXEC.
16102         * locale/loadlocale.c (_nl_load_locale): Likewise.
16103
16104 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16105
16106         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16107         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16108         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16109         (SYSCALL_GETTIME): Set errno on error.
16110
16111         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16112         count references to noai6ai_cached.
16113
16114 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16115
16116         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16117
16118         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16119         FD_CLOEXEC for /proc/self/maps.
16120
16121         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16122         FD_CLOEXEC for /proc/meminfo.
16123
16124         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16125         gai.conf.
16126
16127         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16128         FD_CLOEXEC for given file.
16129
16130         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16131
16132         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16133         FD_CLOEXEC for /etc/hosts.
16134         (_gethtent): Likewise.
16135
16136         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16137
16138         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16139         cancellation and set FD_CLOEXEC for /etc/netgroup.
16140
16141         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16142         reading /etc/publickey.
16143
16144         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16145         allow cancellation when reading /etc/group.
16146
16147         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16148         cancellation.
16149         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16150
16151         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16152         when using data file.
16153
16154         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16155
16156         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16157         (write_nis_obj): Use "c" and "e" in fopen.
16158
16159         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16160
16161         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16162
16163         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16164
16165         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16166
16167         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16168         locale.alias.
16169
16170         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16171
16172         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16173
16174         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16175
16176         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16177         file parsing and set FD_CLOEXEC.
16178
16179 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16180
16181         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16182
16183 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16184
16185         * malloc/arena.c (arena_get2): Don't call reused_arena when
16186         _int_new_arena failed.
16187
16188 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16189
16190         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16191         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16192         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16193         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16194         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16195         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16196         to compile strcasecmp and strncasecmp.
16197         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16198         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16199
16200         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16201
16202 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16203
16204         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16205         locale-defines.sym to gen-as-const-headers.
16206         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16207         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16208         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16209         to compile strcasecmp and strncasecmp.
16210         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16211         strcasecmp_l and strncasecmp_l.
16212         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16213         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16214         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16215         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16216         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16217         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16218         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16219         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16220         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16221         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16222         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16223
16224 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16225
16226         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16227         result of SYSDEP_GETTIME_CPU to retval.
16228         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16229         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16230
16231         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16232         variable.
16233
16234         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16235         mantissa words.
16236         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16237
16238         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16239         from unused variable.
16240
16241         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16242         DWARF definitions.
16243         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16244         for assembling.
16245
16246         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16247         over namespaces.
16248
16249         * sunrpc/rpc_prot.c (rejected): Fix case value.
16250
16251         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16252         unsigned long long int to avoid warnings in shift.
16253
16254         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16255         of use of trans.
16256         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16257         variable tmp.
16258
16259         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16260         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16261         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16262
16263         * nis/nis_table.c (nis_list): Use variable of correct type for
16264         result of __follow_path call.
16265
16266 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16267
16268         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16269         of math functions ceil, trunc, floor, round, and sqrt, when
16270         avaliable on the platform.
16271         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16272         name clash.
16273         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16274         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16275         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16276
16277 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16278
16279         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16280         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16281
16282 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16283
16284         * include/unistd.h: Fix __readlink return type.
16285         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16286
16287 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16288
16289         * stdlib/ucontext.h: Undo last change for makecontext.
16290
16291 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16292
16293         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16294
16295         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16296         * setjmp/setjmp.h: Mark functions as non-leaf.
16297         * setjmp/bits/setjmp2.h: Likewise.
16298         * stdlib/ucontext.h: Likewise.
16299
16300 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16301
16302         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16303         (reused_arena): Don't check arena limit.
16304         (arena_get2): Atomically check arena limit.
16305
16306 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16307
16308         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16309         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16310
16311         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16312         instructions.
16313
16314 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16315
16316         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16317         handler when locking.
16318
16319         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16320         Fix size of allocated buffer.
16321
16322 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16323
16324         [BZ #10103]
16325         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16326         declarations for long double functions.
16327         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16328
16329         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16330
16331 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16332
16333         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16334         installed.
16335
16336         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16337         is disabled.
16338
16339 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16340
16341         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16342
16343 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16344
16345         * include/alloca.h (stackinfo_alloca_round): Define.
16346         (extend_alloca): Use it.
16347         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16348         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16349         here.
16350
16351         * scripts/check-local-headers.sh: Ignore libaudit.h.
16352
16353         * nscd/Makefile (extra-objs): Make recursively expanded.
16354
16355 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16356
16357         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16358         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16359
16360         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16361         * posix/tst-rfc3484-2.c: Likewise.
16362         * posix/tst-rfc3484-3.c: Likewise.
16363
16364         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16365         process_vm_writev.
16366         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16367         process_vm_writev.
16368         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16369         process_vm_writev from libc using GLIBC_2.15 version.
16370
16371         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16372
16373 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16374
16375         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16376         stack usage.
16377
16378 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16379
16380         [BZ #13367]
16381         * nss/getent.c (initgroups_keys): Show error message in case no group
16382         names are given.
16383
16384         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16385         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16386         __bump_nl_timestamp.
16387         * nscd/connections (nscd_init): When host database is served open
16388         netlink socket and request notification about configuration changes.
16389         (main_loop_poll): Track netlink file descriptor and bump timestamp
16390         in case data becomes available.
16391         (main_loop_epoll): Likewise.
16392         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16393         (database_pers_head): Add extra_data fileds.
16394         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16395         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16396         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16397         Adjust caller.
16398         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16399         in6ai data, call __free_in6ai.
16400         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16401         Add -DHAVE_NETLINK.
16402         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16403         interface information.  Reuse previous data if netlink timestamp
16404         is not changed.
16405         (__bump_nl_timestamp): New function.
16406         (__free_in6ai): New function.
16407
16408 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16409
16410         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16411         close_not_cancel_no_status here.
16412         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16413
16414 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16415
16416         [BZ #13276]
16417         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16418         return value.
16419
16420         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16421         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16422         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16423
16424 2011-07-03  Andreas Jaeger  <aj@suse.de>
16425
16426         [BZ #10709]
16427         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16428         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16429         * math/libm-test.inc (sin_test): Add test case.
16430
16431 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16432
16433         [BZ #13337]
16434         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16435         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16436
16437         * elf/chroot_canon.c (chroot_canon): Cleanups.
16438
16439         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16440
16441         [BZ #13335]
16442         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16443         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16444
16445         * string/test-strchr.c: Make usable for strchrnul testing.
16446         * string/test-strchrnul.c: New file.
16447         * string/Makefile (strop-tests): Add strchrnul.
16448
16449         * po/it.po: Update from translation team.
16450         * po/es.po: Likewise.
16451
16452 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16453
16454         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16455         the three constants needed as parameters.  Drop the others.
16456         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16457         __m128i_strloadu_tolower.
16458         Create and initialize variable zero and use it in all the places
16459         where _mm_setzero_si128 was used.
16460
16461         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16462         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16463         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16464         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16465         anymore.
16466         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16467         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16468         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16469         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16470         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16471         __mpranred, __mptan.
16472         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16473         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16474         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16475         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16476         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16477         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16478         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16479         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16480         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16481
16482 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16483
16484         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16485         redefine if SHARED.
16486         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16487
16488         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16489         wide char related routines to wcsmbs subdir.
16490
16491 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16492
16493         [BZ #13344]
16494         * misc/sys/cdefs.h (__THROWNL): Define.
16495         * posix/unistd.h: Use __THREADNL instead of __THREAD
16496         for memory synchronization functions.
16497
16498 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16499
16500         [BZ #13349]
16501         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16502         doesn't exist.
16503         * manual/stdio.texi (Obstack Streams): Node removed.
16504
16505 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16506
16507         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16508         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16509         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16510
16511         * math/math_private.h (math_force_eval): Allow non-addressable
16512         arguments.
16513         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16514
16515 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16516
16517         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16518         file is not needed.
16519
16520         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16521         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16522         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16523         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16524         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16525         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16526         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16527         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16528         Add AVX variants.
16529         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16530         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16531         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16532         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16533         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16534         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16535         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16536         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16537         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16538         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16539         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16540         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16541         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16542         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16543         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16544         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16545         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16546         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16547         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16548
16549         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16550         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16551
16552         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16553         place.  Use VEX encoding when compiling for AVX.
16554
16555 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16556
16557         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16558         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16559
16560         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16561
16562 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16563
16564         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16565         useless if() expression.
16566         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16567         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16568         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16569         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16570         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16571         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16572         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16573         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16574         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16575         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16576         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16577         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16578         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16579         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16580         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16581         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16582         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16583         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16584         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16585
16586         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16587
16588 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16589
16590         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16591         condition.
16592         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16593
16594 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16595
16596         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16597         .text section.  Avoid duplicate constants.
16598         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16599         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16600         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16601         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16602         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16603         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16604         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16605         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16606         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16607         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16608         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16609         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16610         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16611         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16612         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16613         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16614         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16615         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16616         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16617         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16618         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16619         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16620         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16621         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16622         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16623         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16624         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16625         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16626         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16627         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16628         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16629         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16630         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16631         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16632         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16633         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16634         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16635         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16636         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16637         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16638         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16639         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16640         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16641         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16642         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16643
16644 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16645
16646         * sysdeps/x86_64/dla.h: Move to ...
16647         * sysdeps/x86_64/fpu/dla.h: ...here.
16648         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16649         situations.  Use __builtin_fma only for gcc 4.6 and up.
16650
16651         * config.make.in: Add have-mfma4 entry.
16652         * configure.in: Substitute libc_cv_cc_fma4.
16653         * math/Makefile (dbl-only-routines): Add sincostab.
16654         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16655         Use __sincostab not sincos.
16656         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16657         name is a macro.
16658         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16659         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16660         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16661         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16662         using __copysign.
16663         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16664         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16665         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16666         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16667         and __inv.
16668         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16669         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16670         __copysign.
16671         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16672         define aliases when function name is a macro.
16673         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16674         sysdeps/ieee754/dbl-64/sincos.tbl.
16675         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16676         fma4-enabled routines.
16677         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16678         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16679         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16680         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16681         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16682         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16683         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16684         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16685         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16686         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16687         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16688         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16689         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16690         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16691         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16692         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16693         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16694         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16695         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16696         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16697         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16698         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16699         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16700         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16701         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16702         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16703         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16704         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16705         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16706         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16707
16708         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16709         rename.
16710         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16711         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16712         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16713         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16714         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16715         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16716         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16717         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16718
16719 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16720
16721         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16722
16723 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16724
16725         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16726
16727         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16728         prediction.
16729         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16730
16731         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16732         Remove unused variable magic_bits.
16733         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16734
16735         * string/strnlen.c: Define and use STRNLEN macro.
16736         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16737         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16738         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16739         * wcsmbs/wcslen.c: Define and use WCSLEN.
16740         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16741         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16742         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16743         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16744         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16745         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16746         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16747
16748 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16749
16750         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16751         strnlen-sse2-no-bsf.
16752         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16753         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16754         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16755         Add strnlen support.
16756         (USE_AS_STRNLEN): New macro.
16757         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16758         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16759         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16760         * sysdeps/x86_64/wcslen.S: New file.
16761
16762 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16763
16764         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16765         XMM-moves are used for copying on small sizes.
16766
16767 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16768
16769         * wcsmbs/Makefile (strop-tests): Add wcschr.
16770         * wcsmbs/test-wcschr.c: New file.
16771         * string/test-strchr.c: Update.
16772         Add wcschr support.
16773         (WIDE): New macro.
16774
16775 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16776
16777         * wcsmbs/Makefile (strop-tests): Add wcslen.
16778         * wcsmbs/test-wcslen.c: New file.
16779         * string/test-strlen.c: Update.
16780         Add wcslen support.
16781         (WIDE): New macro.
16782
16783 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16784
16785         * po/it.po: Update from translation team.
16786
16787 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16788
16789         * sysdeps/x86_64/wcscmp.S: Update.
16790         Fix wrong comparison semantics.
16791         wcscmp shall use signed comparison not unsigned.
16792         Don't use substraction to avoid overflow bug.
16793         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16794         * wcsmbc/wcscmp.c: Likewise.
16795         * string/test-strcmp.c: Likewise.
16796         Add new tests to check cases with negative values.
16797
16798 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16799
16800         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16801         * sysdeps/x86_64/dla.h: ...here.  New file.
16802         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16803         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16804         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16805         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16806         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16807         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16808         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16809         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16810         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16811
16812 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16813
16814         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16815         __ynl_finite aliases.
16816
16817 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16818
16819         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16820
16821         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16822         define DLA_FMA.
16823         [DLA_FMA] (EMULV): Use DLA_FMA.
16824         [DLA_FMA] (MUL12): Use EMULV.
16825         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16826         that are not needed.
16827         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16828         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16829         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16830         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16831         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16832         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16833         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16834
16835 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16836
16837         * math/s_nan.c: Undef __nan.
16838         * math/s_nanf.c: Undef __nanf.
16839         * math/s_nanl.c: Undef __nanl.
16840         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16841         "math_private.h".
16842
16843 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16844
16845         * math/s_catan.c: Add branch predictions.
16846         * math/s_catanf.c: Likewise.
16847         * math/s_catanh.c: Likewise.
16848         * math/s_catanhf.c: Likewise.
16849         * math/s_catanhl.c: Likewise.
16850         * math/s_catanl.c: Likewise.
16851         * math/s_cexp.c: Likewise.
16852         * math/s_cexpf.c: Likewise.
16853         * math/s_cexpl.c: Likewise.
16854         * math/s_clog.c: Likewise.
16855         * math/s_clog10.c: Likewise.
16856         * math/s_clog10f.c: Likewise.
16857         * math/s_clog10l.c: Likewise.
16858         * math/s_clogf.c: Likewise.
16859         * math/s_clogl.c: Likewise.
16860         * math/s_csqrt.c: Likewise.
16861         * math/s_csqrtf.c: Likewise.
16862         * math/s_csqrtl.c: Likewise.
16863         * math/s_ctanf.c: Likewise.
16864         * math/s_ctanh.c: Likewise.
16865         * math/s_ctanhf.c: Likewise.
16866         * math/s_ctanhl.c: Likewise.
16867         * math/s_ctanl.c: Likewise.
16868
16869         * math/math_private.h: Define __nan, __nanf, __nanl.
16870         * math/s_cacosh.c: Include <math_private.h>.
16871         * math/s_cacoshl.c: Likewise.
16872         * math/s_casinh.c: Likewise.
16873         * math/s_casinhf.c: Likewise.
16874         * math/s_casinhl.c: Likewise.
16875         * math/s_ccos.c: Rely entire on ccosh.
16876         * math/s_ccosf.c: Rely entire on ccoshf.
16877         * math/s_ccosl.c: Rely entirely on ccoshl.
16878         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16879         Remove tests for FE_INVALID.
16880         * math/s_ccoshf.c: Likewise.
16881         * math/s_ccoshl.c: Likewise.
16882         * math/s_csin.c: Likewise.
16883         * math/s_csinf.c: Likewise.
16884         * math/s_csinh.c Likewise.
16885         * math/s_csinhf.c: Likewise.
16886         * math/s_csinhl.c: Likewise.
16887         * math/s_csinl.c: Likewise.
16888         * math/s_ctan.c: Likewise.
16889         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16890         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16891         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16892
16893 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16894
16895         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16896         compilation problems.
16897
16898         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16899         __builtin_expect.
16900
16901 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16902
16903         * sysdeps/i386/configure.in: Test for -mfma4 option.
16904         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16905         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16906         COMMON_CPUID_INDEX_80000001.
16907         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16908         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16909         use it if FMA3 is not supported.
16910         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16911
16912         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16913         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16914
16915 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16916
16917         [BZ #12892]
16918         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16919         it would create a cycle with a link time dependency.
16920
16921 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16922
16923         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16924         instruction.
16925         * string/Makefile (strop-tests): Add rawmemchr.
16926         * string/test-rawmemchr.c: New file.
16927
16928         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16929         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16930         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16931         when compiling str{,n}casecmp and when AVX is available.  Hook up
16932         new optimized code in initializers.
16933
16934 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16935
16936         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16937         __feraiseexcept instead of feraiseexcept.
16938
16939 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16940
16941         * math/math_private.h: Define defaults for libc_fetestexcept and
16942         libc_feupdateenv.
16943         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16944         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16945         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16946         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16947         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16948         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16949         libc_fetestexcept and libc_feupdateenv.
16950
16951         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16952         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16953         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16954         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16955         libc_feholdexcept_setround.
16956
16957         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16958         Add s_nearbyint-c and s_nearbyintf-c.
16959         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
16960         nearbyintf inlines.
16961         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
16962         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
16963         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
16964         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
16965
16966         * math/math_private.h: Define defaults for libc_fegetround,
16967         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
16968         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
16969         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
16970         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
16971         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
16972         standard functions.
16973         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
16974         Remove comments and hacks for old compiler versions.
16975         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16976         libc_fegetround, libc_fesetround, libc_feholdexcept, and
16977         libc_feholdexceptl.
16978
16979 2011-10-18  Andreas Schwab  <schwab@redhat.com>
16980
16981         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
16982         (__feraiseexcept_renamed): Add __NTH.
16983         (feraiseexcept): Add __NTH.  Rename local variables to fix
16984         namespace violations.
16985
16986 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
16987
16988         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
16989
16990         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
16991
16992         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
16993         recently added interfaces.
16994         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
16995
16996         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
16997         about macro parameter expansion.
16998
16999         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
17000         __NO_MATH_INLINES is defined.  Cleanups.
17001
17002         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
17003         and __floorf is target has SSE4.1.
17004         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
17005         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
17006         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
17007         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
17008
17009         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
17010         name.
17011         (floorf): Likewise.
17012
17013         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
17014
17015 2011-10-17  Andreas Schwab  <schwab@redhat.com>
17016
17017         * misc/sys/cdefs.h: Fix last change.
17018
17019         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
17020         database lookup.
17021
17022 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
17023
17024         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
17025
17026         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
17027         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17028         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17029         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17030         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17031         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17032         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17033         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17034         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17035         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
17036         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17037         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17038         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17039         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17040         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17041         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17042         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17043         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17044         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17045         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17046         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17047         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17048
17049         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17050         ceil, ceilf, floor, floorf.
17051
17052         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17053         Perform IRELATIVE relocations last.
17054
17055         * elf/do-rel.h: Add another parameter nrelative, replacing the
17056         local variable with the same name.  Change name of the function
17057         to end in Rel or Rela (uppercase).
17058         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17059         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17060         elf_dynamic_do_##reloc function.
17061
17062 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17063
17064         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17065         is sufficient, at least on modern CPUs.
17066
17067         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17068
17069         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17070         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17071
17072         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17073         __expl_finite.
17074         * math/bits/math-finite.h: Add entries for exp.
17075         * math/e_expl.c: Add __*_finite alias.
17076         * sysdeps/i386/fpu/e_exp.S: Likewise.
17077         * sysdeps/i386/fpu/e_expf.S: Likewise.
17078         * sysdeps/i386/fpu/e_expl.c: Likewise.
17079         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17080         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17081         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17082         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17083         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17084         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17085         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17086
17087         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17088         is sufficient, at least on modern CPUs.
17089
17090         * ctype/ctype-info.c (__ctype_init): Define.
17091         * include/ctype.h (__ctype_init): Declare.
17092         (__ctype_b_loc): The variable is always initialized.
17093         (__ctype_toupper_loc): Likewise.
17094         (__ctype_tolower_loc): Likewise.
17095         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17096         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17097
17098 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17099
17100         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17101
17102         * configure.in: Also look in $cxxmachine/include for C++ system
17103         headers.
17104
17105 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17106
17107         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17108         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17109         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17110         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17111         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17112         (USE_AS_WMEMCMP): New macro.
17113         Fixing indents.
17114         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17115         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17116         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17117         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17118         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17119         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17120         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17121         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17122         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17123         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17124         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17125         (USE_AS_WMEMCMP): New macro.
17126         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17127         * sysdeps/string/test-memcmp.c: Update.
17128         Fix simple_wmemcmp.
17129         Add new tests.
17130         * wcsmbs/wmemcmp.c: Update.
17131         (WMEMCMP): New macro.
17132         Fix overflow bug.
17133
17134 2011-10-12  Andreas Jaeger  <aj@suse.de>
17135
17136         [BZ #13268]
17137         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17138
17139 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17140
17141         * libio/iofwide.c (do_length): Avoid warning.
17142
17143         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17144
17145 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17146
17147         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17148
17149         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17150         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17151         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17152         * sysdeps/i386/i686/fpu/e_log.S: New file.
17153         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17154         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17155
17156         * ctype/ctype.h: Add support for inlined isXXX functions when
17157         compiling C++ code.
17158
17159 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17160
17161         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17162
17163         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17164
17165 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17166
17167         [BZ #13291]
17168         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17169
17170 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17171
17172         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17173         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17174         feraiseexcept.
17175
17176         * sysdeps/x86_64/memrchr.S: Check for zero size.
17177
17178         * string/stratcliff.c: Add memrchr tests.
17179
17180 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17181
17182         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17183         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17184         rawmemchr-sse2 rawmemchr-sse2-bsf.
17185         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17186         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17187         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17188         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17189         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17190         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17191         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17192         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17193         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17194         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17195         * string/memrchr.c (MEMRCHR): New macro.
17196
17197 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17198
17199         Add integration with gcc's -ffinite-math-only and optimize wrapper
17200         functions in libm.
17201         * Versions.def: Define GLIBC_2.15 version for libm.
17202         * math/Makefile (headers): Add bits/math-finite.h.
17203         * math/bits/math-finite.h: New file.
17204         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17205         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17206         * math/e_acoshl.c: Add __*_finite alias.
17207         * math/e_acosl.c: Likewise.
17208         * math/e_asinl.c: Likewise.
17209         * math/e_atan2l.c: Likewise.
17210         * math/e_atanhl.c: Likewise.
17211         * math/e_coshl.c: Likewise.
17212         * math/e_exp10.c: Likewise.
17213         * math/e_exp10f.c: Likewise.
17214         * math/e_exp10l.c: Likewise.
17215         * math/e_exp2l.c: Likewise.
17216         * math/e_fmodl.c: Likewise.
17217         * math/e_gammal_r.c: Likewise.
17218         * math/e_hypotl.c: Likewise.
17219         * math/e_j0l.c: Likewise.
17220         * math/e_j1l.c: Likewise.
17221         * math/e_jnl.c: Likewise.
17222         * math/e_lgammal_r.c: Likewise.
17223         * math/e_log10l.c: Likewise.
17224         * math/e_log2l.c: Likewise.
17225         * math/e_logl.c: Likewise.
17226         * math/e_powl.c: Likewise.
17227         * math/e_sinhl.c: Likewise.
17228         * math/e_sqrtl.c: Likewise.
17229         * math/e_scalb.c: Completely rewritten and optimized.
17230         * math/e_scalbf.c: Likewise.
17231         * math/e_scalbl.c: Likewise.
17232         * math/w_acos.c: Likewise.
17233         * math/w_acosf.c: Likewise.
17234         * math/w_acosl.c: Likewise.
17235         * math/w_acosh.c: Likewise.
17236         * math/w_acoshf.c: Likewise.
17237         * math/w_acoshl.c: Likewise.
17238         * math/w_asin.c: Likewise.
17239         * math/w_asinf.c: Likewise.
17240         * math/w_asinl.c: Likewise.
17241         * math/w_atan2.c: Likewise.
17242         * math/w_atan2f.c: Likewise.
17243         * math/w_atan2l.c: Likewise.
17244         * math/w_atanh.c: Likewise.
17245         * math/w_atanhf.c: Likewise.
17246         * math/w_atanhl.c: Likewise.
17247         * math/w_exp10.c: Likewise.
17248         * math/w_exp10f.c: Likewise.
17249         * math/w_exp10l.c: Likewise.
17250         * math/w_fmod.c: Likewise.
17251         * math/w_fmodf.c: Likewise.
17252         * math/w_fmodl.c: Likewise.
17253         * math/w_j0.c: Likewise.
17254         * math/w_j0f.c: Likewise.
17255         * math/w_j0l.c: Likewise.
17256         * math/w_j1.c: Likewise.
17257         * math/w_j1f.c: Likewise.
17258         * math/w_j1l.c: Likewise.
17259         * math/w_jn.c: Likewise.
17260         * math/w_jnf.c: Likewise.
17261         * math/w_log.c: Likewise.
17262         * math/w_logf.c: Likewise.
17263         * math/w_logl.c: Likewise.
17264         * math/w_log10.c: Likewise.
17265         * math/w_log10f.c: Likewise.
17266         * math/w_log10l.c: Likewise.
17267         * math/w_log2.c: Likewise.
17268         * math/w_log2f.c: Likewise.
17269         * math/w_log2l.c: Likewise.
17270         * math/w_pow.c: Likewise.
17271         * math/w_powf.c: Likewise.
17272         * math/w_powl.c: Likewise.
17273         * math/w_remainder.c: Likewise.
17274         * math/w_remainderf.c: Likewise.
17275         * math/w_remainderl.c: Likewise.
17276         * math/w_scalb.c: Likewise.
17277         * math/w_scalbf.c: Likewise.
17278         * math/w_scalbl.c: Likewise.
17279         * math/w_sqrt.c: Likewise.
17280         * math/w_sqrtf.c: Likewise.
17281         * math/w_sqrtl.c: Likewise.
17282         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17283         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17284         used.
17285         * math/math_private.h: Declare __kernel_standard_f.
17286         * math/w_cosh.c: Remove cruft and optimize a bit.
17287         * math/w_coshf.c: Likewise.
17288         * math/w_coshl.c: Likewise.
17289         * math/w_exp2.c: Likewise.
17290         * math/w_exp2f.c: Likewise.
17291         * math/w_exp2l.c: Likewise.
17292         * math/w_hypot.c: Likewise.
17293         * math/w_hypotf.c: Likewise.
17294         * math/w_hypotl.c: Likewise.
17295         * math/w_lgamma.c: Likewise.
17296         * math/w_lgamma_r.c: Likewise.
17297         * math/w_lgammaf.c: Likewise.
17298         * math/w_lgammaf_r.c: Likewise.
17299         * math/w_lgammal.c: Likewise.
17300         * math/w_lgammal_r.c: Likewise.
17301         * math/w_sinh.c: Likewise.
17302         * math/w_sinhf.c: Likewise.
17303         * math/w_sinhl.c: Likewise.
17304         * math/w_tgamma.c: Likewise.
17305         * math/w_tgammaf.c: Likewise.
17306         * math/w_tgammal.c: Likewise.
17307         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17308         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17309         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17310         Minor optimizations.  Pretty printing.  Remove cruft.
17311         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17312         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17313         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17314         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17315         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17316         * sysdeps/i386/fpu/e_asin.S: Likewise.
17317         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17318         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17319         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17320         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17321         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17322         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17323         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17324         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17325         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17326         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17327         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17328         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17329         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17330         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17331         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17332         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17333         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17334         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17335         * sysdeps/i386/fpu/e_log.S: Likewise.
17336         * sysdeps/i386/fpu/e_log10.S: Likewise.
17337         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17338         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17339         * sysdeps/i386/fpu/e_log2.S: Likewise.
17340         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17341         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17342         * sysdeps/i386/fpu/e_logf.S: Likewise.
17343         * sysdeps/i386/fpu/e_logl.S: Likewise.
17344         * sysdeps/i386/fpu/e_pow.S: Likewise.
17345         * sysdeps/i386/fpu/e_powf.S: Likewise.
17346         * sysdeps/i386/fpu/e_powl.S: Likewise.
17347         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17348         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17349         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17350         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17351         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17352         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17353         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17354         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17355         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17356         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17357         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17358         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17359         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17360         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17361         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17362         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17363         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17364         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17365         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17366         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17367         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17368         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17369         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17370         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17371         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17372         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17373         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17374         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17375         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17376         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17377         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17378         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17379         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17380         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17381         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17382         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17383         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17384         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17385         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17386         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17387         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17388         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17389         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17390         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17391         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17392         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17393         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17394         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17395         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17396         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17397         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17398         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17399         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17400         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17401         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17402         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17403         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17404         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17405         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17406         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17407         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17408         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17409         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17410         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17411         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17412         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17413         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17414         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17415         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17416         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17417         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17418         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17419         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17420         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17421         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17422         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17423         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17424         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17425         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17426         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17427         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17428         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17429         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17430         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17431         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17432         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17433         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17434         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17435         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17436         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17437         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17438         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17439         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17440         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17441         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17442         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17443         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17444         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17445         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17446         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17447         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17448         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17449         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17450         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17451         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17452         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17453         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17454         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17455         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17456         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17457         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17458         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17459         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17460         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17461         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17462         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17463         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17464         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17465         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17466         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17467         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17468         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17469         (__isnanf): Likewise.
17470         (__isinf_ns): Likewise.
17471         (__isinf_nsf): Likewise.
17472         (__finite): Likewise.
17473         (__finitef): Likewise.
17474         (__ieee754_sqrt): Define as macro.
17475         (__ieee754_sqrtf): Define as macro.
17476         (__ieee754_sqrtl): Define as macro.
17477         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17478         inlined copy.
17479         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17480         __FINITE_MATH_ONLY__ consistent.
17481         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17482
17483 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17484
17485         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17486         of rawmemchr.
17487
17488         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17489
17490 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17491
17492         * po/ja.po: Update from translation team.
17493
17494 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17495
17496         * locale/programs/locarchive.c (prepare_address_space): New function.
17497         (create_archive, enlarge_archive, open_archive): Use it.
17498
17499         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17500         inside [SHARED], where it is used.
17501
17502         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17503
17504         * nss/getent.c (netgroup_keys): Remove unused variable.
17505         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17506
17507 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17508
17509         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17510         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17511         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17512         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17513         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17514         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17515         * math/Makefile (libm-calls): Add s_isinf_ns.
17516         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17517         * math/multc3.c: Likewise.
17518         * math/s_casin.c: Likewise.
17519         * math/s_casinf.c: Likewise.
17520         * math/s_casinl.c: Likewise.
17521         * math/s_ccos.c: Likewise.
17522         * math/s_ccosf.c: Likewise.
17523         * math/s_ccosl.c: Likewise.
17524         * math/s_ctan.c: Likewise.
17525         * math/s_ctanf.c: Likewise.
17526         * math/s_ctanh.c: Likewise.
17527         * math/s_ctanhf.c: Likewise.
17528         * math/s_ctanhl.c: Likewise.
17529         * math/s_ctanl.c: Likewise.
17530         * math/w_fmod.c: Likewise.
17531         * math/w_fmodf.c: Likewise.
17532         * math/w_fmodl.c: Likewise.
17533         * math/w_remainder.c: Likewise.
17534         * math/w_remainderf.c: Likewise.
17535         * math/w_remainderl.c: Likewise.
17536         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17537         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17538         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17539         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17540         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17541         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17542         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17543         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17544
17545         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17546         of the number.
17547         * stdio-common/printf_fphex.c: Likewise.
17548         * stdio-common/printf_size.c: Likewise.
17549
17550         * math/e_exp10.c: Include math_private.h using <...> not "...".
17551         * math/e_exp10f.c: Likewise.
17552         * math/e_exp10l.c: Likewise.
17553         * math/e_exp2l.c: Likewise.
17554         * math/e_j0l.c: Likewise.
17555         * math/e_j1l.c: Likewise.
17556         * math/e_jnl.c: Likewise.
17557         * math/e_lgammal_r.c: Likewise.
17558         * math/e_rem_pio2l.c: Likewise.
17559         * math/e_scalb.c: Likewise.
17560         * math/e_scalbf.c: Likewise.
17561         * math/e_scalbl.c: Likewise.
17562         * math/k_cosl.c: Likewise.
17563         * math/k_sinl.c: Likewise.
17564         * math/k_tanl.c: Likewise.
17565         * math/s_cacoshf.c: Likewise.
17566         * math/s_catan.c: Likewise.
17567         * math/s_catanf.c: Likewise.
17568         * math/s_catanh.c: Likewise.
17569         * math/s_catanhf.c: Likewise.
17570         * math/s_catanhl.c: Likewise.
17571         * math/s_catanl.c: Likewise.
17572         * math/s_ccosh.c: Likewise.
17573         * math/s_ccoshf.c: Likewise.
17574         * math/s_ccoshl.c: Likewise.
17575         * math/s_cexp.c: Likewise.
17576         * math/s_cexpf.c: Likewise.
17577         * math/s_cexpl.c: Likewise.
17578         * math/s_clog.c: Likewise.
17579         * math/s_clog10.c: Likewise.
17580         * math/s_clog10f.c: Likewise.
17581         * math/s_clog10l.c: Likewise.
17582         * math/s_clogf.c: Likewise.
17583         * math/s_clogl.c: Likewise.
17584         * math/s_csin.c: Likewise.
17585         * math/s_csinf.c: Likewise.
17586         * math/s_csinh.c: Likewise.
17587         * math/s_csinhf.c: Likewise.
17588         * math/s_csinhl.c: Likewise.
17589         * math/s_csinl.c: Likewise.
17590         * math/s_csqrt.c: Likewise.
17591         * math/s_csqrtf.c: Likewise.
17592         * math/s_csqrtl.c: Likewise.
17593         * math/s_ctan.c: Likewise.
17594         * math/s_ctanf.c: Likewise.
17595         * math/s_ctanh.c: Likewise.
17596         * math/s_ctanhf.c: Likewise.
17597         * math/s_ctanhl.c: Likewise.
17598         * math/s_ctanl.c: Likewise.
17599         * math/s_ldexp.c: Likewise.
17600         * math/s_ldexpf.c: Likewise.
17601         * math/s_ldexpl.c: Likewise.
17602         * math/s_significand.c: Likewise.
17603         * math/s_significandf.c: Likewise.
17604         * math/s_significandl.c: Likewise.
17605         * math/w_acos.c: Likewise.
17606         * math/w_acosf.c: Likewise.
17607         * math/w_acosh.c: Likewise.
17608         * math/w_acoshf.c: Likewise.
17609         * math/w_acoshl.c: Likewise.
17610         * math/w_acosl.c: Likewise.
17611         * math/w_asin.c: Likewise.
17612         * math/w_asinf.c: Likewise.
17613         * math/w_asinl.c: Likewise.
17614         * math/w_atan2.c: Likewise.
17615         * math/w_atan2f.c: Likewise.
17616         * math/w_atan2l.c: Likewise.
17617         * math/w_atanh.c: Likewise.
17618         * math/w_atanhf.c: Likewise.
17619         * math/w_atanhl.c: Likewise.
17620         * math/w_cosh.c: Likewise.
17621         * math/w_coshf.c: Likewise.
17622         * math/w_coshl.c: Likewise.
17623         * math/w_dremf.c: Likewise.
17624         * math/w_exp10.c: Likewise.
17625         * math/w_exp10f.c: Likewise.
17626         * math/w_exp10l.c: Likewise.
17627         * math/w_exp2.c: Likewise.
17628         * math/w_exp2f.c: Likewise.
17629         * math/w_fmod.c: Likewise.
17630         * math/w_fmodf.c: Likewise.
17631         * math/w_fmodl.c: Likewise.
17632         * math/w_hypot.c: Likewise.
17633         * math/w_hypotf.c: Likewise.
17634         * math/w_hypotl.c: Likewise.
17635         * math/w_j0.c: Likewise.
17636         * math/w_j0f.c: Likewise.
17637         * math/w_j0l.c: Likewise.
17638         * math/w_j1.c: Likewise.
17639         * math/w_j1f.c: Likewise.
17640         * math/w_j1l.c: Likewise.
17641         * math/w_jn.c: Likewise.
17642         * math/w_jnf.c: Likewise.
17643         * math/w_jnl.c: Likewise.
17644         * math/w_lgamma.c: Likewise.
17645         * math/w_lgamma_r.c: Likewise.
17646         * math/w_lgammaf.c: Likewise.
17647         * math/w_lgammaf_r.c: Likewise.
17648         * math/w_lgammal.c: Likewise.
17649         * math/w_lgammal_r.c: Likewise.
17650         * math/w_log.c: Likewise.
17651         * math/w_log10.c: Likewise.
17652         * math/w_log10f.c: Likewise.
17653         * math/w_log10l.c: Likewise.
17654         * math/w_log2.c: Likewise.
17655         * math/w_log2f.c: Likewise.
17656         * math/w_log2l.c: Likewise.
17657         * math/w_logf.c: Likewise.
17658         * math/w_logl.c: Likewise.
17659         * math/w_pow.c: Likewise.
17660         * math/w_powf.c: Likewise.
17661         * math/w_powl.c: Likewise.
17662         * math/w_remainder.c: Likewise.
17663         * math/w_remainderf.c: Likewise.
17664         * math/w_remainderl.c: Likewise.
17665         * math/w_scalb.c: Likewise.
17666         * math/w_scalbf.c: Likewise.
17667         * math/w_scalbl.c: Likewise.
17668         * math/w_sinh.c: Likewise.
17669         * math/w_sinhf.c: Likewise.
17670         * math/w_sinhl.c: Likewise.
17671         * math/w_sqrt.c: Likewise.
17672         * math/w_sqrtf.c: Likewise.
17673         * math/w_sqrtl.c: Likewise.
17674         * math/w_tgamma.c: Likewise.
17675         * math/w_tgammaf.c: Likewise.
17676         * math/w_tgammal.c: Likewise.
17677
17678         * po/ja.po: Update from translation team.
17679
17680 2011-09-29  Andreas Jaeger  <aj@suse.de>
17681
17682         [BZ #13179]
17683         * sunrpc/netname.c (netname2host): Fix logic.
17684
17685         [BZ #6779]
17686         [BZ #6783]
17687         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17688         correctly.
17689         * math/w_remainder.c (__remainder): Likewise.
17690         * math/w_remainderf.c (__remainderf): Likewise.
17691         * math/libm-test.inc (remainder_test): Add test cases.
17692
17693 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17694
17695         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17696         sdiv_qrnnd.
17697
17698 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17699
17700         * string/test-memcmp.c: Avoid unncessary #defines.
17701         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17702
17703 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17704
17705         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17706         Use new sse2 version for core i3 - i7 as it's faster
17707         than sse42 version.
17708         (bit_Prefer_PMINUB_for_stringop): New.
17709         * sysdeps/x86_64/rawmemchr.S: Update.
17710         Replace with faster SSE2 version.
17711         * sysdeps/x86_64/memrchr.S: New file.
17712         * sysdeps/x86_64/memchr.S: Update.
17713         Replace with faster SSE2 version.
17714
17715 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17716
17717         * elf/dl-load.c (lose): Add cast to avoid warning.
17718
17719 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17720
17721         * po/ca.po: Update from translation team.
17722
17723         * inet/getnetgrent_r.c: Hook up nscd.
17724         * nscd/Makefile (routines): Add nscd_netgroup.
17725         (nscd-modules): Add netgroupcache.
17726         (CFLAGS-netgroupcache.c): Define.
17727         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17728         (cache_search): Add const to second parameter.
17729         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17730         INNETGR.
17731         (dbs): Add netgrdb entry.
17732         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17733         (verify_persistent_db): Handle netgrdb.
17734         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17735         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17736         GETFDNETGR.
17737         (netgroup_response_header): Define.
17738         (innetgroup_response_header): Define.
17739         (datahead): Add netgroup_response_header and innetgroup_response_header
17740         elements.
17741         * nscd/nscd.conf: Add entries for netgroup cache.
17742         * nscd/nscd.h (dbtype): Add netgrdb.
17743         (_PATH_NSCD_NETGROUP_DB): Define.
17744         (netgroup_iov_disabled): Declare.
17745         (xmalloc, xcalloc, xrealloc): Move declarations here.
17746         (cache_search): Adjust prototype.
17747         Add netgroup-related prototypes.
17748         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17749         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17750         (__nscd_innetgr): Declare.
17751         * nscd/selinux.c (perms): Use access_vector_t as element type and
17752         add netgroup-related initializers.
17753         * nscd/netgroupcache.c: New file.
17754         * nscd/nscd_netgroup.c: New file.
17755         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17756         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17757         For four parameters use innetgr.
17758         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17759         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17760         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17761         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17762
17763         * nscd/connections.c (register_traced_file): Don't register file
17764         for disabled databases.
17765
17766 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17767
17768         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17769
17770         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17771         from tree and freeing node.
17772
17773 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17774
17775         * nss/nsswitch.c (__nss_database_lookup): Handle
17776         nss_parse_service_list out of memory case.
17777
17778 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17779
17780         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17781         out of memory case.
17782
17783 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17784
17785         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17786         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17787         pass it down.
17788         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17789         elf_machine_rela, elf_machine_lazy_rel.
17790         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17791         (ELF_DYNAMIC_DO_REL): Likewise.
17792         (ELF_DYNAMIC_DO_RELA): Likewise.
17793         (ELF_DYNAMIC_RELOCATE): Likewise.
17794         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17795         to ELF_DYNAMIC_DO_REL.
17796         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17797         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17798         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17799         elf_machine_rela.
17800         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17801         skip_ifunc, don't call ifunc function if non-zero.
17802         (elf_machine_rela): Likewise.
17803         (elf_machine_lazy_rel): Likewise.
17804         (elf_machine_lazy_rela): Likewise.
17805         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17806         (elf_machine_lazy_rel): Likewise.
17807         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17808         Likewise.
17809         (elf_machine_lazy_rel): Likewise.
17810         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17811         Likewise.
17812         (elf_machine_lazy_rel): Likewise.
17813         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17814         (elf_machine_lazy_rel): Likewise.
17815         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17816         (elf_machine_lazy_rel): Likewise.
17817         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17818         (elf_machine_lazy_rel): Likewise.
17819         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17820         (elf_machine_lazy_rel): Likewise.
17821         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17822         (elf_machine_lazy_rel): Likewise.
17823         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17824         (elf_machine_lazy_rel): Likewise.
17825
17826 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17827
17828         * nss/nss_files/files-init.c (_nss_files_init): Use static
17829         initialization for all the *_traced_file variables.
17830
17831 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17832
17833         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17834
17835 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17836
17837         [BZ #13226]
17838         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17839
17840 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17841
17842         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17843         Reread the line before reparsing it.
17844
17845 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17846
17847         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17848
17849 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17850             Maxim Kuvyrkov  <maxim@codesourcery.com>
17851             Joseph Myers  <joseph@codesourcery.com>
17852
17853         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17854         if needed for __stack_chk_guard.
17855
17856 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17857
17858         * sysdeps/posix/spawni.c (script_execute): Always define it.
17859         It will be optimized away if unused.
17860         (maybe_script_execute): New function.
17861         (__spawni): Call it.
17862
17863         * Makerules: Don't include tls.make.
17864         (config-tls): Always set to thread.
17865         * tls.make.c: File removed.
17866
17867 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17868
17869         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17870         * config.make.in (CPPFLAGS-config): New substituted variable.
17871
17872 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17873
17874         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17875
17876         [BZ #13192]
17877         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17878         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17879
17880 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17881
17882         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17883         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17884         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17885         (CALL_FAIL): Likewise.
17886         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17887         (CALL_FAIL): Macro removed.
17888         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17889
17890 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17891
17892         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17893         for __FINITE_MATH_ONLY__ == 1.
17894
17895 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17896
17897         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17898         __ieee754_sqrt instead of sqrt.
17899         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17900         __ieee754_sqrtf instead of sqrtf.
17901         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17902         __floorf instead of floorf.
17903         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17904         __floorf, __truncf instead of floorf, truncf.
17905
17906 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17907
17908         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17909
17910         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17911         __extern_always_inline.
17912         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17913         32-bit.
17914
17915 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17916
17917         * elf/rtld.c (dl_main): Also relocate in dependency order when
17918         doing symbol dependency testing.
17919
17920 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17921
17922         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17923         Always define `refsym'.
17924
17925 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17926
17927         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17928         (__FD_ELT): Renamed from __FDELT.
17929         * misc/bits/select2.h (__FD_ELT): Likewise.
17930         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17931         __FD_MASK instead of __FDELT, __FDMASK.
17932         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17933         Likewise.
17934         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17935         Likewise.
17936
17937         * elf/Makefile (gen-ldd): Fix pattern.
17938
17939         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17940         (init_tls): Likewise.
17941
17942 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17943
17944         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17945
17946 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17947
17948         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17949         `struct cmsghdr *' instead of `void *'.
17950         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17951         Likewise.
17952
17953 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17954
17955         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17956         if non-absolute.
17957         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17958         ldd_rewrite_script.
17959
17960 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
17961
17962         * configure.in: Remove --with-tls option.
17963         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
17964         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
17965         out in case it is missing.
17966         * sysdeps/ia64/elf/configure.in: Likewise.
17967         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
17968         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
17969         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
17970         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
17971         * sysdeps/sh/elf/configure.in: Likewise.
17972         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
17973         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
17974         * sysdeps/x86_64/elf/configure.in: Likewise.
17975         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
17976         * sysdeps/mach/hurd/tls.h: Likewise.
17977
17978         [BZ #13067]
17979         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
17980
17981         [BZ #13090]
17982         * configure.in: Fix use of AC_INIT.
17983
17984         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
17985
17986 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
17987
17988         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
17989         __set_errno.
17990         * malloc/hooks.c: Likewise.
17991
17992         [BZ #11929]
17993         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
17994         variables statically.
17995         (narenas): Initialize.
17996         (list_lock): Initialize.
17997         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
17998         initializtion of main_arena and list_lock.  Small cleanups.
17999         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
18000         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
18001         Add initializers to main_arena and mp_.
18002         (malloc_state): Remove pagesize member.  Change all users to use
18003         GLRO(dl_pagesize).
18004
18005         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
18006         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
18007         is always initialized.
18008
18009         * malloc/malloc.c: Removed unused configurations and dead code.
18010         * malloc/arena.c: Likewise.
18011         * malloc/hooks.c: Likewise.
18012         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
18013
18014         * include/tls.h: Removed.  USE___THREAD must always be defined.
18015         * bits/libc-tsd.h: Don't handle !USE___THREAD.
18016         * elf/dl-libc.c: Likewise.
18017         * elf/dl-tsd.c: Likewise.
18018         * include/errno.h: Likewise.
18019         * include/netdb.h: Likewise.
18020         * include/resolv.h: Likewise.
18021         * inet/herrno-loc.c: Likewise.
18022         * inet/herrno.c: Likewise.
18023         * malloc/arena.c: Likewise.
18024         * malloc/hooks.c: Likewise.
18025         * malloc/malloc.c: Likewise.
18026         * resolv/res-state.c: Likewise.
18027         * resolv/res_libc.c: Likewise.
18028         * sysdeps/i386/dl-machine.h: Likewise.
18029         * sysdeps/ia64/dl-machine.h: Likewise.
18030         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
18031         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
18032         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
18033         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
18034         * sysdeps/sh/dl-machine.h: Likewise.
18035         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18036         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18037         * sysdeps/unix/i386/sysdep.S: Likewise.
18038         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18039         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18040         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18041         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18042         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18043         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18044         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18045         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18046         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18047         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18048         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18049         * sysdeps/x86_64/dl-machine.h: Likewise.
18050         * tls.make.c: Likewise.
18051
18052         * configure.in: Remove --with-__thread option.  Make tests for
18053         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18054         tls_model attribute fail if no support is available.  Remove
18055         USE_IN_LIBIO.
18056         * Makeconfig: Adjust for dropped configure option.  All features are
18057         now mandatory.
18058         * Makerules: Likewise.
18059         * Versions.def: Likewise.
18060         * argp/argp-fmtstream.c: Likewise.
18061         * argp/argp-fmtstream.h: Likewise.
18062         * argp/argp-help.c: Likewise.
18063         * assert/assert.c: Likewise.
18064         * config.h.in: Likewise.
18065         * config.make.in: Likewise.
18066         * configure: Likewise.
18067         * configure.in: Likewise.
18068         * csu/Versions: Likewise.
18069         * csu/init.c: Likewise.
18070         * elf/tst-audit2.c: Likewise.
18071         * elf/tst-tls10.c: Likewise.
18072         * elf/tst-tls10.h: Likewise.
18073         * elf/tst-tls11.c: Likewise.
18074         * elf/tst-tls12.c: Likewise.
18075         * elf/tst-tls14.c: Likewise.
18076         * elf/tst-tlsmod11.c: Likewise.
18077         * elf/tst-tlsmod12.c: Likewise.
18078         * elf/tst-tlsmod13.c: Likewise.
18079         * elf/tst-tlsmod13a.c: Likewise.
18080         * elf/tst-tlsmod14a.c: Likewise.
18081         * elf/tst-tlsmod15b.c: Likewise.
18082         * elf/tst-tlsmod16a.c: Likewise.
18083         * elf/tst-tlsmod16b.c: Likewise.
18084         * elf/tst-tlsmod7.c: Likewise.
18085         * elf/tst-tlsmod8.c: Likewise.
18086         * elf/tst-tlsmod9.c: Likewise.
18087         * gmon/gmon.c: Likewise.
18088         * grp/fgetgrent_r.c: Likewise.
18089         * grp/putgrent.c: Likewise.
18090         * hurd/fopenport.c: Likewise.
18091         * include/libc-symbols.h: Likewise.
18092         * include/tls.h: Likewise.
18093         * intl/gettextP.h: Likewise.
18094         * intl/loadinfo.h: Likewise.
18095         * locale/global-locale.c: Likewise.
18096         * locale/localeinfo.h: Likewise.
18097         * mach/devstream.c: Likewise.
18098         * malloc/arena.c: Likewise.
18099         * malloc/set-freeres.c: Likewise.
18100         * misc/err.c: Likewise.
18101         * misc/getttyent.c: Likewise.
18102         * misc/mntent_r.c: Likewise.
18103         * posix/getopt.c: Likewise.
18104         * posix/wordexp.c: Likewise.
18105         * pwd/fgetpwent_r.c: Likewise.
18106         * resolv/Versions: Likewise.
18107         * resolv/res_hconf.c: Likewise.
18108         * shadow/fgetspent_r.c: Likewise.
18109         * shadow/putspent.c: Likewise.
18110         * stdio-common/printf_fphex.c: Likewise.
18111         * stdio-common/tmpfile.c: Likewise.
18112         * stdlib/abort.c: Likewise.
18113         * stdlib/fmtmsg.c: Likewise.
18114         * sunrpc/auth_unix.c: Likewise.
18115         * sunrpc/clnt_perr.c: Likewise.
18116         * sunrpc/clnt_tcp.c: Likewise.
18117         * sunrpc/clnt_udp.c: Likewise.
18118         * sunrpc/clnt_unix.c: Likewise.
18119         * sunrpc/openchild.c: Likewise.
18120         * sunrpc/svc_simple.c: Likewise.
18121         * sunrpc/svc_tcp.c: Likewise.
18122         * sunrpc/svc_udp.c: Likewise.
18123         * sunrpc/svc_unix.c: Likewise.
18124         * sunrpc/xdr.c: Likewise.
18125         * sunrpc/xdr_array.c: Likewise.
18126         * sunrpc/xdr_rec.c: Likewise.
18127         * sunrpc/xdr_ref.c: Likewise.
18128         * sunrpc/xdr_stdio.c: Likewise.
18129
18130 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18131
18132         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18133
18134 2011-07-03  Andreas Jaeger  <aj@suse.de>
18135
18136         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18137         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18138         regenerate with gen-libm-tests.pl.
18139
18140 2010-05-12  Petr Baudis  <pasky@suse.cz>
18141
18142         [BZ #11589]
18143         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18144         around j0() zero points by switching to j1().
18145         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18146         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18147         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18148         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18149
18150 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18151
18152         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18153         instead of 0.
18154         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18155         instead of 0.                              .
18156         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18157         Patch in part by Pavel Roskin <proski@gnu.org>.
18158
18159         [BZ #13138]
18160         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18161         realloc.
18162         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18163         Free memory block if necessary.
18164
18165         [BZ #12847]
18166         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18167         be NULL.  Don't lock in this case.
18168
18169 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18170
18171         * elf/elf.h (ELFOSABI_GNU): New macro.
18172         (ELFOSABI_LINUX): Define to that.
18173
18174 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18175
18176         * string/strncat.c (strncat): Undef the symbol in case it has been
18177         defined in bits/string.h.
18178
18179 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18180
18181         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18182
18183         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18184         link map.
18185
18186 2011-08-17  Andreas Jaeger  <aj@suse.de>
18187
18188         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18189
18190 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18191             Ian Lance Taylor  <iant@google.com>
18192
18193         * math/libm-test.inc (lround_test): New testcase.
18194         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18195
18196 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18197
18198         * Makefile: Remove support for automatic cvs check-ins.
18199         * Makerules: Likewise.
18200         * config.make.in: Likewise.
18201         * configure.in: Likewise.
18202         * intl/Makefile: Likewise.
18203         * locale/Makefile: Likewise.
18204         * po/Makefile: Likewise.
18205         * posix/Makefile: Likewise.
18206         * sysdeps/gnu/Makefile: Likewise.
18207         * sysdeps/mach/hurd/Makefile: Likewise.
18208         * sysdeps/sparc/sparc32/Makefile: Likewise.
18209
18210         [BZ #13118]
18211         * posix/Makefile (bug-regex32-ENV): Define.
18212         Patch by John Stanley <jpsinthemix@verizon.net>.
18213
18214         * misc/Makefile (headers): Add bits/select2.h.
18215         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18216         * misc/bits/select2.h: New file.
18217         * include/bits/select2.h: New file.
18218         * debug/Makefile (routines): Add fdelt_chk.
18219         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18220         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18221         FD_ISSET.
18222         * debug/fdelt_chk.c: New file.
18223
18224         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18225         * wcsmbs/test-wmemcmp.c: Likewise.
18226         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18227         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18228
18229 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18230
18231         * string/Makefile (strop-tests): Add memcmp.
18232         * string/test-wmemcmp.c: New file.
18233         * string/test-memcmp.c: Add wmemcmp support.
18234
18235 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18236
18237         [BZ #13153]
18238         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18239         2011-07-19 change.
18240
18241         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18242         garbage value in a __mach_port_mod_refs call in the cases of the
18243         task-self and thread-self ports.
18244
18245 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18246
18247         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18248
18249 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18250
18251         * elf/dl-load.c (lose): Check for non-null L.
18252
18253 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18254
18255         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18256
18257         * elf/dl-libc.c (dlerror_run): Pass back error code from
18258         dl_catch_error.
18259
18260         [BZ #13123]
18261         * elf/dl-load.c (lose): Free l_origin if it is valid.
18262
18263         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18264         names.
18265         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18266         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18267         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18268         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18269         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18270         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18271
18272 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18273
18274         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18275         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18276         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18277         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18278         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18279         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18280         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18281         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18282         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18283         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18284
18285 2011-08-15  Alan Modra  <amodra@gmail.com>
18286
18287         [BZ #13092]
18288         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18289         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18290         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18291         ppc_mcount to static-only-routines.
18292         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18293         __mcount_internal.
18294         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18295         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18296
18297 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18298
18299         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18300         for finite and infinity parameters.
18301
18302 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18303
18304         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18305         and add nop instructions for throughput optimization.
18306         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18307
18308 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18309
18310         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18311         aligned copy for power7 with vector-scalar instructions.
18312         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18313
18314 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18315
18316         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18317         AVX check.
18318
18319 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18320
18321         [BZ #13144]
18322         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18323         last change.
18324
18325 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18326
18327         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18328         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18329         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18330         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18331         clock_gettime.
18332
18333 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18334
18335         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18336         Forgot to demangle the pointer.
18337
18338         * sysdeps/i386/sysdep.h: Define atom_text_section.
18339         * sysdeps/x86_64/sysdep.h: Likewise.
18340         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18341         section with atom_text_section.
18342         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18343         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18344         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18345         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18346         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18347
18348         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18349         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18350         already be defined.  Change to take two parameters and don't assign
18351         result to variable.  Adjust all users.
18352         Define INTERNAL_GETTIME if not already defined.
18353         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18354         call.
18355         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18356         HAVE_CLOCK_GETTIME_VSYSCALL.
18357         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18358
18359         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18360         gettimeofday vsyscall, just use time.
18361
18362 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18363
18364         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18365         <errno.h>.
18366
18367 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18368
18369         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18370         syscall on x86-64.
18371         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18372         syscall.
18373         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18374         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18375         syscall if possible.
18376
18377 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18378
18379         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18380         e_ident.  Don't pass to find_mapsXX.
18381         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18382
18383 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18384
18385         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18386         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18387         * sysdeps/x86_64/multiarch/strchr.S: Update.
18388         Check bit_slow_BSF bit.
18389         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18390         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18391         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18392
18393 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18394
18395         [BZ #13134]
18396         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18397         before glibc 2.15.
18398         (tryshell): Define.
18399         (__spawni): Change last parameter to be flag.  Test
18400         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18401         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18402         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18403         * posix/spawni.c: Likewise.
18404         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18405         * posix/spawnp.c: Likewise.  Change normal version to use
18406         SPAWN_XFLAGS_USE_PATH.
18407         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18408         SPAWN_XFLAGS_TRY_SHELL.
18409
18410         [BZ #13150]
18411         * posix/glob.h: Remove gcc 1.x support.
18412
18413         [BZ #13068]
18414         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18415
18416 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18417
18418         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18419         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18420         strrchr-sse2-bsf
18421         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18422         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18423         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18424         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18425         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18426         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18427
18428 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18429
18430         * sysdeps/x86_64/wcscmp.S: New file.
18431
18432         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18433         wcscmp-c wcscmp-sse2
18434         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18435         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18436         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18437         * wcsmbs/wcscmp.c: Allow renaming.
18438
18439 2011-09-05  David S. Miller  <davem@davemloft.net>
18440
18441         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18442         stack slot, rather than the struct return pointer slot.
18443         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18444         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18446         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18447
18448 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18449
18450         * po/ja.po: Update from translation team.
18451
18452         [BZ #13144]
18453         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18454         kernel in 64-bit binaries.
18455
18456 2011-09-01  David S. Miller  <davem@davemloft.net>
18457
18458         * elf/elf.h (HWCAP_SPARC_*): Move to..
18459         * sysdeps/sparc/sysdep.h: this new file and add new values.
18460         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18461         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18462         _DL_HWCAP_COUNT to 24.
18463         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18464         entries.
18465         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18466         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18467         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18468         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18469         instead of magic constants.
18470         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18471
18472 2011-08-31  David S. Miller  <davem@davemloft.net>
18473
18474         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18475         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18476         Reimplement to do errno handling inline.
18477         (SYSCALL_ERROR_HANDLER): New macro.
18478         (__SYSCALL_STRING): Do not do errno handling in asm.
18479         (__CLONE_SYSCALL_STRING): Delete.
18480         (__INTERNAL_SYSCALL_STRING): Delete.
18481         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18482         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18483         (PSEUDO): Reimplement to do errno handling inline.
18484         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18485         (SYSCALL_ERROR_HANDLER): New macro.
18486         (__SYSCALL_STRING): Do not do errno handling in asm.
18487         (__CLONE_SYSCALL_STRING): Delete.
18488         (__INTERNAL_SYSCALL_STRING): Delete.
18489         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18490         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18491         i386.
18492         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18493         (inline_syscall*): Add 'err' argument.
18494         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18495         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18496         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18497         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18498
18499         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18500         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18501
18502 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18503
18504         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18505
18506 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18507
18508         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18509         directive.
18510
18511 2011-08-24  David S. Miller  <davem@davemloft.net>
18512
18513         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18514
18515 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18516
18517         * elf/Makefile: Add rules to build and run unload8 test.
18518         * elf/unload8.c: New file.
18519         * elf/unload8mod1.c: New file.
18520         * elf/unload8mod1x.c: New file.
18521         * elf/unload8mod2.c: New file.
18522         * elf/unload8mod3.c: New file.
18523
18524         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18525         it wasn't used.
18526
18527 2011-08-23  David S. Miller  <davem@davemloft.net>
18528
18529         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18530         subtract stack bias.
18531         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18532         %sp not %fp in calculations.
18533         (_JMPBUF_UNWINDS_ADJ): Likewise.
18534
18535         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18536         (aio_suspend): Call it to force an exception region around the
18537         AIO_MISC_WAIT() invocation.
18538
18539 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18540
18541         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18542         backslash.
18543
18544 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18545
18546         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18547         protection macro.
18548         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18549         and <dl-machine.h>.
18550         (Elf64_FuncDesc): Remove.
18551
18552 2011-08-22  David S. Miller  <davem@davemloft.net>
18553
18554         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18555         sigaltstack check, add missing cfi directives.
18556         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18557         missing cfi directives, and sigaltstack handling.
18558
18559 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18560
18561         [BZ #11724]
18562         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18563         object is seen twice.
18564         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18565
18566         * elf/Makefile (distribute): Add tst-initorder2.c.
18567         (tests): Add tst-initorder2.
18568         (modules-names): Add tst-initorder2a tst-initorder2b
18569         tst-initorder2c tst-initorder2d.  Add rules to build them.
18570         ($(objpfx)tst-initorder2.out): New rule.
18571         * elf/tst-initorder2.c: New file.
18572         * elf/tst-initorder2.exp: New file.
18573
18574 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18575
18576         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18577
18578         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18579         dependencies back to end of function.
18580
18581         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18582         $(elfobjdir)/ld.so.
18583
18584 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18585
18586         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18587         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18588         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18589         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18590         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18591         of __vdso_gettimeofday.
18592         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18593         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18594         attribute_hidden.
18595         (_libc_vdso_platform_setup): Remove initialization of
18596         __vdso_gettimeofday and __vdso_time.
18597
18598 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18599
18600         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18601         and fgetc_unlocked.
18602         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18603         getc_unlocked.
18604
18605         * elf/dl-open.c (add_to_global): Report additions to the global scope
18606         for LD_DEBUG=scopes.
18607         (dl_open_worker): Also print scope of newly loaded dependencies.
18608         (_dl_show_scope): Indicate if there is no scope.
18609
18610         [BZ #13114]
18611         * stdio-common/Makefile (tests): Add bug24.
18612         * stdio-common/bug24.c: New file.
18613
18614 2011-08-19  Andreas Jaeger  <aj@suse.de>
18615
18616         [BZ #13114]
18617         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18618         non-existant file when using close-on-exec mode.
18619
18620 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18621
18622         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18623         the very first instruction.
18624
18625         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18626         the CFI state in the end.
18627         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18628         inclusion of dl-trampoline.h.
18629         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18630
18631 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18632
18633         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18634         expectations for long double.
18635
18636         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18637         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18638
18639 2011-08-14  David S. Miller  <davem@davemloft.net>
18640
18641         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18642         artificual limit depends upon the system page size.
18643
18644 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18645
18646         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18647         * resolv/Makefile: Define CFLAGS-libresolv.
18648
18649 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18650
18651         * nss/makedb.c (compute_tables): Make variables used in nested
18652         function static.
18653
18654 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18655
18656         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18657         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18658         if buffer was too small.
18659
18660         * elf/pldd.c (main): Attach to all threads in the process.
18661         Rewrite /proc handling to use *at functions.
18662
18663 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18664
18665         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18666         specifies first scope to show.
18667         (dl_open_worker): Update callers.  Move printing scope of new
18668         object to before the relocation.
18669         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18670         * sysdeps/generic/ldsodefs.h: Update declaration.
18671
18672         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18673         string for the scope number.
18674
18675 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18676
18677         * nscd/servicescache.c (cache_addserv): Make sure written is always
18678         initialized.
18679
18680 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18681
18682         * sysdeps/i386/i486/bits/atomic.h
18683         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18684         statement expression, so as to suppress "set but not used" warning.
18685         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18686
18687         * string/strncat.c (STRNCAT): Use prototype definition.
18688
18689         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18690         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18691         -Iprograms here.
18692         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18693         (localedef-modules): Add localedef.
18694         (locale-modules): Add locale.
18695
18696         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18697         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18698         to avoid a warning.
18699
18700 2011-08-14  David S. Miller  <davem@davemloft.net>
18701
18702         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18703         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18704
18705 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18706
18707         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18708         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18709         * elf/rtld.c (dl_main): Set l_name of vDSO.
18710         Call _dl_show_scope when DL_DEBUG_SCOPES.
18711         (process_dl_debug): Recognize scopes flag and also set it for all.
18712         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18713         Declare _dl_show_scope.
18714
18715         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18716         (do_dlopen): Pass caller_dlopen to dl_open.
18717         (__libc_dlopen_mode): Initialize caller_dlopen.
18718
18719         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18720         of libc.  Make tolower call locale-independent.  Optimize a bit by
18721         using isdigit instead of isalnum.
18722         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18723
18724 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18725
18726         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18727         was a dependency or dynamically loaded.
18728
18729 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18730
18731         * intl/l10nflist.c: Allow architecture-specific pop function.
18732         * sysdeps/x86_64/l10nflist.c: New file.
18733
18734         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18735         classification.
18736
18737 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18738
18739         * include/dirent.h: Add libc_hidden_proto for scandirat and
18740         scandirat64.  Don't declare __scandirat64.
18741         * dirent/scandirat.c: Add libc_hidden_def.
18742         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18743         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18744
18745 2011-08-10  David S. Miller  <davem@davemloft.net>
18746
18747         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18748         enum.
18749         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18750         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18751         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18752
18753 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18754
18755         * Versions.def [libc]: Add GLIBC_2.15.
18756         * dirent/Makefile (routines): Add scandirat and scandirat64.
18757         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18758         GLIBC_2.15.
18759         * dirent/dirent.h: Declare scandirat and scandirat64.
18760         * dirent/scandirat.c: New file.
18761         * dirent/scandirat64.c: New file.
18762         * sysdeps/wordsize-64/scandirat.c: New file.
18763         * sysdeps/wordsize-64/scandirat64.c: New file.
18764         * dirent/opendir.c: Define opendirat.
18765         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18766         using scandirat.
18767         * dirent/scandir64.c: Adjust for scandir.c change.
18768         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18769         __scandirat64, and __scandir_cancel_handler.
18770         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18771         additional parameter and use openat instead of open (outside of ld.so).
18772         Add new __opendir as wrapper around __opendirat.
18773         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18774         here without requiring old scandirat implementation.
18775
18776 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18777
18778         * dirent/scandir.c (cancel_handler): Renamed to
18779         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18780         defined.  Adjust users.
18781         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18782         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18783
18784 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18785
18786         * string/test-string.h (IMPL): Use __STRING to expand name and then
18787         stringify it.
18788
18789         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18790         of cleanups.
18791
18792 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18793
18794         * string/Makefile: Update.
18795         (strop-tests): Append strncat.
18796         * string/test-wcscmp.c: New file.
18797         New comprehensive test for wcscmp.
18798         * string/test-strcmp.c: Update.
18799         (WIDE): New define.
18800
18801 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18802
18803         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18804         line.
18805
18806 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18807
18808         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18809         encoding to ACE if AI_IDN.
18810
18811 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18812
18813         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18814         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18815
18816 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18817
18818         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18819         Fix overflow bug in strncat.
18820         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18821
18822         * string/test-strncat.c: Update.
18823         Add new tests for checking overflow bugs.
18824
18825 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18826
18827         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18828         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18829         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18830         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18831         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18832         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18833         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18834         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18835         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18836
18837         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18838         (USE_AS_STRCAT): Define.
18839         Add strcat and strncat support.
18840         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18841
18842 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18843
18844         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18845         __n bigger than INT_MAX+1.
18846         (__strncmp_g): Likewise.
18847
18848 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18849
18850         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18851         * libio/stido.h: Likewise.
18852
18853         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18854         (AF_NFC): Define.
18855         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18856         (AF_NFC): Define.
18857
18858         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18859         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18860         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18861         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18862         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18863
18864         [BZ #13021]
18865         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18866         installed.
18867
18868         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18869         typo.
18870         (_dl_x86_64_save_sse): Likewise.
18871
18872 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18873
18874         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18875         OSXSAVE.
18876         (_dl_x86_64_save_sse): Likewise.
18877
18878         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18879
18880         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18881
18882 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18883
18884         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18885         change.
18886         (_dl_x86_64_save_sse): Use correct AVX check.
18887
18888 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18889
18890         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18891         bug in strncpy/strncat.
18892         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18893
18894 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18895
18896         * string/tester.c (test_strcat): Add tests for different alignments
18897         of source and destination.
18898         (test_strncat): Likewise.
18899
18900 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18901
18902         [BZ #12852]
18903         * posix/glob.c (glob): Check passed in values before using them in
18904         expressions to avoid some overflows.
18905         (glob_in_dir): Likewise.
18906
18907         [BZ #13007]
18908         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18909         check for AVX enablement so that we don't crash with old kernels and
18910         new hardware.
18911         * elf/tst-audit4.c: Add same checks here.
18912         * elf/tst-audit6.c: Likewise.
18913
18914         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18915
18916 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18917
18918         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18919
18920 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18921
18922         * po/cs.po: Update from translation team.
18923         * po/bg.po: Likewise.
18924
18925 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18926
18927         * misc/sys/cdefs.h: Add support for const attribute.
18928         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18929         to gnu_dev_{major,minor,makedev} functions.
18930
18931 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18932
18933         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18934
18935 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18936
18937         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18938         strlen results.
18939
18940 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18941
18942         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18943         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18944         register in order to avoid conflicts with the soft frame pointer
18945         being held in r11 when necessary.
18946         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18947         (INTERNAL_VSYSCALL_NCS): Likewise.
18948
18949 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18950
18951         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18952         * elf/dl-fini.c (_dl_fini): Adjust caller.
18953         * elf/dl-close.c (_dl_close_worker): Likewise.
18954         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18955
18956 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18957
18958         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18959         "aux_cache->nlibs < 0".
18960
18961         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
18962         in the reload-count case.
18963
18964 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18965
18966         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18967         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
18968         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
18969         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
18970         * sysdeps/x86_64/multiarch/strcat.S: New file.
18971         * sysdeps/x86_64/multiarch/strncat.S: New file.
18972         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
18973         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
18974         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
18975         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
18976         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
18977         (USE_AS_STRCAT): Define.
18978         Add strcat and strncat support.
18979         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18980         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
18981         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
18982         * string/strncat.c: Update.
18983         (USE_AS_STRNCAT): Define.
18984         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18985         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
18986         and i7.
18987         * sysdeps/x86_64/multiarch/init-arch.h
18988         (bit_Prefer_PMINUB_for_stringop): New.
18989         (index_Prefer_PMINUB_for_stringop): Likewise.
18990         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
18991         bit_Prefer_PMINUB_for_stringop.
18992
18993 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
18994
18995         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
18996         buffer64.
18997         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
18998         of casting of buffer.
18999         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
19000         buffer32 and buffer64.
19001         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
19002         writes instead of casting of buffer.
19003         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
19004         buffer32.
19005         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
19006         casting of buffer.
19007
19008 2011-07-19  Andreas Schwab  <schwab@redhat.com>
19009
19010         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
19011
19012 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19013
19014         * nscd/nscd.c (termination_handler): Don't do anything for a database
19015         if it has not yet been initialized.
19016
19017 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19018
19019         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19020
19021 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19022
19023         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19024
19025 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19026
19027         * po/nl.po: Update from translation team.
19028         * po/sv.po: Likewise.
19029
19030 2011-07-16  Roland McGrath  <roland@hack.frob.com>
19031
19032         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
19033         now disallowed by GCC.
19034
19035         * configure.in (use-default-link): Default to yes if a test -shared
19036         link meets our qualifications.
19037         * configure: Regenerated.
19038
19039         * config.make.in (output-format): New variable.
19040         * configure.in: Check for ld --print-output-format support.
19041         * configure: Regenerated.
19042         * Makerules ($(common-objpfx)format.lds)
19043         [$(output-format) != unknown]: Just use $(output-format),
19044         instead of the linker-script munging.
19045
19046 2011-07-14  Roland McGrath  <roland@hack.frob.com>
19047
19048         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19049         of $(common-objpfx)shlib.lds.
19050         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19051
19052         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19053         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19054
19055         * configure.in (-z relro check): Adjust test code to add a large
19056         writable data section after it.
19057         * configure: Regenerated.
19058
19059 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19060
19061         * configure.in (-z relro check): Fix test code to make the variable
19062         truly const.
19063         * configure: Regenerated.
19064
19065 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19066
19067         * nscd/nscd.h (struct traced_file): Define.
19068         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19069         elements.  Add traced_files.
19070         (inotify_fd): Declare.
19071         (register_traced_file): Declare.
19072         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19073         (inotify_fd): Export.
19074         (resolv_conf_descr): Remove.
19075         (nscd_init): Move inotify descriptor creation to main.
19076         Don't register files for notification here.
19077         (register_traced_file): New function.
19078         (invalidate_cache): Don't use reset_res to determine whether to call
19079         res_init, go through the list of registered files.
19080         (main_loop_poll): The inotify descriptors are now stored in the
19081         structures for the traced files.
19082         (main_loop_epoll): Likewise
19083         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19084         to __nss_disable_nscd.
19085         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19086         for a database anymore.  Check the records for all the registered
19087         files instead.
19088         * nss/Makefile (libnss_files-routines): Add files-init.
19089         (libnss_db-routines): Add db-init.
19090         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19091         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19092         * nss/nss_db/db-init.c: New file.
19093         * nss/nss_files/files-init.c: New file.
19094         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19095         __nss_lookup_function.
19096         (__nss_lookup_function): Call nss_load_library.
19097         (nss_load_all_libraries): New function.
19098         (__nss_disable_nscd): Take parameter with callback function for files
19099         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19100         used for the cached services.
19101         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19102         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19103         options for features to all the files in nscd.
19104
19105         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19106
19107 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19108
19109         * csu/elf-init.c (__libc_csu_init): Comment typo.
19110
19111 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19112
19113         * po/pl.po: Update from translation team.
19114         * po/ja.po: Likewise.
19115         * po/ru.po: Likewise.
19116         * po/ko.po: Likewise.
19117         * po/fr.po: Likewise.
19118
19119 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19120
19121         * configure.in (.ctors/.dtors header and trailer check):
19122         Use an empirical test on a built program.
19123         * configure: Regenerated.
19124
19125         * configure.in (-z relro check): Use an empirical test on a built DSO.
19126         Detect, but do not require, on ia64.
19127         * configure: Regenerated.
19128
19129         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19130         Update tests that use readelf to use $READELF instead.
19131         * configure: Regenerated.
19132
19133 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19134
19135         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19136         if the result is not used.
19137
19138 2011-07-05  Andreas Jaeger  <aj@suse.de>
19139
19140         [BZ#9696]
19141         * stdlib/tst-strtod.c: Add testcase.
19142
19143 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19144
19145         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19146         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19147         The latter has a higher limit.  Take additional parameter to pass to
19148         the new function.
19149         (__pathconf): Pass file to __statfs_link_max.
19150         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19151         __statfs_link_max.
19152         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19153         __statfs_link_max.
19154
19155         [BZ #12868]
19156         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19157         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19158         Handle Lustre.
19159         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19160         (__statfs_filesize_max): Likewise.
19161         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19162
19163 2011-07-05  Andreas Jaeger  <aj@suse.de>
19164
19165         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19166
19167 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19168
19169         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19170         `status' variable.
19171         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19172         Likewise.
19173
19174 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19175
19176         * Makefile (strop-tests): Add strncat.
19177         * string/test-strncat.c: New file.
19178
19179 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19180
19181         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19182
19183 2011-06-21  Andreas Jaeger  <aj@suse.de>
19184
19185         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19186         Copy rule from iconvdata/Makefile.
19187
19188 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19189
19190         [BZ #12922]
19191         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19192         but no long options are defined, just return 'W'.
19193
19194 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19195
19196         [BZ #9696]
19197         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19198
19199 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19200
19201         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19202         netgroups to read.
19203         (innetgr): Likewise.
19204
19205 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19206
19207         * config.make.in (install_root): Default to $(DESTDIR).
19208
19209 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19210
19211         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19212
19213 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19214
19215         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19216
19217         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19218         containing directory rather than embedding absolute directory names.
19219
19220         * scripts/check-local-headers.sh: Rewritten using awk.
19221         Match by word, not by line.  Print error messages for matches.
19222         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19223
19224         * Makerules [shlib-lds-flags empty]:
19225         ($(common-objpfx)libc_pic.opts): New target.
19226         ($(common-objpfx)libc_pic.os.clean): New target.
19227         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19228
19229         * config.make.in (OBJCOPY): New variable.
19230         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19231         * configure: Regenerated.
19232
19233         * config.make.in (use-default-link): New variable.
19234         * configure.in (use_default_link): Grok --with-default-link to set it.
19235         * configure: Regenerated.
19236         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19237         (shlib-lds, shlib-lds-flags): Define to empty.
19238
19239         * Makerules (shlib-lds): New variable.
19240         (shlib-lds-flags): New variable.
19241         (build-shlib, build-moduile, build-module-asneeded): Use it.
19242         ($(common-objpfx)libc.so): Use $(shlib-lds).
19243         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19244         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19245
19246         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19247         DT_FLAGS/DT_FLAGS_1 with zero flags.
19248
19249         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19250         linker script munging.
19251
19252 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19253
19254         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19255         as 128-bit value.
19256         * crypt/sha512.c (sha512_process_block): Perform total addition using
19257         128-bit if possible.
19258         (__sha512_finish_ctx): Likewise.
19259         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19260         as 64-bit value.
19261         * crypt/sha256.c (SWAP64): Define.
19262         (sha256_process_block): Perform total addition using 64-bit if
19263         possible.
19264         (__sha256_finish_ctx): Likewise.
19265
19266 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19267
19268         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19269         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19270         * nscd/hstcache.c (cache_addhst): Likewise.
19271         * nscd/grpcache.c (cache_addgr): Likewise.
19272         * nscd/aicache.c (addhstaiX): Likewise
19273         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19274
19275 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19276
19277         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19278         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19279         * nscd/hstcache.c (cache_addhst): Likewise.
19280         * nscd/grpcache.c (cache_addgr): Likewise.
19281         * nscd/aicache.c (addhstaiX): Likewise
19282
19283 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19284
19285         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19286         domain only when needed.
19287
19288 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19289
19290         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19291         is always restored.
19292
19293 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19294
19295         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19296         are re-adding the entry.
19297         * nscd/servicescache.c (cache_addserv): Likewise.
19298
19299 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19300
19301         * sysdeps/generic/dl-irel.h: fix protection against multiple
19302         inclusions.
19303         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19304
19305 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19306
19307         [BZ #12935]
19308         * malloc/memusage.sh: Fix quoting in message.
19309         * debug/xtrace.sh: Likewise.
19310
19311         * configure.in: Remove support for --experimental-malloc option, make
19312         it the default.
19313         * config.make.in: Likewise.
19314         * malloc/Makefile: Likewise.
19315
19316 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19317
19318         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19319         two-byte characters.
19320
19321 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19322
19323         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19324         AC_CACHE_CHECK invocation.
19325         * configure: Regenerated.
19326
19327         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19328
19329 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19330
19331         [BZ #12350]
19332         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19333         bit from old_res_options.
19334
19335         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19336
19337         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19338         value type for setfct.
19339
19340 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19341
19342         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19343         __gettimeofday instead of gettimeofday.
19344
19345 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19346
19347         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19348
19349 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19350
19351         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19352
19353         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19354         info.
19355
19356 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19357
19358         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19359         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19360         strcpy-sse2-unaligned strncpy-sse2-unaligned
19361         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19362         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19363         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19364         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19365         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19366         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19367         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19368         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19369         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19370         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19371         (STRCPY): Support SSE2 and SSSE3 versions.
19372
19373 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19374
19375         [BZ #12874]
19376         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19377         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19378         kernels which artificially limit size of requests.
19379
19380 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19381
19382         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19383         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19384         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19385         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19386         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19387         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19388         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19389         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19390         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19391         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19392         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19393         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19394         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19395         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19396         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19397         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19398         Enable unaligned load optimization for Intel Core i3, i5 and i7
19399         processors.
19400         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19401         Define.
19402         (index_Fast_Unaligned_Load): Define.
19403         (HAS_FAST_UNALIGNED_LOAD): Define.
19404
19405 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19406
19407         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19408
19409 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19410
19411         [BZ #12907]
19412         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19413         until it is clear that the information is realy needed.
19414         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19415
19416 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19417
19418         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19419
19420 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19421
19422         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19423         /sys/devices/system/cpu/online if it is usable.
19424
19425         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19426         reading the information from the /proc filesystem to once a second.
19427
19428 2011-06-21  Andreas Jaeger  <aj@suse.de>
19429
19430         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19431         NULL after inclusion of kernel headers.
19432
19433 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19434
19435         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19436         calls to internal_setent.
19437
19438         [BZ #12885]
19439         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19440         addresses using gethostbyname4_r ignore IPv4 addresses.
19441
19442         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19443         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19444
19445         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19446
19447 2011-06-20  David S. Miller  <davem@davemloft.net>
19448
19449         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19450         inclusions.
19451         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19452
19453         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19454         (elf_irel): Use it.
19455         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19456         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19457         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19458         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19459         * sysdeps/x86_64/dl-irel.h: Likewise.
19460
19461         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19462         * elf/dl-sym.c: Likewise.
19463
19464 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19465
19466         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19467         need to dereference resplen2.
19468
19469 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19470
19471         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19472
19473 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19474
19475         * Makeconfig: Define vardbdir and inst_vardbdir.
19476         * nss/Makefile: Add rules to install db-Makefile.
19477
19478         * nss/nss_db/db-XXX.c: Cleanup.
19479
19480         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19481         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19482         GLIBC_PRIVATE.
19483         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19484         * nss/makedb.c: Implement -g option to specify that value strings
19485         are generated and should not be added to table iterated over for
19486         get*ent calls.
19487         * nss/nss_db/db-initgroups.c: New file.
19488
19489         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19490         interface.
19491
19492         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19493         (internal_getgrouplist): Adjust to name change.
19494         Update use_initgroups_entry if this is not the first call.
19495         * nss/databases.def: Add initgroups entry.
19496
19497         * nss/makedb.c (compute_tables): Check result of multiple hash table
19498         sizes to minimize maximum chain length.
19499
19500 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19501
19502         * Versions.def: Add entry for libnss_db.
19503         * shlib-versions: Likewise.
19504         * nss/Makefile: Add rules to build libnss_db.
19505         * nss/Versions: Add libnss_db information.  Organize libnss_files
19506         entries better.
19507         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19508         makedb progra.  Some minor improvements to generate smaller files.
19509         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19510         here from...
19511         * nss/makedb.c: ...here.
19512         Improve database format to be smaller and require less memory at
19513         runtime.
19514         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19515         db anymore.
19516         * nss/nss_db/db-netgrp.c: Likewise.
19517         * nss/nss_db/db-open.c: Likewise.
19518         * nss/nss_files/flies-XXX.x: Adjust comments.
19519         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19520         * nss/nss_files/files-grp.c: Likewise.
19521         * nss/nss_files/files-hosts.c: Likewise.
19522         * nss/nss_files/files-network.c: Likewise.
19523         * nss/nss_files/files-proto.c: Likewise.
19524         * nss/nss_files/files-pwd.c: Likewise.
19525         * nss/nss_files/files-rpc.c: Likewise.
19526         * nss/nss_files/files-service.c: Likewise.
19527         * nss/nss_files/files-sgrp.c: Likewise.
19528         * nss/nss_files/files-spwd.c: Likewise.
19529         * nss/nss_db/db-alias.c: Removed.
19530         * nss/nss_db/dummy-db.h: Removed.
19531
19532 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19533
19534         * nss/makedb.c: Rewritten to not use database library.
19535         * nss/Makefile: Update to build new makedb program.
19536
19537 2011-06-14  Andreas Jaeger  <aj@suse.de>
19538
19539         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19540         memset declaration.
19541
19542 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19543
19544         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19545         tmpbuf.
19546
19547 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19548
19549         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19550         * elf/Makefile ($(objpfx)ld.so): Likewise.
19551
19552         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19553         Don't list ld.so twice in dependencies.
19554
19555         * posix/bug-regex31.c: Include <stdlib.h>.
19556
19557         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19558
19559         * nis/nss_compat/compat-spwd.c
19560         (getspent_next_nss_netgr): Remove unused variable.
19561         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19562
19563         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19564         nonmembers" output to use the right array.
19565
19566         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19567
19568         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19569
19570         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19571         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19572         * catgets/gencat.c (read_input_file): Likewise.
19573         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19574
19575         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19576         variable definition inside #if's controlling its use.
19577
19578         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19579
19580         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19581
19582         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19583
19584         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19585         unreachable code.
19586
19587         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19588
19589         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19590         * configure: Regenerated.
19591
19592         * Makerules: Revert last change.
19593         * elf/Makefile: Likewise.
19594
19595 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19596
19597         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19598         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19599         (reloc-link): Likewise.
19600
19601 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19602
19603         * elf/Makefile: Add rules to build pldd.
19604         * elf/pldd.c: New file.
19605         * elf/pldd-xx.c: New file.
19606
19607 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19608
19609         * version.h: Update for 2.15 development version.
19610
19611 2011-06-07  David S. Miller  <davem@davemloft.net>
19612
19613         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19614         ifuncs.
19615         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19616         elf_machine_lazy_rel): Likewise.
19617         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19618         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19619         elf_machine_lazy_rel): Likewise.
19620         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19621         dl_hwcap via passed in argument.
19622         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19623         Likewise.
19624
19625 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19626
19627         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19628
19629 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19630
19631         [BZ #12849]
19632         * manual/fdl-1.1.texi: New file, verbatim from:
19633         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19634         * manual/lgpl-2.1.texi: New file, verbatim from:
19635         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19636         * manual/Makefile (licenses): New variable, list those new file names.
19637         (texis): Use it.
19638         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19639
19640         * manual/fdl.texi: File removed.
19641         * manual/lesser.texi: File removed.
19642         * manual/libc.texinfo (Copying, Documentation License):
19643         Use new @include file names, put @appendix directive before @include.
19644
19645 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19646
19647         [BZ #12841]
19648         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19649         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19650         (mq_open): Add __NTH.
19651
19652 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19653
19654         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19655         Assume Intel Core i3/i5/i7 processor if AVX is available.
19656
19657 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19658
19659         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19660         typo.
19661
19662 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19663
19664         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19665         memory.  Use alloca_account.  Fix memory leak when retrying.
19666
19667 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19668
19669         * version.h (RELEASE): Bump for 2.14 release.
19670         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19671
19672         * config.make.in (RANLIB): Remove entry.
19673
19674 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19675
19676         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19677         (libc.pot): Work around missing support for .ksh extension in xgettext.
19678
19679         [BZ #12684]
19680         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19681         if both request failed.
19682         (send_dg): In case of server errors clear resplen or *resplen2.
19683
19684         [BZ #12454]
19685         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19686         when there are multiple maps.
19687         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19688         (_dl_fini): Remove test here.
19689
19690         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19691
19692 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19693
19694         [BZ #12350]
19695         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19696         bit from old_res_options.
19697         (gaih_inet): Likewise.
19698
19699         [BZ #11099]
19700         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19701         as signed.
19702
19703         * resolv/res_init.c (res_setoptions): Make the code more compact.
19704
19705         [BZ #11558]
19706         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19707         set RES_USEVC.
19708
19709         [BZ #11634]
19710         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19711
19712         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19713
19714         [BZ #11781]
19715         * malloc/malloc.h: Declare malloc hook variables as volatile.
19716
19717         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19718         in last patch.
19719
19720         [BZ #11799]
19721         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19722         raise in the comment.
19723         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19724         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19725         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19726
19727 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19728
19729         [BZ #12811]
19730         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19731         grow the buffers more if it already has to be sufficient.
19732         (build_wcs_upper_buffer): Likewise.
19733         * posix/regexec.c (check_matching): Likewise.
19734         (clean_state_log_if_needed): Likewise.
19735         (extend_buffers): Don't enlarge buffers beyond size of the input
19736         buffer.
19737         Patches mostly by Emil Wojak <emil@wojak.eu>.
19738         * posix/bug-regex32.c: New file.
19739         * posix/Makefile (tests): Add bug-regex32.
19740
19741         * locale/findlocale.c (_nl_find_locale): Return right away if
19742         _nl_explode_name failed.
19743         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19744
19745         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19746
19747         * debug/xtrace.sh: Unify messages.
19748         * malloc/memusage.sh: Likewise.
19749
19750         [BZ #12813]
19751         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19752         time symbol from vDSO.  Substitute with vsyscall if not available.
19753         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19754         __vdso_time.
19755
19756         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19757         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19758         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19759         Add sendmmsg and internal_sendmmsg.
19760         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19761         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19762         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19763
19764         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19765         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19766         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19767
19768 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19769
19770         [BZ #12813]
19771         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19772         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19773         available.
19774         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19775         __vdso_getcpu.
19776
19777         [BZ #12814]
19778         * iconvdata/Makefile (tests): Add bug-iconv9.
19779         * iconvdata/bug-iconv9.c: New file.
19780
19781 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19782
19783         [BZ #12814]
19784         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19785
19786 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19787
19788         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19789         (struct user_regs_struct): Change intcs field back to cs.
19790
19791 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19792
19793         * po/ja.po: Update from translation team.
19794
19795 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19796
19797         [BZ #12795]
19798         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19799         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19800
19801 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19802
19803         * stdlib/longlong.h: Update from GCC.
19804
19805 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19806
19807         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19808         parameter name.
19809         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19810         Add parameter name.
19811         (__sysconf): Pass it down.
19812
19813 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19814
19815         [BZ #12671]
19816         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19817         some situations.
19818         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19819         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19820         add in in __libc_use_alloca calls.  Adjust callers.
19821         (glob): Use malloc in some situations.
19822
19823         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19824         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19825         pltexit.
19826
19827 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19828
19829         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19830         and CLOCK_BOOTTIME_ALARM.
19831
19832         [BZ #12782]
19833         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19834         is returned.
19835
19836         * string/_strerror.c (__strerror_r): Print negative errors as signed
19837         numbers.
19838
19839         [BZ #12777]
19840         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19841         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19842         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19843
19844         * configure.in: Fix typo in redirection and correct removal of test
19845         files in two cases.
19846
19847         [BZ #12788]
19848         * locale/setlocale.c (new_composite_name): Fix test to check for
19849         identical name of all categories.
19850
19851         [BZ #12792]
19852         * libio/filedoalloc.c (local_isatty): New function.
19853         (_IO_file_doallocate): Use local_isatty.
19854         * stdio-common/perror.c (perror): In case a new stream is used
19855         forward the stream error.
19856         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19857         error flag.
19858
19859 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19860
19861         [BZ #11869]
19862         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19863         alloca.
19864         * include/alloca.h (extend_alloca_account): Define.
19865
19866         [BZ #11857]
19867         * posix/regex.h: Fix comments with documentation of user-accessible
19868         fields after compilation and describe correct free'ing of pattern
19869         after re_compile_pattern.
19870         Patch by Reuben Thomas <rrt@sc3d.org>.
19871
19872 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19873
19874         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19875         and -mno-altivec to prevent the compiler from using Altivec and/or
19876         VSX instructions when the corresponding registers are not available.
19877
19878 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19879
19880         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19881
19882 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19883
19884         * libio/freopen.c (freopen): Use __dup2, not dup2.
19885         * libio/freopen64.c (freopen64): Likewise.
19886
19887 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19888
19889         [BZ #12775]
19890         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19891         * math/Makefile (tests): Add test-powl.
19892         (CFLAGS-test-powl.c): Define.
19893         * math/test-powl.c: New file.
19894
19895 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19896
19897         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19898
19899 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19900
19901         [BZ #11837]
19902         * iconvdata/gb18030.c: Update to GB18020-2005.
19903
19904 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19905
19906         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19907         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19908         Patch by Aharon Robbins <arnold@skeeve.com>.
19909
19910         [BZ #11892]
19911         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19912         on the stack.
19913
19914         [BZ #11895]
19915         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19916         through underflows.
19917
19918         [BZ #12766]
19919         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19920         point to strings before performing equality test for error_one_per_line
19921         mode.
19922
19923         [BZ #11697]
19924         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19925
19926         [BZ #11820]
19927         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19928         (struct user_fpregs_struct): Avoid __uint*_t types.
19929
19930         [BZ #6420]
19931         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19932         symbol info.  Use it instead of calling _dl_addr locally.
19933         (lock_and_info): New function.
19934         (tr_freehook): Call lock_and_info and pass symbol info as additional
19935         parameter to tr_where.
19936         (tr_mallochook): Likewise.
19937         (tr_reallochook): Likewise.
19938         (tr_memalignhook): Likewise.
19939
19940         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19941         used and couldn't be at all thread-safe.
19942
19943 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19944
19945         * libio/freopen.c (freopen): Don't close old file descriptor
19946         before the new one is opened.  Instead dup the new file descriptor
19947         to the old one after the new stream is created.
19948         * libio/freopen64.c (freopen64): Likewise.
19949         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19950         * libio/fileops.c (_IO_new_file_close_it): Handle new
19951         _IO_FLAGS2_NOCLOSE flag.
19952         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19953         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19954         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19955         _IO_FLAGS2_NOCLOSE flag.
19956         * include/unistd.h: Add hidden_proto for dup3.
19957         Define __have_dup3.
19958         * io/dup3.c: Define hidden symbol.
19959         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
19960
19961         [BZ #7101]
19962         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
19963         when an incomplete long option is used.
19964         * posix/tst-getopt_long1.c: New file.
19965         * posix/Makefile (tests): Add tst-getopt_long1.
19966
19967         [BZ #10138]
19968         * scripts/config.guess: Update from autoconf-2.68.
19969         * scripts/config.sub: Likewise.
19970
19971         [BZ #10157]
19972         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
19973         tests into ...
19974         (has_cpuclock): ...this.  New function.
19975         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
19976         macro here based on has_cpuclock code.
19977
19978         [BZ #10149]
19979         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19980         First byte (not low byte) is now always NUL.
19981         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
19982
19983         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
19984         Use non-cancelable interfaces.
19985
19986         [BZ #9809]
19987         * locale/iso-639.def: Add entry for Sorani.
19988
19989         [BZ #11901]
19990         * include/stdlib.h: Move include protection to the right place.
19991         Define abort_msg_s.  Declare __abort_msg with it.
19992         * stdlib/abort.c (__abort_msg): Adjust type.
19993         * assert/assert.c (__assert_fail_base): New function.  Majority
19994         of code from __assert_fail.  Allocate memory for __abort_msg with
19995         mmap.
19996         (__assert_fail): Now call __assert_fail_base.
19997         * assert/assert-perr.c: Remove bulk of implementation.  Use
19998         __assert_fail_base.
19999         * include/assert.hL Declare __assert_fail_base.
20000         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
20001         mmap.
20002         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
20003
20004 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
20005
20006         [BZ #11952]
20007         [BZ #12453]
20008         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
20009         until all modules are registered in the DTV.
20010         * elf/Makefile: Add rules to build and run tst-tls19.
20011         * elf/tst-tls19.c: New file.
20012         * elf/tst-tls19mod1.c: New file.
20013         * elf/tst-tls19mod2.c: New file.
20014         * elf/tst-tls19mod3.c: New file.
20015         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
20016
20017         [BZ #12083]
20018         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
20019         correctly.
20020
20021         [BZ #12601]
20022         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
20023         two-byte sequence errors.
20024         * iconvdata/Makefile (tests): Add bug-iconv8.
20025         * iconvdata/bug-iconv8.c: New file.
20026
20027         [BZ #12626]
20028         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
20029         buf2 definition.
20030
20031         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
20032
20033         [BZ #12432]
20034         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
20035         (dummy_getcfa): New function.
20036         (init): Get _Unwind_GetCFA address, use dummy if not found.
20037         (backtrace_helper): In recursion check, also check whether CFA changes.
20038         (__backtrace): Completely initialize arg.
20039
20040         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20041         storing incomplete byte sequence in state object.  Avoid testing for
20042         guaranteed too small input if we know there is enough data available.
20043
20044 2011-05-11  Andreas Schwab  <schwab@redhat.com>
20045
20046         * Makeconfig (+link-pie): Indent.
20047         * Rules (binaries-pie): Define if $(have-fpie) and
20048         $(build-shared).
20049         (binaries-shared): Also filter out $(binaries-pie).
20050         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20051         * nscd/Makefile (others-pie): Add nscd.
20052         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20053         ($(objpfx)nscd): Remove command override.
20054         * login/Makefile (others-pie): Add pt_chown.
20055         ($(objpfx)pt_chown): Remove command override.
20056         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20057         remove command overrides.
20058
20059 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20060
20061         * libio/tst_putwc.c: Fix error messages.
20062
20063         [BZ #12724]
20064         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20065         currently writing and seek to current position when not.
20066         * libio/Makefile (tests): Add bug-fclose1.
20067         * libio/bug-fclose1.c: New file.
20068
20069 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20070
20071         [BZ #12511]
20072         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20073         don't set DF_1_NODELETE here.
20074         (do_lookup_x): When entering new entry test for copy relocation
20075         and if necessary set DF_1_NODELETE flag.
20076         * elf/tst-unique4.cc: New file.
20077         * elf/tst-unique4.h: New file.
20078         * elf/tst-unique4lib.cc: New file.
20079         * elf/Makefile: Add rules to build and run tst-unique4.
20080         Patch by Piotr Bury <pbury@goahead.com>.
20081
20082 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20083
20084         [BZ #12052]
20085         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20086
20087         [BZ #12625]
20088         * misc/mntent_r.c (addmntent): Flush the stream after the output
20089
20090         [BZ #12393]
20091         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20092         (is_trusted_path_normalize): Skip initial colon.  Append slash
20093         to empty buffer.  Duplicate is_trusted_path code but allow
20094         constructed patch to be prefix.
20095         (is_dst): Allow $ORIGIN followed by /.
20096         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20097         Correct testing of result of is_trusted_path_normalize
20098         (decompose_rpath): Fix warning.
20099
20100 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20101
20102         [BZ #11257]
20103         * grp/initgroups.c (internal_getgrouplist): When we found the service
20104         list through the initgroups entry in nsswitch.conf do not always
20105         continue on a successful lookup.  Don't always use the
20106         __nss_group_database value if it is set.
20107         * nss/nsswitch.conf (initgroups): Change action for successful db
20108         lookup to continue for compatibility.
20109
20110 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20111
20112         [BZ #11532]
20113         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20114         and CP774 modules.
20115         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20116         and CP774 modules.
20117         * iconvdata/tst-tables.sh: Likewise.
20118         * iconvdata/cp770.c: New file.
20119         * iconvdata/cp771.c: New file.
20120         * iconvdata/cp772.c: New file.
20121         * iconvdata/cp773.c: New file.
20122         * iconvdata/cp774.c: New file.
20123         * iconvdata/testdata/CP770: New file.
20124         * iconvdata/testdata/CP770..UTF8: New file.
20125         * iconvdata/testdata/CP771: New file.
20126         * iconvdata/testdata/CP771..UTF8: New file.
20127         * iconvdata/testdata/CP772: New file.
20128         * iconvdata/testdata/CP772..UTF8: New file.
20129         * iconvdata/testdata/CP773: New file.
20130         * iconvdata/testdata/CP773..UTF8: New file.
20131         * iconvdata/testdata/CP774: New file.
20132         * iconvdata/testdata/CP774..UTF8: New file.
20133
20134         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20135         END CHARMAP line.
20136         * iconvdata/gen-8bit-gap.sh: Likewise.
20137         * iconvdata/gen-8bit.sh: Likewise.
20138
20139         * locale/iso-639.def: Add ary entry.
20140
20141         [BZ #11258]
20142         * locale/C-translit.h.in: Add U20A1 transliteration.
20143
20144         [BZ #12178]
20145         * locale/iso-639.def: Add wae entry.
20146         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20147
20148         [BZ #12545]
20149         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20150         for n.
20151
20152         [BZ #12711]
20153         * locale/C-translit.h.in: Add entry for U20B9.
20154         Patch by pravin.d.s@gmail.com.
20155
20156 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20157
20158         [BZ #12713]
20159         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20160         ENAMETOOLONG use generic getcwd.
20161         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20162         in rtld.  Use *stat64.
20163         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20164         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20165         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20166         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20167         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20168         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20169         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20170         __fstatat64 macros.
20171         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20172         * dirent/rewinddir.c: Add libc_hidden_def.
20173         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20174         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20175
20176         * include/dirent.h (__alloc_dir): Add flags parameter.
20177         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20178         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20179         __alloc_dir.
20180         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20181         from fdopendir if O_CLOEXEC is already set.
20182
20183 2011-03-15  Alan Modra  <amodra@gmail.com>
20184
20185         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20186         l_tls_firstbyte_offset non-zero.  Save padding offset in
20187         l_tls_firstbyte_offset for later use.
20188         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20189         freeing static tls block.
20190
20191 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20192
20193         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20194         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20195         being defined by the kernel headers.
20196
20197 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20198
20199         [BZ #12734]
20200         * resolv/resolv.h: Define RES_NOTLDQUERY.
20201         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20202         no-tld-query and set RES_NOTLDQUERY.
20203         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20204         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20205         modern BIND to search name as TLD unless forbidden.
20206
20207 2011-05-07  Petr Baudis  <pasky@suse.cz>
20208             Ulrich Drepper  <drepper@gmail.com>
20209
20210         [BZ #12393]
20211         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20212         (is_trusted_path): ...to here.
20213         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20214         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20215         using is_trusted_path_normalize() in setuid scripts.
20216
20217 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20218
20219         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20220         __BEGIN/__END_DECLS.
20221
20222 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20223
20224         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20225         NSS_STATUS_NOTFOUND if no record was found.
20226
20227 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20228
20229         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20230         (headers-not-in-tirpc): Remove rpc/netdb.h
20231         * resolv/netdb.h: Revert last change.
20232
20233 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20234
20235         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20236         circular dependency between libgcc.a and libc.a.
20237
20238 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20239
20240         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20241         * nis/Makefile: Don't install rpcsvc/*.
20242         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20243         instead of <rpc/types.h>.
20244         (MAXHOSTNAMELEN): Define.
20245
20246 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20247
20248         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20249
20250 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20251
20252         [BZ #12714]
20253         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20254         gethostbyname4_r when IPv6 results are possible.
20255
20256 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20257
20258         [BZ #12723]
20259         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20260         _PC_PIPE_BUF handling.
20261
20262 2011-04-30  Bruno Haible  <bruno@clisp.org>
20263
20264         [BZ #12717]
20265         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20266         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20267         to 'int'.
20268         * inet/getnameinfo.c (getnameinfo): Likewise.
20269
20270 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20271
20272         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20273         to groups setting in database lookup.
20274         * nss/nsswitch.conf: Add initgroups entry.
20275
20276 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20277
20278         [BZ #12685]
20279         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20280         mode string.
20281         Patch by Eric Blake <eblake@redhat.com>.
20282
20283 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20284
20285         * sunrpc/Makefile (need-export-routines): Add svc_run.
20286         (routines): Remove svc_run.
20287         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20288         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20289         * sunrpc/svc_run.c (svc_run): Likewise.
20290         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20291
20292 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20293
20294         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20295         problem in reallocation in last patch.
20296
20297 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20298
20299         * sunrpc/Makefile: Move inclusion of Rules.
20300
20301 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20302
20303         * nss/nss_files/files-initgroups.c: New file.
20304         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20305         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20306         _nss_files_initgroups_dyn.
20307
20308 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20309
20310         * elf/elf.h (R_ARM_IRELATIVE): Define.
20311
20312 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20313
20314         * po/ru.po: Update from translation team.
20315
20316 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20317
20318         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20319         dependencies.
20320
20321 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20322
20323         [BZ #12653]
20324         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20325         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20326         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20327         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20328         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20329
20330 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20331
20332         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20333         differing bytes.
20334         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20335         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20336         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20337
20338 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20339
20340         [BZ #12420]
20341         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20342         storing it.
20343         * stdlib/bug-getcontext.c: New file.
20344         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20345
20346 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20347
20348         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20349         instructions into .machine "z9-109".
20350         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20351         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20352
20353 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20354
20355         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20356         between environment variables and auxiliary vector.
20357
20358 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20359
20360         * Makefile: Add rules to build linkobj/libc.so.
20361         * include/libc-symbols.h: Define libc_hidden_nolink.
20362         * include/rpc/auth.h: Mark functions which are to be hidden.
20363         * include/rpc/auth_des.h: Likewise.
20364         * include/rpc/auth_unix.h: Likewise.
20365         * include/rpc/clnt.h: Likewise.
20366         * include/rpc/des_crypt.h: Likewise.
20367         * include/rpc/key_prot.h: Likewise.
20368         * include/rpc/pmap_clnt.h: Likewise.
20369         * include/rpc/pmap_prot.h: Likewise.
20370         * include/rpc/pmap_rmt.h: Likewise.
20371         * include/rpc/rpc_msg.h: Likewise.
20372         * include/rpc/svc.h: Likewise.
20373         * include/rpc/svc_auth.h: Likewise.
20374         * include/rpc/xdr.h: Likewise.
20375         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20376         * nss/Makefile: Likewise.
20377         * sunrpc/Makefile: Don't install headers.  Build library with normal
20378         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20379         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20380         for the compat linking library.  Remove use of INTDEF/INTUSE.
20381         * sunrpc/auth_none.c: Likewise.
20382         * sunrpc/auth_unix.c: Likewise.
20383         * sunrpc/authdes_prot.c: Likewise.
20384         * sunrpc/authuxprot.c: Likewise.
20385         * sunrpc/clnt_gen.c: Likewise.
20386         * sunrpc/clnt_perr.c: Likewise.
20387         * sunrpc/clnt_raw.c: Likewise.
20388         * sunrpc/clnt_simp.c: Likewise.
20389         * sunrpc/clnt_tcp.c: Likewise.
20390         * sunrpc/clnt_udp.c: Likewise.
20391         * sunrpc/clnt_unix.c: Likewise.
20392         * sunrpc/des_crypt.c: Likewise.
20393         * sunrpc/des_soft.c: Likewise.
20394         * sunrpc/get_myaddr.c: Likewise.
20395         * sunrpc/key_call.c: Likewise.
20396         * sunrpc/key_prot.c: Likewise.
20397         * sunrpc/netname.c: Likewise.
20398         * sunrpc/pm_getmaps.c: Likewise.
20399         * sunrpc/pm_getport.c: Likewise.
20400         * sunrpc/pmap_clnt.c: Likewise.
20401         * sunrpc/pmap_prot.c: Likewise.
20402         * sunrpc/pmap_prot2.c: Likewise.
20403         * sunrpc/pmap_rmt.c: Likewise.
20404         * sunrpc/publickey.c: Likewise.
20405         * sunrpc/rpc_cmsg.c: Likewise.
20406         * sunrpc/rpc_common.c: Likewise.
20407         * sunrpc/rpc_dtable.c: Likewise.
20408         * sunrpc/rpc_prot.c: Likewise.
20409         * sunrpc/rpc_thread.c: Likewise.
20410         * sunrpc/rtime.c: Likewise.
20411         * sunrpc/svc.c: Likewise.
20412         * sunrpc/svc_auth.c: Likewise.
20413         * sunrpc/svc_authux.c: Likewise.
20414         * sunrpc/svc_raw.c: Likewise.
20415         * sunrpc/svc_run.c: Likewise.
20416         * sunrpc/svc_simple.c: Likewise.
20417         * sunrpc/svc_tcp.c: Likewise.
20418         * sunrpc/svc_udp.c: Likewise.
20419         * sunrpc/svc_unix.c: Likewise.
20420         * sunrpc/svcauth_des.c: Likewise.
20421         * sunrpc/xcrypt.c: Likewise.
20422         * sunrpc/xdr.c: Likewise.
20423         * sunrpc/xdr_array.c: Likewise.
20424         * sunrpc/xdr_float.c: Likewise.
20425         * sunrpc/xdr_intXX_t.c: Likewise.
20426         * sunrpc/xdr_mem.c: Likewise.
20427         * sunrpc/xdr_rec.c: Likewise.
20428         * sunrpc/xdr_ref.c: Likewise.
20429         * sunrpc/xdr_sizeof.c: Likewise.
20430         * sunrpc/xdr_stdio.c: Likewise.
20431
20432 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20433
20434         [BZ #12650]
20435         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20436         * sysdeps/ia64/dl-tls.h: Likewise.
20437         * sysdeps/powerpc/dl-tls.h: Likewise.
20438         * sysdeps/s390/dl-tls.h: Likewise.
20439         * sysdeps/sh/dl-tls.h: Likewise.
20440         * sysdeps/sparc/dl-tls.h: Likewise.
20441         * sysdeps/x86_64/dl-tls.h: Likewise.
20442         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20443
20444 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20445
20446         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20447         rpath element also skip the following colon.
20448         (expand_dynamic_string_token): Add is_path parameter and pass
20449         down to DL_DST_REQUIRED and _dl_dst_substitute.
20450         (decompose_rpath): Call expand_dynamic_string_token with
20451         non-zero is_path.  Ignore empty rpaths.
20452         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20453         with zero is_path.
20454
20455 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20456
20457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20458         Make cancelable.
20459
20460 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20461
20462         [BZ #12655]
20463         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20464         Patch by Filipe David Manana <fdmanana@apache.org>.
20465
20466 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20467
20468         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20469         Maintain aligned stack.
20470         (CHECK_RSP): Remove unused macro.
20471
20472 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20473
20474         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20475         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20476
20477 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20478
20479         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20480
20481         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20482
20483 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20484
20485         [BZ #12518]
20486         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20487         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20488         * sysdeps/x86_64/memmove.c: New file.
20489         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20490         (memcpy): Renamed to ...
20491         (__new_memcpy): This.
20492         (memcpy): Provide GLIBC_2_14 memcpy.
20493         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20494         (memcpy): Provide GLIBC_2_2_5 memcpy.
20495
20496 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20497
20498         [BZ #12631]
20499         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20500
20501 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20502
20503         * misc/syncfs.c: New file.
20504         * misc/Makefile (routines): Add syncfs.
20505         * posix/unistd.h: Declare syncfs.
20506         * sysdeps/unix/syscalls.list: Add syncfs.
20507
20508 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20509
20510         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20511         open_by_handle_at.
20512         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20513         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20514         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20515         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20516         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20517         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20518         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20519
20520 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20521
20522         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20523         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20524         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20525         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20526         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20527         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20528         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20529
20530         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20531         sync_file_range.c with -fexceptions.
20532         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20533         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20534         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20535         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20536         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20537         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20538         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20539         sync_file_range as cancellation point
20540         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20541         now a wrapper around __call_sync_file_range with cancellation handling.
20542         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20543         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20544         function name to __call_sync_file_range.
20545         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20546         Add call_sync_file_range.
20547
20548 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20549
20550         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20551         bits/timex.h.
20552
20553 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20554
20555         * iconv/iconv.h: Fix typo in comment.
20556         * io/fcntl.h: Likewise.
20557         * libio/stdio.h: Likewise.
20558         * posix/spawn.h: Likewise.
20559         * posix/unistd.h: Likewise.
20560         * stdlib/stdlib.h: Likewise.
20561         * time/time.h: Likewise.
20562         * wcsmbs/wchar.h: Likewise.
20563
20564         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20565         open_by_handle): Add.
20566         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20567         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20568         Augment a few comments.
20569         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20570         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20571         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20572         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20573         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20574         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20575         open_by_handle.
20576
20577         * io/fcntl.h (AT_EMPTY_PATH): Define.
20578
20579 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20580
20581         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20582         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20583         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20584         to...
20585         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20586         * Versions.def: Add GLIBC_2.14.
20587         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20588         Export.
20589
20590 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20591
20592         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20593         round counter.
20594         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20595
20596 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20597
20598         [BZ #12597]
20599         * string/test-strncmp.c (do_page_test): New function.
20600         (check2): Likewise.
20601         (test_main): Call check2.
20602         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20603
20604 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20605
20606         [BZ #12587]
20607         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20608         Handle cache information in CPU leaf 4.
20609         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20610
20611 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20612
20613         [BZ #12583]
20614         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20615         character representation.
20616         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20617
20618 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20619
20620         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20621         END(__isnan) to END(__isnanf) to match function entry point/label
20622         EALIGN(__isnanf,...).
20623
20624 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20625
20626         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20627
20628 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20629
20630         [BZ #12510]
20631         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20632         copy from the symbol referenced in the relocation to initialize the
20633         used variable.
20634         Patch by Piotr Bury <pbury@goahead.com>.
20635         * elf/Makefile: Add rules to build and tst-unique3.
20636         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20637         * elf/tst-unique3.cc: New file.
20638         * elf/tst-unique3.h: New file.
20639         * elf/tst-unique3lib.cc: New file.
20640         * elf/tst-unique3lib2.cc: New file.
20641
20642         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20643
20644 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20645
20646         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20647         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20648         to _start.
20649
20650 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20651
20652         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20653         to-be-loaded object along a path to loader is ld.so.
20654
20655 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20656             Ulrich Drepper  <drepper@gmail.com>
20657
20658         * sysdeps/x86_64/memset.S: After aligning destination, code
20659         branches to different locations depending on the value of
20660         misalignment, when multiarch is enabled. Fix this.
20661
20662 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20663
20664         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20665         Set _x86_64_preferred_memory_instruction for AMD processsors.
20666         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20667         Set bit_Prefer_SSE_for_memop for AMD processors.
20668
20669 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20670
20671         * libio/fmemopen.c (fmemopen): Optimize a bit.
20672
20673 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20674
20675         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20676
20677 2011-03-03  Roland McGrath  <roland@redhat.com>
20678
20679         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20680
20681 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20682
20683         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20684         __bzero_ultra1 instead of __memset_ultra1.
20685
20686 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20687             Ulrich Drepper  <drepper@gmail.com>
20688
20689         [BZ #12509]
20690         * include/link.h (struct link_map): Add l_orig_initfini.
20691         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20692         returning unsuccessfully.
20693         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20694         close of a file loaded at startup, restore the original l_initfini
20695         list.
20696         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20697         list, store the pointer.
20698         * elf/Makefile ($(objpfx)noload-mem): New rule.
20699         (noload-ENV): Define.
20700         (tests): Add $(objpfx)noload-mem.
20701         * elf/noload.c: Include <memcheck.h>.
20702         (main): Call mtrace.  Close all opened handles.
20703
20704 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20705
20706         [BZ #12454]
20707         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20708         dependencies are missing.
20709
20710 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20711
20712         Fix __if_freereq crash: Unlike the generic version which uses free,
20713         Hurd needs munmap.
20714         * sysdeps/mach/hurd/ifreq.h: New file.
20715
20716 2011-01-27  Petr Baudis  <pasky@suse.cz>
20717             Ulrich Drepper  <drepper@gmail.com>
20718
20719         [BZ 12445]#
20720         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20721         to extend_alloca().
20722         * stdio-common/bug23.c: New file.
20723         * stdio-common/Makefile (tests): Add bug23.
20724
20725 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20726             Ulrich Drepper  <drepper@gmail.com>
20727
20728         [BZ #12489]
20729         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20730         before performing relro protection.  At old place add assertion
20731         to make sure nothing changed.
20732
20733 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20734             Glauber de Oliveira Costa  <glommer@gmail.com>
20735
20736         * elf/elf.h: Add new ARM TLS relocs.
20737
20738 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20739
20740         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20741         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20742         cast from r3.
20743         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20744         'tests' variable.
20745         * sysdeps/wordsize-64/tst-writev.c: New file.
20746
20747 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20748
20749         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20750         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20751         insns in _dl_start to prevent a TOC reference before relocs are
20752         resolved.
20753
20754 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20755
20756         [BZ #12469]
20757         * Makeconfig: Remove RANLIB definition.
20758         * Makerules: Don't use RANLIB.
20759         * aclocal.m4: Remove ranlib test.
20760         * configure.in: No need to check for ranlib.
20761         * elf/rtld-Rules: Don't use RANLIB.
20762
20763 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20764
20765         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20766         protection macro.
20767         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20768         inclusion protection macro.
20769
20770         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20771         SIGRTMIN and SIGRTMAX and print information in that case only when
20772         SIGRTMIN is defined.
20773
20774 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20775
20776         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20777         arginfo fn returning -1.
20778
20779         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20780         and thousands string is zero terminated.
20781
20782 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20783
20784         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20785         sysdeps/unix/sysv/linux/bits/socket.h.
20786
20787 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20788
20789         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20790         (__CPU_COUNT): Remove old macros.
20791         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20792         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20793         (__CPU_ALLOC, __CPU_FREE): Add macros.
20794         (__sched_cpualloc, __sched_cpufree): Add declarations.
20795
20796 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20797
20798         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20799         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20800         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20801         (readdhstai): Return value of addhstaiX call.
20802         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20803         (addgrbyX): Return value returned by cache_addgr.
20804         (readdgrbyname): Return value returned by addgrbyX.
20805         (readdgrbygid): Likewise.
20806         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20807         (addpwbyX): Return value returned by cache_addpw.
20808         (readdpwbyname): Return value returned by addhstbyX.
20809         (readdpwbyuid): Likewise.
20810         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20811         (addservbyX): Return value returned by cache_addserv.
20812         (readdservbyname): Return value returned by addservbyX:
20813         (readdservbyport): Likewise.
20814         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20815         (addhstbyX): Return value returned by cache_addhst.
20816         (readdhstbyname): Return value returned by addhstbyX.
20817         (readdhstbyaddr): Likewise.
20818         (readdhstbynamev6): Likewise.
20819         (readdhstbyaddrv6): Likewise.
20820         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20821         (readdinitgroups): Return value returned by addinitgroupsX.
20822         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20823         (prune_cache): Keep track of timeout value of re-added entries.
20824         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20825         * nscd/nscd.h: Adjust prototypes of readd* functions.
20826
20827 2011-02-04  Roland McGrath  <roland@redhat.com>
20828
20829         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20830         (nis_stats): Likewise.
20831         * nis/nis_modify.c (nis_modify): Likewise.
20832         * nis/nis_remove.c (nis_remove): Likewise.
20833         * nis/nis_add.c (nis_add): Likewise.
20834
20835         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20836
20837         * posix/fnmatch_loop.c: Add some consts.
20838
20839         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20840
20841 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20842
20843         [BZ #12460]
20844         * config.make.in (config-cflags-novzeroupper): Define.
20845         * configure.in: Substitute libc_cv_cc_novzeroupper.
20846         * elf/Makefile (AVX-CFLAGS): Define.
20847         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20848         (CFLAGS-tst-auditmod4a.c): Likewise.
20849         (CFLAGS-tst-auditmod4b.c): Likewise.
20850         (CFLAGS-tst-auditmod6b.c): Likewise.
20851         (CFLAGS-tst-auditmod6c.c): Likewise.
20852         (CFLAGS-tst-auditmod7b.c): Likewise.
20853         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20854
20855 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20856
20857         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20858         function to the callback.
20859         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20860
20861 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20862
20863         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20864         of errno.
20865
20866 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20867
20868         [BZ #11724]
20869         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20870         of constructors.
20871         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20872         of destructors.
20873         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20874
20875         [BZ #11724]
20876         * elf/Makefile: Add rules to build and run new test.
20877         * elf/tst-initorder.c: New file.
20878         * elf/tst-initorder.exp: New file.
20879         * elf/tst-initordera1.c: New file.
20880         * elf/tst-initordera2.c: New file.
20881         * elf/tst-initordera3.c: New file.
20882         * elf/tst-initordera4.c: New file.
20883         * elf/tst-initorderb1.c: New file.
20884         * elf/tst-initorderb2.c: New file.
20885         * elf/tst-order-a1.c: New file.
20886         * elf/tst-order-a2.c: New file.
20887         * elf/tst-order-a3.c: New file.
20888         * elf/tst-order-a4.c: New file.
20889         * elf/tst-order-b1.c: New file.
20890         * elf/tst-order-b2.c: New file.
20891         * elf/tst-order-main.c: New file.
20892         New test case by George Gensure <werkt0@gmail.com>.
20893
20894 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20895
20896         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20897         decoding ACE if AI_CANONIDN.
20898
20899 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20900
20901         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20902
20903 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20904
20905         * version.h (RELEASE): Bump for 2.13 release.
20906         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20907
20908         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20909
20910         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20911         MADV_NOHUGEPAGE.
20912         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20913         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20914         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20915         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20916         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20917         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20918
20919         * posix/getconf.c: Update copyright year.
20920         * catgets/gencat.c: Likewise.
20921         * csu/version.c: Likewise.
20922         * debug/catchsegv.sh: Likewise.
20923         * debug/xtrace.sh: Likewise.
20924         * elf/ldconfig.c: Likewise.
20925         * elf/ldd.bash.in: Likewise.
20926         * elf/sprof.c (print_version): Likewise.
20927         * iconv/iconv_prog.c: Likewise.
20928         * iconv/iconvconfig.c: Likewise.
20929         * locale/programs/locale.c: Likewise.
20930         * locale/programs/localedef.c: Likewise.
20931         * malloc/memusage.sh: Likewise.
20932         * malloc/mtrace.pl: Likewise.
20933         * nscd/nscd.c (print_version): Likewise.
20934         * nss/getent.c: Likewise.
20935
20936         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20937         PF_CAIF, and PF_ALG.
20938         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20939
20940 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20941
20942         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20943         (modules-names): Use them.
20944         (ifunc-test-modules, ifunc-pie-tests): Define.
20945         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20946         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20947         (test-extras): Likewise.
20948         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20949         $(compile-command.c).
20950         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20951         (all-built-dso): Define.
20952         (check-textrel.out, check-execstack.out): Depend on it.
20953
20954         * configure.in: Don't override --enable-multi-arch.
20955
20956 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20957
20958         [BZ #6812]
20959         * nscd/hstcache.c (tryagain): Define.
20960         (cache_addhst): Return tryagain not notfound for temporary errors.
20961         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
20962         failed.
20963
20964 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
20965
20966         [BZ #10563]
20967         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
20968         to make the syscall.
20969         * sysdeps/unix/sysv/linux/setgroups.c: New file.
20970
20971         [BZ #12378]
20972         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
20973         and fall back to matching as normal character if the string ends before
20974         the matching ']' is found.  This is what POSIX requires.
20975         * posix/testfnm.c: Adjust test result.
20976         * posix/globtest.sh: Adjust test result.  Add new test.
20977         * posix/tst-fnmatch.input: Likewise.
20978         * posix/tst-fnmatch2.c: Add new test.
20979
20980 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
20981
20982         * elf/Makefile (check-execstack): Revert last change.  Depend on
20983         check-execstack.h.
20984         (check-execstack.h): New target.
20985         (generated): Add check-execstack.h.
20986         * elf/check-execstack.c: Include "check-execstack.h".
20987         (main): Revert last change.
20988         (handle_file): Return zero if GNU_STACK is absent and
20989         DEFAULT_STACK_PERMS doesn't include PF_X.
20990
20991 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
20992
20993         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
20994         in child fails because the descriptor is already closed.
20995         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
20996         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
20997         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
20998
20999         [BZ #12397]
21000         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
21001         syscall.
21002
21003         [BZ #10484]
21004         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
21005         temporary buffer used to handle multi lookups locally.
21006         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
21007
21008 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21009
21010         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
21011         loader is ld.so.
21012
21013 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
21014
21015         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
21016         alignment for SSE2.
21017
21018 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21019
21020         [BZ #12394]
21021         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
21022         characters.  When rounding increased number of integer digits recompute
21023         number of groups.
21024         * stdio-common/tst-grouping.c: New file.
21025         * stdio-common/Makefile: Add rules to build and run tst-grouping.
21026
21027 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
21028
21029         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
21030         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
21031
21032         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
21033         void.
21034         * bits/select.h: Likewise.
21035
21036 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
21037
21038         * po/ja.po: Update from translation team.
21039
21040 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
21041
21042         [BZ #11155]
21043         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21044         implementation just like for lxstat, fxstatat, et al.
21045
21046 2010-12-27  Jim Meyering  <meyering@redhat.com>
21047
21048         [BZ #12348]
21049         * posix/regexec.c (build_trtable): Return failure indication upon
21050         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21051
21052 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21053
21054         [BZ #12201]
21055         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21056         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21057         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21058         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21059
21060         [BZ #12207]
21061         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21062
21063         [BZ #12204]
21064         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21065         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21066
21067 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21068
21069         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21070         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21071         script has SORT_BY_INIT_PRIORITY.
21072         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21073         NO_CTORS_DTORS_SECTIONS is defined.
21074         * elf/soinit.c: Likewise.
21075         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21076         NO_CTORS_DTORS_SECTIONS is defined.
21077         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21078         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21079         * sysdeps/sh/init-first.c: Likewise.
21080         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21081
21082 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21083
21084         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21085         always use the slow path.
21086
21087 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21088
21089         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21090         similar rule which adds the sysdep directories to the header search in
21091         order to pick up the correct platform stackinfo.h.
21092         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21093         perform test if it is, otherwise return successfully without testing.
21094         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21095         DEFAULT_STACK_PERMS define in stackinfo.h.
21096         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21097         defined in stackinfo.h.
21098         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21099         DEFAULT_STACK_PERMS defined in stackinfo.h.
21100         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21101         * sysdeps/ia64/stackinfo.h: Likewise.
21102         * sysdeps/s390/stackinfo.h: Likewise.
21103         * sysdeps/sh/stackinfo.h: Likewise.
21104         * sysdeps/sparc/stackinfo.h: Likewise.
21105         * sysdeps/x86_64/stackinfo.h: Likewise.
21106         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21107         PF_X for powerpc64.  Retain PF_X for powerpc32.
21108
21109 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21110
21111         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21112         accurately.
21113         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21114         GETDENTS_64BIT_ALIGNED.
21115
21116 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21117
21118         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21119
21120 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21121
21122         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21123         _GNU_SOURCE.
21124
21125         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21126         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21127         Remove __restrict.
21128         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21129         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21130
21131 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21132
21133         [BZ #11655]
21134         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21135         are initialized.
21136
21137 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21138
21139         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21140
21141 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21142
21143         * po/it.po: Update from translation team.
21144
21145 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21146
21147         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21148         unused codes.
21149
21150 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21151
21152         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21153
21154 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21155
21156         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21157         specially.
21158         (gaih_getanswer_slice): Likewise.
21159
21160 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21161
21162         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21163
21164 2010-05-31  Petr Baudis  <pasky@suse.cz>
21165
21166         [BZ #11149]
21167         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21168         silently even in the chroot mode.
21169
21170 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21171
21172         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21173         last patch a bit.  Pretty printing
21174
21175 2010-05-31  Petr Baudis <pasky@suse.cz>
21176
21177         [BZ #10085]
21178         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21179         initialization of skip_initgroups_dyn.
21180
21181 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21182
21183         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21184         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21185
21186 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21187
21188         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21189
21190 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21191
21192         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21193         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21194         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21195         ($(objpfx)tst-fnmatch-mem): New rule.
21196         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21197         * posix/tst-fnmatch.c (main): Call mtrace.
21198
21199 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21200
21201         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21202         Support Intel processor model 6 and model 0x2c.
21203
21204 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21205
21206         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21207           signed comparison.
21208
21209 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21210
21211         [BZ #12205]
21212         * string/test-strncasecmp.c (check_result): New function.
21213         (do_one_test): Use it.
21214         (check1): New function.
21215         (test_main): Use it.
21216         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21217         Support strcasecmp and strncasecmp.
21218
21219 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21220
21221         [BZ #12194]
21222         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21223         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21224
21225 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21226
21227         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21228         IFUNC support.
21229         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21230         memset-x86-64.
21231         * sysdeps/x86_64/multiarch/bzero.S: New file.
21232         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21233         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21234         * sysdeps/x86_64/multiarch/memset.S: New file.
21235         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21236         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21237         Set bit_Prefer_SSE_for_memop for Intel processors.
21238         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21239         Define.
21240         (index_Prefer_SSE_for_memop): Define.
21241         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21242
21243 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21244
21245         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21246         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21247
21248 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21249
21250         [BZ #12191]
21251         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21252         (__x86_64_raw_data_cache_size_half): Likewise.
21253         (__x86_64_raw_shared_cache_size): Likewise.
21254         (__x86_64_raw_shared_cache_size_half): Likewise.
21255
21256         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21257         (__x86_64_raw_data_cache_size_half): Likewise.
21258         (__x86_64_raw_shared_cache_size): Likewise.
21259         (__x86_64_raw_shared_cache_size_half): Likewise.
21260         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21261         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21262         and __x86_64_raw_shared_cache_size_half.  Round
21263         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21264         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21265         to multiple of 256 bytes.
21266
21267 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21268
21269         [BZ #12167]
21270         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21271         of inacessible symlinks.  Verify result of symlink before returning it.
21272         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21273         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21274
21275 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21276
21277         * math/math.h (isinf): Fix typo in comment.
21278
21279 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21280
21281         * po/da.po: Update from translation team.
21282
21283 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21284
21285         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21286         is added to the list.
21287
21288 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21289             Ulrich Drepper  <drepper@gmail.com>
21290
21291         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21292         the global list here.  Move code to...
21293         (_dl_add_to_namespace_list): ...here.  New function.
21294         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21295         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21296         * elf/dl-load.c (lose): Don't remove the element from the list.
21297         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21298         (_dl_map_object): Likewise.
21299
21300 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21301
21302         [BZ #12159]
21303         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21304         into all bytes of SSE register.
21305         Patch by Richard Li <richardpku@gmail.com>.
21306
21307 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21308
21309         [BZ #12140]
21310         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21311         perturbing.
21312
21313 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21314
21315         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21316         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21317         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21318         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21320         submachine.
21321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21322
21323 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21324
21325         * include/dlfcn.h (__RTLD_SECURE): Define.
21326         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21327         mode & __RTLD_SECURE instead.
21328         (open_path): Rename preloaded parameter to secure.
21329         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21330         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21331         * elf/dl-deps.c (openaux): Likewise.
21332         * elf/rtld.c (struct map_args): Remove is_preloaded.
21333         (map_doit): Don't use it.
21334         (dl_main): Likewise.
21335         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21336         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21337
21338 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21339
21340         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21341         (sysd-rules-targets): Remove duplicates.
21342         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21343         rtld-%.$o dependency.
21344
21345 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21346
21347         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21348         _dl_map_object do it.
21349
21350 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21351
21352         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21353         fast fma builtins, define the macros in the C99 standard.
21354         (FP_FAST_FMAF): Likewise.
21355         (FP_FAST_FMAL): Likewise.
21356         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21357
21358         * bits/mathdef.h: Update copyright year.
21359         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21360
21361 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21362
21363         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21364         builtins, define the macros in the C99 standard.
21365         (FP_FAST_FMAF): Likewise.
21366         (FP_FAST_FMAL): Likewise.
21367         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21368         multiply/add.
21369         (FP_FAST_FMAF): Likewise.
21370
21371 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21372
21373         [BZ #3268]
21374         * math/libm-test.inc (fma_test): Some new testcases.
21375         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21376         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21377         y and infinite z.  Do multiplication by C already in long double.
21378         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21379         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21380         y and infinite z.  Do bitwise or of inexact bit into u.d.
21381         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21382         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21383         * sysdeps/i386/fpu/s_fma.S: Removed.
21384         * sysdeps/i386/fpu/s_fmal.S: Removed.
21385
21386 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21387
21388         [BZ #3268]
21389         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21390         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21391         computation is not scheduled after fetestexcept.  Fix value
21392         of minimum denormal long double.
21393
21394 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21395
21396         [BZ #3268]
21397         * math/libm-test.inc (fma_test): Add some more tests.
21398         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21399         correctly.
21400
21401 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21402
21403         * scripts/data/localplt-s390-linux-gnu.data: New file.
21404         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21405
21406 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21407
21408         [BZ #3268]
21409         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21410         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21411         instead of dbl-64.
21412         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21413         inlines.
21414         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21415         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21416         if one of x and y is very large and the other is subnormal.
21417         * sysdeps/s390/fpu/s_fmaf.c: New file.
21418         * sysdeps/s390/fpu/s_fma.c: New file.
21419         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21420         * sysdeps/powerpc/fpu/s_fma.S: New file.
21421         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21422         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21423         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21424
21425 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21426
21427         [BZ #3268]
21428         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21429         fma tests.
21430         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21431         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21432         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21433         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21434         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21435         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21436         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21437
21438 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21439
21440         [BZ #12078]
21441         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21442         * posix/bug-regex31.input: Add test case.
21443
21444 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21445
21446         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21447         * posix/bug-regex31.input: New file.
21448
21449         [BZ #12078]
21450         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21451         (parse_sub_exp): Fix last change, use postorder.
21452
21453         * posix/bug-regex31.c: New file.
21454         * posix/Makefile: Add rules to build and run bug-regex31.
21455
21456         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21457
21458         [BZ #12078]
21459         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21460
21461         [BZ #12108]
21462         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21463         to have entries in sys_siglist.
21464
21465         [BZ #12093]
21466         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21467         be NULL.
21468
21469 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21470
21471         [BZ #3268]
21472         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21473         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21474         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21475         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21476         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21477         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21478         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21479         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21480         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21481         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21482         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21483         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21484         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21485         * math/ftestexcept.c (fetestexcept): Likewise.
21486         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21487         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21488         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21489         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21490         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21491         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21492         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21493
21494 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21495
21496         [BZ #12107]
21497         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21498         newline.
21499
21500 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21501
21502         * string/bug-strstr1.c: New file.
21503         * string/Makefile: Add rules to build and run bug-strstr1.
21504
21505 2010-10-05  Eric Blake  <eblake@redhat.com>
21506
21507         [BZ #12092]
21508         * string/str-two-way.h (two_way_long_needle): Always clear memory
21509         when skipping input due to the shift table.
21510
21511 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21512
21513         [BZ #12005]
21514         * malloc/mcheck.c: Handle large requests.
21515
21516         [BZ #12077]
21517         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21518         for strncmp and strncasecmp.
21519         * string/stratcliff.c: Add tests for strcmp and strncmp.
21520         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21521
21522 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21523
21524         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21525         __set_fpscr.
21526
21527 2010-09-30  Andreas Jaeger  <aj@suse.de>
21528
21529         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21530         (CGROUP_SUPER_MAGIC): Define.
21531         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21532         Handle btrfs and cgroup file systems.
21533         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21534         Likewise.
21535
21536 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21537
21538         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21539         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21540
21541 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21542
21543         [BZ #12067]
21544         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21545         trying to locate the ELF header.
21546
21547 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21548
21549         [BZ #11611]
21550         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21551         Mask out sign-bit copies when constructing f_fsid.
21552
21553 2010-09-24  Petr Baudis <pasky@suse.cz>
21554
21555         * debug/stack_chk_fail_local.c: Add missing licence exception.
21556         * debug/warning-nop.c: Likewise.
21557
21558 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21559
21560         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21561         implementing getdents64 using getdents syscall, set d_type if
21562         __ASSUME_GETDENTS32_D_TYPE.
21563
21564 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21565
21566         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21567         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21568
21569 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21570
21571         [BZ #12037]
21572         * posix/unistd.h: Undo change of feature selection for ftruncate from
21573         2010-01-11.
21574
21575 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21576
21577         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21578         detection.
21579
21580 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21581
21582         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21583         fanotify_mark.
21584         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21585
21586 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21587
21588         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21589         variables after CHECK_SP call.
21590         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21591
21592 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21593             Ulrich Drepper  <drepper@redhat.com>
21594
21595         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21596         re-relocationg ld.so.
21597         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21598         _dl_init_paths call.
21599         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21600         here anymore.
21601
21602 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21603
21604         * resolv/res_init.c (__res_vinit): Count the default server we added.
21605
21606 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21607             Ulrich Drepper  <drepper@redhat.com>
21608
21609         [BZ #11968]
21610         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21611         (____longjmp_chk): Use %ebx for saving value across system call.
21612         Add unwind info.
21613
21614 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21615
21616         * manual/Makefile: Don't mix pattern rules with normal rules.
21617
21618 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21619
21620         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21621         operation.
21622         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21623         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21624         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21625         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21626         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21627         Likewise.
21628
21629 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21630
21631         [BZ #11979]
21632         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21633         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21634
21635 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21636
21637         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21638         * sysdeps/x86_64/addmul_1.S: Likewise.
21639         * sysdeps/x86_64/lshift.S: Likewise.
21640         * sysdeps/x86_64/mul_1.S: Likewise.
21641         * sysdeps/x86_64/rshift.S: Likewise.
21642         * sysdeps/x86_64/sub_n.S: Likewise.
21643         * sysdeps/x86_64/submul_1.S: Likewise.
21644
21645 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21646
21647         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21648         Define __sched_param instead of SCHED_* and sched_param when
21649         <bits/sched.h> is included with __need_schedparam defined.
21650         * bits/sched.h [__need_schedparam]
21651         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21652         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21653         (__defined_schedparam): Define to 1.
21654         (__sched_param): New structure, identical to sched_param.
21655         (__need_schedparam): Undefine.
21656
21657 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21658
21659         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21660         (epoll_create1): Declare.
21661
21662         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21663
21664 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21665
21666         [BZ #7066]
21667         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21668         shifting retval into place.
21669
21670 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21671
21672         * nis/rpcsvc/nis.h: Update copyright notice.
21673         * nis/rpcsvc/nis.x: Likewise.
21674         * nis/rpcsvc/nis_callback.h: Likewise.
21675         * nis/rpcsvc/nis_callback.x: Likewise.
21676         * nis/rpcsvc/nis_object.x: Likewise.
21677         * nis/rpcsvc/nis_tags.h: Likewise.
21678         * nis/rpcsvc/yp.h: Likewise.
21679         * nis/rpcsvc/yp.x: Likewise.
21680         * nis/rpcsvc/ypupd.h: Likewise.
21681         * nis/yp_xdr.c: Likewise.
21682         * nis/ypupdate_xdr.c: Likewise.
21683
21684         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21685         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21686         (pmap_getport): Use __libc_rpc_getport.
21687         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21688         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21689         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21690
21691 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21692
21693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21694         fanotify_mark.
21695
21696 2010-08-27  Roland McGrath  <roland@redhat.com>
21697
21698         * sysdeps/i386/i686/multiarch/Makefile
21699         (CFLAGS-varshift.c): New variable.
21700
21701 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21702
21703         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21704         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21705
21706         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21707
21708         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21709
21710 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21711
21712         * sysdeps/x86_64/strlen.S: Unroll the loop.
21713         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21714         strlen-sse2 strlen-sse2-bsf.
21715         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21716         __strlen_no_bsf if bit_Slow_BSF is set.
21717         (__strlen_sse42): Removed.
21718         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21719         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21720
21721 2010-08-25  Roland McGrath  <roland@redhat.com>
21722
21723         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21724         * sysdeps/x86_64/multiarch/varshift.c: New file.
21725         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21726         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21727         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21728         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21729
21730 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21731
21732         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21733         strlen-sse2 strlen-sse2-bsf.
21734         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21735         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21736         (__strlen_sse2): Removed.
21737         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21738         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21739         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21740         bit_Slow_BSF for Atom.
21741         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21742         (index_Slow_BSF): Define.
21743         (HAS_SLOW_BSF): Define.
21744
21745 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21746
21747         [BZ #10851]
21748         * resolv/res_init.c (__res_vinit): When no server address at all
21749         is given default to loopback.
21750
21751 2010-08-24  Roland McGrath  <roland@redhat.com>
21752
21753         * configure.in: Remove config-name.h generation.
21754         * configure: Regenerated.
21755         * config-name.in: File removed.
21756         * scripts/config-uname.sh: New file.
21757         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21758         ($(objdir)config-name.h): New target.
21759
21760         * sunrpc/rpc_parse.h: Avoid nested comment.
21761
21762 2010-08-24  Richard Henderson  <rth@redhat.com>
21763             Ulrich Drepper  <drepper@redhat.com>
21764             H.J. Lu  <hongjiu.lu@intel.com>
21765
21766         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21767         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21768         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21769         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21770         _mm_alignr_epi8 with _mm_loadu_si128.
21771         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21772         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21773         (__m128i_shift_right): Removed.
21774         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21775         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21776         * sysdeps/x86_64/multiarch/varshift.h: New file.
21777         * sysdeps/x86_64/multiarch/varshift.S: New file.
21778
21779 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21780
21781         * configure.in: Move assembler checks to before sysdep dir checking.
21782
21783 2010-08-20  Petr Baudis  <pasky@suse.cz>
21784
21785         * LICENSES: Sync the sunrpc license.
21786
21787 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21788
21789         * sunrpc/auth_des.c: Update copyright notice once again.
21790         * sunrpc/auth_none.c: Likewise.
21791         * sunrpc/auth_unix.c: Likewise.
21792         * sunrpc/authdes_prot.c: Likewise.
21793         * sunrpc/authuxprot.c: Likewise.
21794         * sunrpc/bindrsvprt.c: Likewise.
21795         * sunrpc/clnt_gen.c: Likewise.
21796         * sunrpc/clnt_perr.c: Likewise.
21797         * sunrpc/clnt_raw.c: Likewise.
21798         * sunrpc/clnt_simp.c: Likewise.
21799         * sunrpc/clnt_tcp.c: Likewise.
21800         * sunrpc/clnt_udp.c: Likewise.
21801         * sunrpc/clnt_unix.c: Likewise.
21802         * sunrpc/des_crypt.c: Likewise.
21803         * sunrpc/des_soft.c: Likewise.
21804         * sunrpc/get_myaddr.c: Likewise.
21805         * sunrpc/getrpcport.c: Likewise.
21806         * sunrpc/key_call.c: Likewise.
21807         * sunrpc/key_prot.c: Likewise.
21808         * sunrpc/openchild.c: Likewise.
21809         * sunrpc/pm_getmaps.c: Likewise.
21810         * sunrpc/pm_getport.c: Likewise.
21811         * sunrpc/pmap_clnt.c: Likewise.
21812         * sunrpc/pmap_prot.c: Likewise.
21813         * sunrpc/pmap_prot2.c: Likewise.
21814         * sunrpc/pmap_rmt.c: Likewise.
21815         * sunrpc/rpc/auth.h: Likewise.
21816         * sunrpc/rpc/auth_unix.h: Likewise.
21817         * sunrpc/rpc/clnt.h: Likewise.
21818         * sunrpc/rpc/des_crypt.h: Likewise.
21819         * sunrpc/rpc/key_prot.h: Likewise.
21820         * sunrpc/rpc/netdb.h: Likewise.
21821         * sunrpc/rpc/pmap_clnt.h: Likewise.
21822         * sunrpc/rpc/pmap_prot.h: Likewise.
21823         * sunrpc/rpc/pmap_rmt.h: Likewise.
21824         * sunrpc/rpc/rpc.h: Likewise.
21825         * sunrpc/rpc/rpc_des.h: Likewise.
21826         * sunrpc/rpc/rpc_msg.h: Likewise.
21827         * sunrpc/rpc/svc.h: Likewise.
21828         * sunrpc/rpc/svc_auth.h: Likewise.
21829         * sunrpc/rpc/types.h: Likewise.
21830         * sunrpc/rpc/xdr.h: Likewise.
21831         * sunrpc/rpc_clntout.c: Likewise.
21832         * sunrpc/rpc_cmsg.c: Likewise.
21833         * sunrpc/rpc_common.c: Likewise.
21834         * sunrpc/rpc_cout.c: Likewise.
21835         * sunrpc/rpc_dtable.c: Likewise.
21836         * sunrpc/rpc_hout.c: Likewise.
21837         * sunrpc/rpc_main.c: Likewise.
21838         * sunrpc/rpc_parse.c: Likewise.
21839         * sunrpc/rpc_parse.h: Likewise.
21840         * sunrpc/rpc_prot.c: Likewise.
21841         * sunrpc/rpc_sample.c: Likewise.
21842         * sunrpc/rpc_scan.c: Likewise.
21843         * sunrpc/rpc_scan.h: Likewise.
21844         * sunrpc/rpc_svcout.c: Likewise.
21845         * sunrpc/rpc_tblout.c: Likewise.
21846         * sunrpc/rpc_util.c: Likewise.
21847         * sunrpc/rpc_util.h: Likewise.
21848         * sunrpc/rpcinfo.c: Likewise.
21849         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21850         * sunrpc/rpcsvc/key_prot.x: Likewise.
21851         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21852         * sunrpc/rpcsvc/mount.x: Likewise.
21853         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21854         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21855         * sunrpc/rpcsvc/rex.x: Likewise.
21856         * sunrpc/rpcsvc/rstat.x: Likewise.
21857         * sunrpc/rpcsvc/rusers.x: Likewise.
21858         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21859         * sunrpc/rpcsvc/spray.x: Likewise.
21860         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21861         * sunrpc/rtime.c: Likewise.
21862         * sunrpc/svc.c: Likewise.
21863         * sunrpc/svc_auth.c: Likewise.
21864         * sunrpc/svc_authux.c: Likewise.
21865         * sunrpc/svc_raw.c: Likewise.
21866         * sunrpc/svc_run.c: Likewise.
21867         * sunrpc/svc_simple.c: Likewise.
21868         * sunrpc/svc_tcp.c: Likewise.
21869         * sunrpc/svc_udp.c: Likewise.
21870         * sunrpc/svc_unix.c: Likewise.
21871         * sunrpc/svcauth_des.c: Likewise.
21872         * sunrpc/xcrypt.c: Likewise.
21873         * sunrpc/xdr.c: Likewise.
21874         * sunrpc/xdr_array.c: Likewise.
21875         * sunrpc/xdr_float.c: Likewise.
21876         * sunrpc/xdr_mem.c: Likewise.
21877         * sunrpc/xdr_rec.c: Likewise.
21878         * sunrpc/xdr_ref.c: Likewise.
21879         * sunrpc/xdr_sizeof.c: Likewise.
21880         * sunrpc/xdr_stdio.c: Likewise.
21881
21882         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21883         handling.
21884
21885 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21886
21887         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21888
21889 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21890
21891         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21892         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21893         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21894         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21895         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21896         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21897         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21898         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21899         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21900         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21901         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21902         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21903         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21904         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21905
21906 2010-07-26  Anton Blanchard  <anton@samba.org>
21907
21908         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21909         * malloc/arena.c (heap_trim): Likewise.
21910
21911 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21912
21913         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21914         here.  Not...
21915         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21916         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21917
21918 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21919
21920         * sysdeps/i386/elf/Makefile: New file.
21921
21922 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21923
21924         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21925         from fanotify_init.
21926         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21927         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21928
21929 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21930
21931         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21932         of strncasecmp_l.
21933         * sysdeps/multiarch/strcmp.S: Likewise.
21934
21935 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21936
21937         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21938         strncase_l-nonascii.
21939         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21940         Add strncase_l-ssse3.
21941         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21942         * sysdeps/x86_64/strcmp.S: Likewise.
21943         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21944         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21945         * sysdeps/x86_64/strncase.S: New file.
21946         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21947         * sysdeps/x86_64/strncase_l.S: New file.
21948         * string/Makefile (strop-tests): Add strncasecmp.
21949         * string/test-strncasecmp.c: New file.
21950
21951         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21952         warning.
21953
21954         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21955         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21956
21957 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21958
21959         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
21960
21961 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
21962
21963         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
21964         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
21965         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
21966
21967 2010-05-01  Alan Modra  <amodra@gmail.com>
21968
21969         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
21970         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
21971         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
21972         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
21973         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
21974         tidying.  Don't tail-call __sigjmp_save for static lib.
21975         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
21976         save location.
21977         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
21978         (CALL_MCOUNT): Add eh info, and nop after bl.
21979         (TAIL_CALL_SYSCALL_ERROR): New macro.
21980         (PSEUDO_RET): Use it.
21981         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
21982         Correct save location of integer regs and cr.
21983         (_dl_profile_resolve): Correct cr save location.  Delete nops
21984         after bl when SHARED.  Reduce cfi size a little by better
21985         placement of cfi directives.
21986         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
21987         make a stack frame.  Instead use parm save area as a temp.
21988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
21989         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
21990         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
21991         Don't make a stack frame for parent, use parm save area.
21992         Increase child stack frame to 112 bytes.  Don't save unused reg,
21993         and adjust reg usage.  Set up cfi on error recovery and
21994         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
21995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
21996         (__makecontext): Add dummy nop after jump to exit.
21997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
21998         Use correct parm save area and cr save, reduce stack frame.
21999         Correct cfi for possible PSEUDO_RET frame setup.
22000         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
22001         Branch to local label emitted by PSEUDO_RET rather than
22002         __syscall_error.
22003
22004 2010-08-12  Andreas Schwab  <schwab@redhat.com>
22005
22006         [BZ #11904]
22007         * locale/programs/locale.c (print_assignment): New function.
22008         (show_locale_vars): Use it.
22009
22010 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
22011
22012         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
22013         field.
22014         (struct statfs64): Likewise.
22015         (_STATFS_F_FLAGS): Define.
22016         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
22017         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22018         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
22019         (ST_VALID): Define locally.
22020         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
22021         __statvfs_getflags, use the provided value.
22022         * sysdeps/unix/sysv/linux/kernel-features.h: Define
22023         __ASSUME_STATFS_F_FLAGS.
22024
22025         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
22026
22027         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
22028         Add sys/fanotify.h.
22029         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
22030         fanotify_mask for GLIBC_2.13.
22031         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
22032         fanotify_init and fanotify_mark.
22033         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22034         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
22035
22036         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22037         Add prlimit.
22038         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22039         prlimit64 for GLIBC_2.13.
22040         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22041         prlimit64.
22042         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22043         syscall.
22044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22045         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22046         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22047         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22048         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22049         add prlimit alias.
22050         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22051
22052         [BZ #11903]
22053         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22054         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22055
22056         * nss/Makefile: Add rules to build and run tst-nss-test1.
22057         * shlib-versions: Add entry for libnss_test1.
22058         * nss/nss_test1.c: New file.
22059         * nss/tst-nss-test1.c: New file.
22060
22061         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22062         (__nss_configure_lookup): Set appropriate entry in
22063         __nss_configure_lookup to true.
22064         * nss/nsswitch.h: Define enum with indeces of databases in
22065         databases and __nss_database_custom arrays.  Declare
22066         __nss_database_custom.
22067         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22068         to avoid using nscd when custom rules are installed.
22069         * nss/getXXbyYY_r.c: Likewise.
22070         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22071
22072         * nss/nss_files/files-parse.c: Whitespace fixes.
22073
22074 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22075
22076         [BZ #11883]
22077         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22078         * posix/fnmatch_loop.c: Likewise.
22079
22080 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22081
22082         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22083         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22084         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22085         * Versions.def [GLIBC_2.13]: Add.
22086
22087 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22088
22089         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22090         Also fail if tpwd after pwuid call is NULL.
22091
22092 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22093
22094         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22095         when converting to ms.
22096
22097 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22098
22099         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22100         EOPNOTSUPP errors with ENOTTY.
22101         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22102         EOPNOTSUPP errors with ENOTTY.
22103
22104 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22105
22106         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22107         Add strcasecmp_l-ssse3.
22108         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22109         strcasecmp.
22110         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22111         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22112         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22113
22114 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22115
22116         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22117
22118         * string/Makefile (strop-tests): Add strcasecmp.
22119         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22120         strcasecmp_l-nonascii.
22121         (gen-as-const-headers): Add locale-defines.sym.
22122         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22123         * sysdeps/x86_64/strcasecmp.S: New file.
22124         * sysdeps/x86_64/strcasecmp_l.S: New file.
22125         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22126         * sysdeps/x86_64/locale-defines.sym: New file.
22127         * string/test-strcasecmp.c: New file.
22128
22129         * string/test-strcasestr.c: Test both ends of the range of characters.
22130         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22131
22132 2010-07-29  Roland McGrath  <roland@redhat.com>
22133
22134         [BZ #11856]
22135         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22136
22137 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22138
22139         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22140         for ld.so.
22141
22142 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22143
22144         * manual/memory.texi (Malloc Tunable Parameters): Document
22145         M_PERTURB.
22146
22147 2010-07-26  Roland McGrath  <roland@redhat.com>
22148
22149         [BZ #11840]
22150         * configure.in (-fgnu89-inline check): Set and substitute
22151         gnu89_inline, not libc_cv_gnu89_inline.
22152         * configure: Regenerated.
22153         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22154
22155 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22156
22157         * string/test-strnlen.c: New file.
22158         * string/Makefile (strop-tests): Add strnlen.
22159         * string/tester.c (test_strnlen): Add a few more test cases.
22160         * string/tst-strlen.c: Better error reporting.
22161
22162         * sysdeps/x86_64/strnlen.S: New file.
22163
22164 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22165
22166         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22167         lower-latency instructions.
22168
22169 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22170
22171         * string/test-strcasestr.c: New file.
22172         * string/test-strstr.c: New file.
22173         * string/Makefile (strop-tests): Add strstr and strcasestr.
22174         * string/str-two-way.h: Don't undefine MAX.
22175         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22176
22177 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22178
22179         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22180         strcasestr-nonascii.
22181         (CFLAGS-strcasestr-nonascii.c): Define.
22182         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22183         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22184         Remove unused attribute.
22185
22186 2010-07-20  Roland McGrath  <roland@redhat.com>
22187
22188         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22189         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22190         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22191         like LD_HWCAP_MASK can disable hwcaps.
22192
22193 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22194
22195         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22196
22197 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22198
22199         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22200         call in strcasestr.
22201         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22202         __strcasestr_sse42_nonascii.
22203         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22204         strcasestr-nonascii.c.
22205         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22206
22207 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22208
22209         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22210         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22211         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22212         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22213
22214 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22215
22216         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22217         fcntl.
22218
22219 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22220
22221         [BZ #11577]
22222         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22223         dl_signal_cerror.
22224
22225 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22226
22227         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22228         _PC_PIPE_BUF using F_GETPIPE_SZ.
22229
22230 2010-07-05  Roland McGrath  <roland@redhat.com>
22231
22232         * manual/arith.texi (Rounding Functions): Fix rint description
22233         implicit in round description.
22234
22235 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22236
22237         * elf/Makefile: Fix linking for a few tests to make recent linker
22238         happy.
22239
22240 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22241
22242         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22243         $(common-objpfx)libc_nonshared.a.
22244
22245 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22246
22247         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22248         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22249         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22250         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22251         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22252         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22253         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22254         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22255         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22258         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22260         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22263         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22267         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22269         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22270         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22271         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22272         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22273         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22274         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22275         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22276         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22277         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22278         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22279         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22280         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22283         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22285         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22286         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22290         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22292         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22293         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22295
22296 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22297
22298         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22299         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22300         * string/memmove.c (memmove): Renamed to ...
22301         (MEMMOVE): ...this.  Default to memmove.
22302         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22303         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22304         (END_CHK): Define.
22305         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22306         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22307         mempcpy-ssse3-back memmove-ssse3-back.
22308         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22309         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22310         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22311         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22312         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22313         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22314         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22315         * sysdeps/x86_64/multiarch/memmove.c: New file.
22316         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22317         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22318         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22319         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22320         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22321         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22322         Define.
22323         (index_Fast_Copy_Backward): Define.
22324         (HAS_ARCH_FEATURE): Define.
22325         (HAS_FAST_REP_STRING): Define.
22326         (HAS_FAST_COPY_BACKWARD): Define.
22327
22328 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22329
22330         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22331         Restore proper fallback handling.
22332
22333 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22334
22335         [BZ #11701]
22336         * posix/group_member.c (__group_member): Correct checking loop.
22337
22338         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22339         OOM in getpwuid_r correctly.  Return error number when the caller
22340         should return, otherwise -1.
22341         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22342         call returning > 0 value.
22343         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22344
22345 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22346
22347         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22348         libc_nonshared.a from targets in modules-names.
22349
22350 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22351
22352         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22353         requires it.
22354
22355 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22356
22357         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22358         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22359         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22360         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22361
22362 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22363
22364         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22365
22366 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22367
22368         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22369         and F_GETPIPE_SZ.
22370         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22371         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22372         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22373         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22374         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22375         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22376
22377 2010-06-14  Roland McGrath  <roland@redhat.com>
22378
22379         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22380
22381 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22382
22383         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22384         __REDIRECT followed by __THROW.
22385         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22386         * posix/getopt.h (getopt): Likewise.
22387
22388 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22389
22390         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22391         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22392         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22393         in AT_FLAGS.
22394         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22395         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22396
22397 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22398
22399         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22400
22401 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22402
22403         [BZ #11640]
22404         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22405         Properly check family and model.
22406
22407 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22408
22409         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22410
22411 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22412
22413         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22414
22415 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22416
22417         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22418         symbol reference.
22419
22420 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22421
22422         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22423         symbol reference.
22424
22425 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22426
22427         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22428         and internal_recvmmsg.
22429         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22430         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22431         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22432         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22433
22434         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22435         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22436         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22437
22438 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22439
22440         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22441
22442 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22443
22444         POWER7 optimizations.
22445         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22446         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22447
22448 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22449
22450         * version.h: Update for 2.13 development version.
22451
22452 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22453
22454         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22455         exceptions.  Return 0.
22456
22457 2010-05-07  Roland McGrath  <roland@redhat.com>
22458
22459         * elf/ldconfig.c (main): Add a const.
22460
22461 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22462
22463         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22464         (args_options): Add no-idn option.
22465         (ahosts_keys_int): Add idn_flags to ai_flags.
22466         (parse_option): Handle 'i' option to clear idn_flags.
22467
22468         * malloc/malloc.c (_int_free): Possible race in the most recently
22469         added check.  Only act on the data if no current modification
22470         happened.
22471
22472 See ChangeLog.17 for earlier changes.