Hurd: implement syncfs
[platform/upstream/glibc.git] / ChangeLog
1 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
2
3         * sysdeps/mach/hurd/syncfs.c: New file.
4
5 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6
7         [BZ #14719]
8         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
9         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
10         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
11         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
12         (_nss_dns_gethostbyname4_r): Likewise.
13         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
14         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
15
16 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
17
18         [BZ #13763]
19         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
20
21 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
22
23         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
24         * elf/cache.c (print_entry): Print ",AArch64" for
25         FLAG_AARCH64_LIB64
26
27         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
28         * elf/cache.c (print_entry): Print ",hard-float" for
29         FLAG_ARM_LIBHF.
30
31 2012-11-18  David S. Miller  <davem@davemloft.net>
32
33         With help from Joseph Myers.
34         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
35         cutoff to 2**-13.
36         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
37         cutoff to 2**-25.
38         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
39         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
40         small.
41         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
42         * math/libm-test.inc (y0_test): New tests.
43         (y1_test): New tests.
44         * sysdeps/i386/fpu/libm-test-ulps: Update.
45         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
46         * sysdeps/sparc/fpu/libm-test-ulps: Update.
47
48 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
49
50         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
51         64-bit targets.
52         * configure: Regenerated.
53
54 2012-11-17  David S. Miller  <davem@davemloft.net>
55
56         [BZ #14811]
57         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
58         nonzero exponents with absolute value below 0x1p-128 to +/-
59         0x1p-128.
60
61 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
62
63         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
64
65         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
66
67         * posix/getconf-speclist.c: New file.
68         * posix/posix-envs.def: Likewise.
69         * posix/confstr.c (START_ENV_GROUP): New macro.
70         (END_ENV_GROUP): Likewise.
71         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
72         (KNOWN_PRESENT_ENV_STRING): Likewise.
73         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
74         (UNKNOWN_ENVIRONMENT): Likewise.
75         (confstr): Include posix-envs.def instead of handling
76         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
77         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
78         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
79         (END_ENV_GROUP): Likewise.
80         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
81         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
82         (UNKNOWN_ENVIRONMENT): Likewise.
83         (__sysconf): Include posix-envs.def instead of handling associated
84         cases directly here.
85         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
86         preprocessing getconf-speclist.c rather than running getconf or
87         generating empty file.
88
89 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
90
91         * scripts/check-local-headers.sh: Ignore 'mach' headers.
92
93 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
94
95         [BZ #14672]
96         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
97
98 2012-11-16  David S. Miller  <davem@davemloft.net>
99
100         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
101         smaller than LDBL_EPSILON/2.0L, just return xm1.
102
103 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
104
105         * elf/tst-array1.c (init): Set constructor priority to 1000.
106         (fini): Set destructor priority to 1000.
107         * elf/tst-array2dep.c: Likewise.
108
109 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
110
111         [BZ #11741]
112         * libio/fileops.c (_IO_new_file_write): Correctly return error.
113         (_IO_new_file_xsputn): Also return EOF if none of the input
114         data was written when overflow failed.
115         * libio/iopadn.c (_IO_padn): Likewise.
116         * libio/iowpadn.c (_IO_wpadn): Likewise.
117         * stdio-common/tst-put-error.c: Add copyright notice.
118         (do_test): Add case for printing padded string.
119         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
120         _IO_padn returned error.
121         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
122         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
123         return EOF.
124
125 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
126
127         * libio/libioP.h: Add comment note that the references to C++
128         bits are now obsolete.
129
130 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
131
132         * math/libm-test.inc (check_complex): Use asprintf.
133
134 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
135
136         * debug/pcprofiledump.c (print_version): Update copyright year.
137         * malloc/memusagestat.c (print_version): Likewise.
138
139 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
140
141         [BZ #14831]
142         * elf/Makefile (tests): Add tst-audit8.
143         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
144         ($(objpfx)tst-audit8.out): New target.
145         (tst-audit8-ENV): New variable.
146         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
147         audit if l_reloc_result is NULL.
148         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
149         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
150         * elf/tst-audit8.c: New file.
151
152 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
153
154         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
155         * misc/Makefile (CFLAGS-select.c): Define.
156         * posix/Makefile (CFLAGS-pause.c): Define.
157
158 2012-11-13  David S. Miller  <davem@davemloft.net>
159
160         * crypt/Makefile: Move test targets after toplevel Rules
161         inclusion.  Grab any necessary sysdep routines when linking.
162         * crypt/md5.c (md5_process_block): Remove define, we will always
163         name it __md5_process_block.
164         (md5_finish_ctx): Update md5_process_block call.
165         (md5_stream): Likewise.
166         (md5_process_bytes): Likewise.
167         (md5_process_block): Rename to __md5_process_block and move to ...
168         * crypt/md5-block.c: ... here.
169         * crypt/sha256.c (sha256_process_block): Move to ...
170         * crypt/sha256-block.c: ... here.
171         * crypt/sha512.c (sha512_process_block): Move to ...
172         * crypt/sha512-block.c: ... here.
173         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
174         path.
175         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
176         * sysdeps/sparc/sparc64/multiarch/Makefile
177         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
178         crypt subdir.
179         (localedef-aux): Add md5 crypto assembler when in locale subdir.
180         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
181         multiarch changes.
182         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
183         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
184         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
185         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
186         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
187         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
188         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
189         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
190         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
191         file.
192         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
193         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
194         file.
195         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
196
197 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
198
199         * timezone/tzselect.ksh: Update from tzcode git revision
200         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
201         * timezone/zdump.c: Likewise.
202         * timezone/zic.c: Likewise.
203         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
204         in TZVERSION setting, not $(PKGVERSION).
205         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
206         REPORT_BUGS_TO settings.
207
208         [BZ #14838]
209         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
210         macro.
211
212 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
213
214         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
215         detection to immediately after _FP_ROUND().
216         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
217         bits are 0.
218
219 2012-11-11  David S. Miller  <davem@davemloft.net>
220
221         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
222         inttypes.h
223         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
224         __close rather than their public counterparts.
225
226 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
227
228         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
229         file.
230         [UNIX98] (sem_timedwait): Do not expect.
231         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
232         [XPG4 || UNIX98] (sockatmark): Do not expect.
233         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
234         (clock_getcpuclockid): Do not expect.
235         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
236         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
237         Do not expect.
238         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
239         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
240         [UNIX98] (vwscanf): Likewise.
241         [UNIX98] (vswscanf): Likewise.
242
243 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
244
245         * timezone/version.h: Remove file.
246         * timezone/README: Do not refer to version.h.
247         * timezone/Makefile ($(objpfx)zic.o): New dependency on
248         $(objpfx)version.h.
249         ($(objpfx)zdump.o): Likewise.
250         ($(objpfx)version.h): New target.
251
252         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
253         2012i.
254         * timezone/README: Don't mention modification to tzselect.ksh.
255         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
256         work on unmodified tzselect.ksh.  Substitute version numbers in
257         tzselect.ksh.
258
259         * Makefile (format-me): Remove.
260         (INSTALL): Adjust indentation.  Use commands directly instead of
261         using $(format-me).
262
263         * aclocal.m4 (ACX_PKGVERSION): New macro.
264         (ACX_BUGURL): Likewise.
265         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
266         (PKGVERSION): New AC_DEFINE_UNQUOTED.
267         (REPORT_BUGS_TO): Likewise.
268         * configure: Regenerated.
269         * config.h.in (PKGVERSION): New macro.
270         (REPORT_BUGS_TO): Likewise.
271         * config.make.in (PKGVERSION): New variable.
272         (PKGVERSION_TEXI): Likewise.
273         (REPORT_BUGS_TO): Likewise.
274         (REPORT_BUGS_TEXI): Likewise.
275         * Makefile (format-me): Use -I$(common-objpfx)manual.
276         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
277         ($(common-objpfx)manual/%): New target.
278         (manual/%): Remove target.
279         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
280         (print_version): Use PKGVERSION.
281         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
282         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
283         and REPORT_BUGS_TO.
284         ($(objpfx)xtrace): Likewise.
285         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
286         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
287         (print_version): Use PKGVERSION.
288         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
289         (do_version): Use PKGVERSION.
290         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
291         REPORT_BUGS_TO.
292         (common-ldd-rewrite): Likewise.
293         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
294         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
295         (print_version): Use PKGVERSION.
296         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
297         * elf/pldd.c (argp_program_bug_address): Remove variable.
298         (more_help): New function.
299         (argp): Use more_help.
300         (print_version): Use PKGVERSION.
301         * elf/sln.c (main): Use PKGVERSION.
302         (usage): Use REPORT_BUGS_TO.
303         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
304         (top level): Use PKGVERSION.
305         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
306         (print_version): Use PKGVERSION.
307         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
308         (print_version): Use PKGVERSION.
309         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
310         (print_version): Use PKGVERSION.
311         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
312         (print_version): Use PKGVERSION.
313         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
314         (print_version): Use PKGVERSION.
315         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
316         (print_version): Use PKGVERSION.
317         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
318         and BUGURL.
319         ($(objpfx)memusage): Likewise.
320         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
321         (do_version): Use PKGVERSION.
322         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
323         (print_version): Use PKGVERSION.
324         * malloc/mtrace.pl ($PACKAGE): Remove variable.
325         ($PKGVERSION): New variable.
326         ($REPORT_BUGS_TO): Likewise.
327         (usage): Use $REPORT_BUGS_TO.
328         (top level): Use $PKGVERSION.
329         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
330         ($(objpfx)pkgvers.texi): New rule.
331         ($(objpfx)stamp-pkgvers): Likewise.
332         * manual/install.texi: Include pkgvers.texi.
333         (--with-pkgversion): Document new configure option.
334         (--with-bugurl): Likewise.
335         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
336         than necessarily for this particular distribution.  Use
337         REPORT_BUGS_TO for where to report bugs.
338         * INSTALL: Regenerated.
339         * manual/libc.texinfo: Include pkgvers.texi.
340         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
341         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
342         (print_version): Use PKGVERSION.
343         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
344         (print_version): Use PKGVERSION.
345         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
346         (print_version): Use PKGVERSION.
347         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
348         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
349         macro.
350         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
351         (print_version): Use PKGVERSION.
352         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
353         (print_version): Use PKGVERSION.
354         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
355         and PKGVERSION.
356
357         * timezone/checktab.awk: Update from tzcode 2012i.
358         * timezone/ialloc.c: Likewise.
359         * timezone/private.h: Likewise.
360         * timezone/scheck.c: Likewise.
361         * timezone/tzfile.h: Likewise.
362         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
363         (TZVERSION): Hardcode tzcode version number.
364         * timezone/zdump.c: Update from tzcode 2012i.
365         * timezone/zic.c: Likewise.
366         * timezone/version.h: New file.
367         * timezone/README: Describe version.h.  Update upstream location.
368
369         [BZ #14824]
370         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
371         (mktemp): Enable declaration.
372         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
373         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
374         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
375         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
376         Likewise.
377         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
378         Likewise.
379         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
380         Likewise.
381         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
382         Likewise.
383         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
384         Likewise.
385         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
386         Likewise.
387
388         [BZ #14821]
389         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
390         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
391         for copies of such integer values.
392         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
393         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
394
395 2012-11-09  Andreas Jaeger  <aj@suse.de>
396
397         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
398         definitions and declarations that are provided by
399         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
400
401 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
402
403         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
404         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
405         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
406         definition.
407
408 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
409
410         * elf/elf.h: Update comment before AArch64 relocations.
411
412 2012-11-07  David S. Miller  <davem@davemloft.net>
413
414         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
415         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
416         (__start_context): Declare.
417         (__makecontext_ret): Delete.
418         (__makecontext): Hook up __start_context instead of
419         __makecontext_ret.
420         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
421         (sysdep_routines): Add __start_context when in stdlib.
422
423 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
424
425         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
426         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
427         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
428         hardcoded "nm".
429         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
430         (READELF): New variable.  Use it instead of hardcoded "readelf".
431
432 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
433
434         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
435         * sysdeps/x86/Makefile: Here.
436         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
437         * sysdeps/x86/tst-xmmymm.sh: This.
438
439 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
440
441         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
442         expectations.
443         [UNIX98] (pthread_barrier_t): Do not expect.
444         [UNIX98] (pthread_barrierattr_t): Likewise.
445         [UNIX98] (pthread_spinlock_t): Likewise.
446         [UNIX98] (pthread_barrier_destroy): Likewise.
447         [UNIX98] (pthread_barrier_init): Likewise.
448         [UNIX98] (pthread_barrier_wait): Likewise.
449         [UNIX98] (pthread_barrierattr_destroy): Likewise.
450         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
451         [UNIX98] (pthread_barrierattr_init): Likewise.
452         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
453         [UNIX98] (pthread_getcpuclockid): Likewise.
454         [UNIX98] (pthread_mutex_timedlock): Likewise.
455         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
456         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
457         [UNIX98] (pthread_sigmask): Likewise.
458         [UNIX98] (pthread_spin_destroy): Likewise.
459         [UNIX98] (pthread_spin_init): Likewise.
460         [UNIX98] (pthread_spin_lock): Likewise.
461         [UNIX98] (pthread_spin_trylock): Likewise.
462         [UNIX98] (pthread_spin_unlock): Likewise.
463         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
464         Do not expect.
465         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
466         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
467         [XPG3 || XPG4] (pthread_cond_t): Likewise.
468         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
469         [XPG3 || XPG4] (pthread_key_t): Likewise.
470         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
471         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
472         [XPG3 || XPG4] (pthread_once_t): Likewise.
473         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
474         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
475         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
476         [XPG3 || XPG4] (pthread_t): Likewise.
477
478         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
479         not expect.
480         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
481
482         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
483         Change function return type to int.
484
485         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
486         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
487         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
488         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
489         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
490         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
491         [!POSIX] (posix_madvise): Likewise.
492         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
493         && !UNIX98].
494         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
495         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
496         (mode_t): Likewise.
497         (posix_mem_offset): Likewise.
498         (posix_typed_mem_get_info): Likewise.
499         (posix_typed_mem_open): Likewise.
500
501         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
502         Change condition to [XOPEN2K8].
503
504         * conform/conformtest.pl: Preprocess allow-header data with -x c
505         instead of from stdin.
506         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
507         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
508         [C99-based standards] (cerfc): Likewise.
509         [C99-based standards] (cexp2): Likewise.
510         [C99-based standards] (cexpm1): Likewise.
511         [C99-based standards] (clog10): Likewise.
512         [C99-based standards] (clog1p): Likewise.
513         [C99-based standards] (clog2): Likewise.
514         [C99-based standards] (clgamma): Likewise.
515         [C99-based standards] (ctgamma): Likewise.
516         [C99-based standards] (cerff): Likewise.
517         [C99-based standards] (cerfcf): Likewise.
518         [C99-based standards] (cexp2f): Likewise.
519         [C99-based standards] (cexpm1f): Likewise.
520         [C99-based standards] (clog10f): Likewise.
521         [C99-based standards] (clog1pf): Likewise.
522         [C99-based standards] (clog2f): Likewise.
523         [C99-based standards] (clgammaf): Likewise.
524         [C99-based standards] (ctgammaf): Likewise.
525         [C99-based standards] (cerfl): Likewise.
526         [C99-based standards] (cerfcl): Likewise.
527         [C99-based standards] (cexp2l): Likewise.
528         [C99-based standards] (cexpm1l): Likewise.
529         [C99-based standards] (clog10l): Likewise.
530         [C99-based standards] (clog1pl): Likewise.
531         [C99-based standards] (clog2l): Likewise.
532         [C99-based standards] (clgammal): Likewise.
533         [C99-based standards] (ctgammal): Likewise.
534         * conform/data/inttypes.h-data [C99-based standards]: Include
535         stdint.h-data.  Remove all expectations for stdint.h contents.
536         [C99-based standards] (PRI*): Do not allow.
537         [C99-based standards] (SCN*): Likewise.
538         [C99-based standards] (*_t): Likewise.
539         [C99-based-standards] (PRId8): Expect macro.
540         [C99-based-standards] (PRIi8): Likewise.
541         [C99-based-standards] (PRIo8): Likewise.
542         [C99-based-standards] (PRIu8): Likewise.
543         [C99-based-standards] (PRIx8): Likewise.
544         [C99-based-standards] (PRIX8): Likewise.
545         [C99-based-standards] (SCNd8): Likewise.
546         [C99-based-standards] (SCNi8): Likewise.
547         [C99-based-standards] (SCNo8): Likewise.
548         [C99-based-standards] (SCNu8): Likewise.
549         [C99-based-standards] (SCNx8): Likewise.
550         [C99-based-standards] (PRIdLEAST8): Likewise.
551         [C99-based-standards] (PRIiLEAST8): Likewise.
552         [C99-based-standards] (PRIoLEAST8): Likewise.
553         [C99-based-standards] (PRIuLEAST8): Likewise.
554         [C99-based-standards] (PRIxLEAST8): Likewise.
555         [C99-based-standards] (PRIXLEAST8): Likewise.
556         [C99-based-standards] (SCNdLEAST8): Likewise.
557         [C99-based-standards] (SCNiLEAST8): Likewise.
558         [C99-based-standards] (SCNoLEAST8): Likewise.
559         [C99-based-standards] (SCNuLEAST8): Likewise.
560         [C99-based-standards] (SCNxLEAST8): Likewise.
561         [C99-based-standards] (PRIdFAST8): Likewise.
562         [C99-based-standards] (PRIiFAST8): Likewise.
563         [C99-based-standards] (PRIoFAST8): Likewise.
564         [C99-based-standards] (PRIuFAST8): Likewise.
565         [C99-based-standards] (PRIxFAST8): Likewise.
566         [C99-based-standards] (PRIXFAST8): Likewise.
567         [C99-based-standards] (SCNdFAST8): Likewise.
568         [C99-based-standards] (SCNiFAST8): Likewise.
569         [C99-based-standards] (SCNoFAST8): Likewise.
570         [C99-based-standards] (SCNuFAST8): Likewise.
571         [C99-based-standards] (SCNxFAST8): Likewise.
572         [C99-based-standards] (PRId16): Likewise.
573         [C99-based-standards] (PRIi16): Likewise.
574         [C99-based-standards] (PRIo16): Likewise.
575         [C99-based-standards] (PRIu16): Likewise.
576         [C99-based-standards] (PRIx16): Likewise.
577         [C99-based-standards] (PRIX16): Likewise.
578         [C99-based-standards] (SCNd16): Likewise.
579         [C99-based-standards] (SCNi16): Likewise.
580         [C99-based-standards] (SCNo16): Likewise.
581         [C99-based-standards] (SCNu16): Likewise.
582         [C99-based-standards] (SCNx16): Likewise.
583         [C99-based-standards] (PRIdLEAST16): Likewise.
584         [C99-based-standards] (PRIiLEAST16): Likewise.
585         [C99-based-standards] (PRIoLEAST16): Likewise.
586         [C99-based-standards] (PRIuLEAST16): Likewise.
587         [C99-based-standards] (PRIxLEAST16): Likewise.
588         [C99-based-standards] (PRIXLEAST16): Likewise.
589         [C99-based-standards] (SCNdLEAST16): Likewise.
590         [C99-based-standards] (SCNiLEAST16): Likewise.
591         [C99-based-standards] (SCNoLEAST16): Likewise.
592         [C99-based-standards] (SCNuLEAST16): Likewise.
593         [C99-based-standards] (SCNxLEAST16): Likewise.
594         [C99-based-standards] (PRIdFAST16): Likewise.
595         [C99-based-standards] (PRIiFAST16): Likewise.
596         [C99-based-standards] (PRIoFAST16): Likewise.
597         [C99-based-standards] (PRIuFAST16): Likewise.
598         [C99-based-standards] (PRIxFAST16): Likewise.
599         [C99-based-standards] (PRIXFAST16): Likewise.
600         [C99-based-standards] (SCNdFAST16): Likewise.
601         [C99-based-standards] (SCNiFAST16): Likewise.
602         [C99-based-standards] (SCNoFAST16): Likewise.
603         [C99-based-standards] (SCNuFAST16): Likewise.
604         [C99-based-standards] (SCNxFAST16): Likewise.
605         [C99-based-standards] (PRId32): Likewise.
606         [C99-based-standards] (PRIi32): Likewise.
607         [C99-based-standards] (PRIo32): Likewise.
608         [C99-based-standards] (PRIu32): Likewise.
609         [C99-based-standards] (PRIx32): Likewise.
610         [C99-based-standards] (PRIX32): Likewise.
611         [C99-based-standards] (SCNd32): Likewise.
612         [C99-based-standards] (SCNi32): Likewise.
613         [C99-based-standards] (SCNo32): Likewise.
614         [C99-based-standards] (SCNu32): Likewise.
615         [C99-based-standards] (SCNx32): Likewise.
616         [C99-based-standards] (PRIdLEAST32): Likewise.
617         [C99-based-standards] (PRIiLEAST32): Likewise.
618         [C99-based-standards] (PRIoLEAST32): Likewise.
619         [C99-based-standards] (PRIuLEAST32): Likewise.
620         [C99-based-standards] (PRIxLEAST32): Likewise.
621         [C99-based-standards] (PRIXLEAST32): Likewise.
622         [C99-based-standards] (SCNdLEAST32): Likewise.
623         [C99-based-standards] (SCNiLEAST32): Likewise.
624         [C99-based-standards] (SCNoLEAST32): Likewise.
625         [C99-based-standards] (SCNuLEAST32): Likewise.
626         [C99-based-standards] (SCNxLEAST32): Likewise.
627         [C99-based-standards] (PRIdFAST32): Likewise.
628         [C99-based-standards] (PRIiFAST32): Likewise.
629         [C99-based-standards] (PRIoFAST32): Likewise.
630         [C99-based-standards] (PRIuFAST32): Likewise.
631         [C99-based-standards] (PRIxFAST32): Likewise.
632         [C99-based-standards] (PRIXFAST32): Likewise.
633         [C99-based-standards] (SCNdFAST32): Likewise.
634         [C99-based-standards] (SCNiFAST32): Likewise.
635         [C99-based-standards] (SCNoFAST32): Likewise.
636         [C99-based-standards] (SCNuFAST32): Likewise.
637         [C99-based-standards] (SCNxFAST32): Likewise.
638         [C99-based-standards] (PRId64): Likewise.
639         [C99-based-standards] (PRIi64): Likewise.
640         [C99-based-standards] (PRIo64): Likewise.
641         [C99-based-standards] (PRIu64): Likewise.
642         [C99-based-standards] (PRIx64): Likewise.
643         [C99-based-standards] (PRIX64): Likewise.
644         [C99-based-standards] (SCNd64): Likewise.
645         [C99-based-standards] (SCNi64): Likewise.
646         [C99-based-standards] (SCNo64): Likewise.
647         [C99-based-standards] (SCNu64): Likewise.
648         [C99-based-standards] (SCNx64): Likewise.
649         [C99-based-standards] (PRIdLEAST64): Likewise.
650         [C99-based-standards] (PRIiLEAST64): Likewise.
651         [C99-based-standards] (PRIoLEAST64): Likewise.
652         [C99-based-standards] (PRIuLEAST64): Likewise.
653         [C99-based-standards] (PRIxLEAST64): Likewise.
654         [C99-based-standards] (PRIXLEAST64): Likewise.
655         [C99-based-standards] (SCNdLEAST64): Likewise.
656         [C99-based-standards] (SCNiLEAST64): Likewise.
657         [C99-based-standards] (SCNoLEAST64): Likewise.
658         [C99-based-standards] (SCNuLEAST64): Likewise.
659         [C99-based-standards] (SCNxLEAST64): Likewise.
660         [C99-based-standards] (PRIdFAST64): Likewise.
661         [C99-based-standards] (PRIiFAST64): Likewise.
662         [C99-based-standards] (PRIoFAST64): Likewise.
663         [C99-based-standards] (PRIuFAST64): Likewise.
664         [C99-based-standards] (PRIxFAST64): Likewise.
665         [C99-based-standards] (PRIXFAST64): Likewise.
666         [C99-based-standards] (SCNdFAST64): Likewise.
667         [C99-based-standards] (SCNiFAST64): Likewise.
668         [C99-based-standards] (SCNoFAST64): Likewise.
669         [C99-based-standards] (SCNuFAST64): Likewise.
670         [C99-based-standards] (SCNxFAST64): Likewise.
671         [C99-based-standards] (PRIdMAX): Likewise.
672         [C99-based-standards] (PRIiMAX): Likewise.
673         [C99-based-standards] (PRIoMAX): Likewise.
674         [C99-based-standards] (PRIuMAX): Likewise.
675         [C99-based-standards] (PRIxMAX): Likewise.
676         [C99-based-standards] (PRIXMAX): Likewise.
677         [C99-based-standards] (SCNdMAX): Likewise.
678         [C99-based-standards] (SCNiMAX): Likewise.
679         [C99-based-standards] (SCNoMAX): Likewise.
680         [C99-based-standards] (SCNuMAX): Likewise.
681         [C99-based-standards] (SCNxMAX): Likewise.
682         [C99-based-standards] (PRIdPTR): Likewise.
683         [C99-based-standards] (PRIiPTR): Likewise.
684         [C99-based-standards] (PRIoPTR): Likewise.
685         [C99-based-standards] (PRIuPTR): Likewise.
686         [C99-based-standards] (PRIxPTR): Likewise.
687         [C99-based-standards] (PRIXPTR): Likewise.
688         [C99-based-standards] (SCNdPTR): Likewise.
689         [C99-based-standards] (SCNiPTR): Likewise.
690         [C99-based-standards] (SCNoPTR): Likewise.
691         [C99-based-standards] (SCNuPTR): Likewise.
692         [C99-based-standards] (SCNxPTR): Likewise.
693         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
694         allow.
695         * conform/data/stdint.h-data: Update comments to clarify
696         requirements.
697         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
698         type.
699         [C99-based standards] (INT8_MAX): Likewise.
700         [C99-based standards] (INT16_MIN): Likewise.
701         [C99-based standards] (INT16_MAX): Likewise.
702         [C99-based standards] (INT32_MIN): Likewise.
703         [C99-based standards] (INT32_MAX): Likewise.
704         [C99-based standards] (INT64_MIN): Likewise.
705         [C99-based standards] (INT64_MAX): Likewise.
706         [C99-based standards] (UINT8_MAX): Likewise.
707         [C99-based standards] (UINT16_MAX): Likewise.
708         [C99-based standards] (UINT32_MAX): Likewise.
709         [C99-based standards] (UINT64_MAX): Likewise.
710         [C99-based standards] (INT_LEAST8_MIN): Likewise.
711         [C99-based standards] (INT_LEAST8_MAX): Likewise.
712         [C99-based standards] (INT_LEAST16_MIN): Likewise.
713         [C99-based standards] (INT_LEAST16_MAX): Likewise.
714         [C99-based standards] (INT_LEAST32_MIN): Likewise.
715         [C99-based standards] (INT_LEAST32_MAX): Likewise.
716         [C99-based standards] (INT_LEAST64_MIN): Likewise.
717         [C99-based standards] (INT_LEAST64_MAX): Likewise.
718         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
719         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
720         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
721         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
722         [C99-based standards] (INT_FAST8_MIN): Likewise.
723         [C99-based standards] (INT_FAST8_MAX): Likewise.
724         [C99-based standards] (INT_FAST16_MIN): Likewise.
725         [C99-based standards] (INT_FAST16_MAX): Likewise.
726         [C99-based standards] (INT_FAST32_MIN): Likewise.
727         [C99-based standards] (INT_FAST32_MAX): Likewise.
728         [C99-based standards] (INT_FAST64_MIN): Likewise.
729         [C99-based standards] (INT_FAST64_MAX): Likewise.
730         [C99-based standards] (UINT_FAST8_MAX): Likewise.
731         [C99-based standards] (UINT_FAST16_MAX): Likewise.
732         [C99-based standards] (UINT_FAST32_MAX): Likewise.
733         [C99-based standards] (UINT_FAST64_MAX): Likewise.
734         [C99-based standards] (INTPTR_MIN): Likewise.
735         [C99-based standards] (INTPTR_MAX): Likewise.
736         [C99-based standards] (UINTPTR_MAX): Likewise.
737         [C99-based standards] (INTMAX_MIN): Likewise.
738         [C99-based standards] (INTMAX_MAX): Likewise.
739         [C99-based standards] (UINTMAX_MAX): Likewise.
740         [C99-based standards] (PTRDIFF_MIN): Likewise.
741         [C99-based standards] (PTRDIFF_MAX): Likewise.
742         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
743         [C99-based standards] (SIZE_MAX): Likewise.
744         [C99-based standards] (WCHAR_MAX): Likewise.
745         [C99-based standards] (WINT_MAX): Likewise.
746         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
747         constraint on value.
748         [C99-based standards] (WCHAR_MIN): Likewise.
749         [C99-based standards] (WINT_MIN): Likewise.
750         [C99-based standards] (*_t): Allow.
751         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
752         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
753         Include math.h-data and complex.h-data.  Remove all expectations
754         of math.h and complex.h contents.
755         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
756         at end of line.
757         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
758         (struct tm): Expect tag.
759         [C99-based-standards] (wcstof): Expect function.
760         [C99-based-standards] (wcstold): Likewise.
761         [C99-based-standards] (wcstoll): Likewise.
762         [C99-based-standards] (wcstoull): Likewise.
763         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
764         macro-int-constant.  Specify type.
765         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
766         constraint on value.
767         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
768         Specify type.
769         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
770         Specify value.
771         [ISO C standards]: Do not allow headers.
772         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
773         wcs[abcdefghijklmnopqrstuvwxyz]*.
774         [ISO C standards] (*_t): Do not allow.
775         * conform/data/wctype.h-data [C99-based standards] (iswblank):
776         Expect function.
777         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
778         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
779         Specify type.
780         [ISO C standards]: Do not allow headers.
781         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
782         is[abcdefghijklmnopqrstuvwxyz]*.
783         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
784         to[abcdefghijklmnopqrstuvwxyz]*.
785         [ISO C standards] (*_t): Do not allow.
786         * conform/data/stdalign.h-data: New file.
787         * conform/data/stdbool.h-data: Likewise.
788         * conform/data/stdnoreturn.h-data: Likewise.
789
790 2012-11-07  Andreas Jaeger  <aj@suse.de>
791
792         [BZ #14809]
793         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
794         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
795         guards are changed.  Only define if not yet defined, #undef back
796         after including linux/sysctl.h if defined here.
797
798 2012-11-07  Roland McGrath  <roland@hack.frob.com>
799
800         [BZ #14815]
801         * manual/filesys.texi (Directory Entries): Typo fix.
802         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
803
804 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
805
806         * elf/elf.h (EM_AARCH64): New macro.
807         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
808         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
809         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
810         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
811         (R_AARCH64_TLSDESC): Likewise.
812         (NT_ARM_TLS): Likewise.
813         (NT_ARM_HW_BREAK): Likewise.
814         (NT_ARM_HW_WATCH): Likewise.
815
816 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
817
818         [BZ #14811]
819         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
820         (__ieee754_powl): Saturate nonzero exponents with absolute value
821         below 0x1p-79 to +/- 0x1p-79.
822         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
823         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
824         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
825         nonzero exponents with absolute value below 0x1p-32 to +/-
826         0x1p-32.
827         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
828         (__ieee754_powl): Saturate nonzero exponents with absolute value
829         below 0x1p-79 to +/- 0x1p-79.
830         * math/libm-test.inc (pow_test): Add more tests.
831
832 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
833
834         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
835         _dl_s390_cap_flags with kernel. Increase string length.
836         (_dl_s390_platforms): Add z196 and zEC12.
837
838 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
839
840         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
841         Change XOPEN21K to XOPEN2K.
842
843 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
844
845         * string/memmove.c: Use memcpy when possible.
846
847 2012-11-06  Andreas Jaeger  <aj@suse.de>
848
849         * po/eo.po: Update from translation team.
850
851 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
852
853         [BZ #14793]
854         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
855         exponent and small x and y exponents, scale x or y up.  Increase
856         by 2 the exponent used in scaling up.
857         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
858         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
859         * math/libm-test.inc (fma_test): Add more tests.
860         (fma_test_towardzero): Likewise.
861         (fma_test_downward): Likewise.
862         (fma_test_upward): Likewise.
863
864 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
865
866         [BZ #14805]
867         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
868         fenv_t *.
869
870         [BZ #14801]
871         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
872         namespace for names of struct fields.
873         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
874         fenv_t fields.
875         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
876         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
877
878 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
879
880         [BZ #3665]
881         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
882
883 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
884
885         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
886         PTR_DEMANGLE.
887
888         [BZ #5246]
889         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
890         PTR_DEMANGLE.
891
892 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
893
894         [BZ #14797]
895         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
896         definitely overflow as x * y not x * y + z.
897         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
898         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
899         * math/libm-test.inc (fma_test): Add more tests.
900         (fma_test_towardzero): Likewise.
901         (fma_test_downward): Likewise.
902         (fma_test_upward): Likewise.
903
904 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
905
906         [BZ #157]
907
908         * include/stub-tag.h: Remove file.
909         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
910         '#include' of it.
911         * manual/maint.texi (Porting): Don't reference it.
912         * Makerules ($(objpfx)stubs): Likewise.
913         * dirent/closedir.c: Don't include <stub-tag.h>.
914         * dirent/dirfd.c: Likewise.
915         * dirent/fdopendir.c: Likewise.
916         * dirent/getdents.c: Likewise.
917         * dirent/getdents64.c: Likewise.
918         * dirent/opendir.c: Likewise.
919         * dirent/readdir.c: Likewise.
920         * dirent/readdir64.c: Likewise.
921         * dirent/readdir64_r.c: Likewise.
922         * dirent/readdir_r.c: Likewise.
923         * dirent/rewinddir.c: Likewise.
924         * dirent/seekdir.c: Likewise.
925         * dirent/telldir.c: Likewise.
926         * gmon/profil.c: Likewise.
927         * grp/setgroups.c: Likewise.
928         * inet/if_index.c: Likewise.
929         * io/access.c: Likewise.
930         * io/chdir.c: Likewise.
931         * io/chmod.c: Likewise.
932         * io/chown.c: Likewise.
933         * io/close.c: Likewise.
934         * io/dup.c: Likewise.
935         * io/dup2.c: Likewise.
936         * io/dup3.c: Likewise.
937         * io/euidaccess.c: Likewise.
938         * io/faccessat.c: Likewise.
939         * io/fchdir.c: Likewise.
940         * io/fchmod.c: Likewise.
941         * io/fchmodat.c: Likewise.
942         * io/fchown.c: Likewise.
943         * io/fchownat.c: Likewise.
944         * io/fcntl.c: Likewise.
945         * io/flock.c: Likewise.
946         * io/fstatfs.c: Likewise.
947         * io/fstatfs64.c: Likewise.
948         * io/fstatvfs.c: Likewise.
949         * io/fstatvfs64.c: Likewise.
950         * io/futimens.c: Likewise.
951         * io/fxstat.c: Likewise.
952         * io/fxstat64.c: Likewise.
953         * io/fxstatat.c: Likewise.
954         * io/fxstatat64.c: Likewise.
955         * io/getcwd.c: Likewise.
956         * io/isatty.c: Likewise.
957         * io/lchmod.c: Likewise.
958         * io/lchown.c: Likewise.
959         * io/link.c: Likewise.
960         * io/linkat.c: Likewise.
961         * io/lseek.c: Likewise.
962         * io/lseek64.c: Likewise.
963         * io/lxstat64.c: Likewise.
964         * io/mkdir.c: Likewise.
965         * io/mkdirat.c: Likewise.
966         * io/mkfifo.c: Likewise.
967         * io/mkfifoat.c: Likewise.
968         * io/open.c: Likewise.
969         * io/open64.c: Likewise.
970         * io/openat.c: Likewise.
971         * io/openat64.c: Likewise.
972         * io/pipe.c: Likewise.
973         * io/pipe2.c: Likewise.
974         * io/poll.c: Likewise.
975         * io/posix_fadvise.c: Likewise.
976         * io/posix_fadvise64.c: Likewise.
977         * io/posix_fallocate.c: Likewise.
978         * io/posix_fallocate64.c: Likewise.
979         * io/read.c: Likewise.
980         * io/readlink.c: Likewise.
981         * io/readlinkat.c: Likewise.
982         * io/rmdir.c: Likewise.
983         * io/sendfile.c: Likewise.
984         * io/sendfile64.c: Likewise.
985         * io/statfs.c: Likewise.
986         * io/statfs64.c: Likewise.
987         * io/statvfs.c: Likewise.
988         * io/statvfs64.c: Likewise.
989         * io/symlink.c: Likewise.
990         * io/symlinkat.c: Likewise.
991         * io/ttyname.c: Likewise.
992         * io/ttyname_r.c: Likewise.
993         * io/umask.c: Likewise.
994         * io/unlink.c: Likewise.
995         * io/unlinkat.c: Likewise.
996         * io/utime.c: Likewise.
997         * io/utimensat.c: Likewise.
998         * io/write.c: Likewise.
999         * io/xmknod.c: Likewise.
1000         * io/xmknodat.c: Likewise.
1001         * io/xstat.c: Likewise.
1002         * io/xstat64.c: Likewise.
1003         * login/getpt.c: Likewise.
1004         * login/grantpt.c: Likewise.
1005         * login/unlockpt.c: Likewise.
1006         * math/e_acoshl.c: Likewise.
1007         * math/e_acosl.c: Likewise.
1008         * math/e_asinl.c: Likewise.
1009         * math/e_atan2l.c: Likewise.
1010         * math/e_atanhl.c: Likewise.
1011         * math/e_coshl.c: Likewise.
1012         * math/e_expl.c: Likewise.
1013         * math/e_fmodl.c: Likewise.
1014         * math/e_gammal_r.c: Likewise.
1015         * math/e_hypotl.c: Likewise.
1016         * math/e_j0l.c: Likewise.
1017         * math/e_j1l.c: Likewise.
1018         * math/e_jnl.c: Likewise.
1019         * math/e_lgammal_r.c: Likewise.
1020         * math/e_log10l.c: Likewise.
1021         * math/e_log2l.c: Likewise.
1022         * math/e_logl.c: Likewise.
1023         * math/e_powl.c: Likewise.
1024         * math/e_rem_pio2l.c: Likewise.
1025         * math/e_sinhl.c: Likewise.
1026         * math/e_sqrtl.c: Likewise.
1027         * math/fclrexcpt.c: Likewise.
1028         * math/fedisblxcpt.c: Likewise.
1029         * math/feenablxcpt.c: Likewise.
1030         * math/fegetenv.c: Likewise.
1031         * math/fegetexcept.c: Likewise.
1032         * math/fegetround.c: Likewise.
1033         * math/feholdexcpt.c: Likewise.
1034         * math/fesetenv.c: Likewise.
1035         * math/fesetround.c: Likewise.
1036         * math/feupdateenv.c: Likewise.
1037         * math/fgetexcptflg.c: Likewise.
1038         * math/fraiseexcpt.c: Likewise.
1039         * math/fsetexcptflg.c: Likewise.
1040         * math/ftestexcept.c: Likewise.
1041         * math/k_cosl.c: Likewise.
1042         * math/k_rem_pio2l.c: Likewise.
1043         * math/k_sinl.c: Likewise.
1044         * math/k_tanl.c: Likewise.
1045         * math/s_asinhl.c: Likewise.
1046         * math/s_atanl.c: Likewise.
1047         * math/s_cbrtl.c: Likewise.
1048         * math/s_erfl.c: Likewise.
1049         * math/s_expm1l.c: Likewise.
1050         * math/s_log1pl.c: Likewise.
1051         * math/s_tanhl.c: Likewise.
1052         * misc/acct.c: Likewise.
1053         * misc/brk.c: Likewise.
1054         * misc/chflags.c: Likewise.
1055         * misc/chroot.c: Likewise.
1056         * misc/fchflags.c: Likewise.
1057         * misc/fgetxattr.c: Likewise.
1058         * misc/flistxattr.c: Likewise.
1059         * misc/fremovexattr.c: Likewise.
1060         * misc/fsetxattr.c: Likewise.
1061         * misc/fsync.c: Likewise.
1062         * misc/ftruncate.c: Likewise.
1063         * misc/futimes.c: Likewise.
1064         * misc/futimesat.c: Likewise.
1065         * misc/getdomain.c: Likewise.
1066         * misc/getdtsz.c: Likewise.
1067         * misc/gethostid.c: Likewise.
1068         * misc/gethostname.c: Likewise.
1069         * misc/getloadavg.c: Likewise.
1070         * misc/getpagesize.c: Likewise.
1071         * misc/getsysstats.c: Likewise.
1072         * misc/getxattr.c: Likewise.
1073         * misc/gtty.c: Likewise.
1074         * misc/ioctl.c: Likewise.
1075         * misc/lgetxattr.c: Likewise.
1076         * misc/listxattr.c: Likewise.
1077         * misc/llistxattr.c: Likewise.
1078         * misc/lremovexattr.c: Likewise.
1079         * misc/lsetxattr.c: Likewise.
1080         * misc/lutimes.c: Likewise.
1081         * misc/madvise.c: Likewise.
1082         * misc/mincore.c: Likewise.
1083         * misc/mlock.c: Likewise.
1084         * misc/mlockall.c: Likewise.
1085         * misc/mmap.c: Likewise.
1086         * misc/mprotect.c: Likewise.
1087         * misc/msync.c: Likewise.
1088         * misc/munlock.c: Likewise.
1089         * misc/munlockall.c: Likewise.
1090         * misc/munmap.c: Likewise.
1091         * misc/preadv.c: Likewise.
1092         * misc/preadv64.c: Likewise.
1093         * misc/ptrace.c: Likewise.
1094         * misc/pwritev.c: Likewise.
1095         * misc/pwritev64.c: Likewise.
1096         * misc/readv.c: Likewise.
1097         * misc/reboot.c: Likewise.
1098         * misc/remap_file_pages.c: Likewise.
1099         * misc/removexattr.c: Likewise.
1100         * misc/revoke.c: Likewise.
1101         * misc/select.c: Likewise.
1102         * misc/setdomain.c: Likewise.
1103         * misc/setegid.c: Likewise.
1104         * misc/seteuid.c: Likewise.
1105         * misc/sethostid.c: Likewise.
1106         * misc/sethostname.c: Likewise.
1107         * misc/setregid.c: Likewise.
1108         * misc/setreuid.c: Likewise.
1109         * misc/setxattr.c: Likewise.
1110         * misc/sstk.c: Likewise.
1111         * misc/stty.c: Likewise.
1112         * misc/swapoff.c: Likewise.
1113         * misc/swapon.c: Likewise.
1114         * misc/sync.c: Likewise.
1115         * misc/syncfs.c: Likewise.
1116         * misc/syscall.c: Likewise.
1117         * misc/truncate.c: Likewise.
1118         * misc/ualarm.c: Likewise.
1119         * misc/usleep.c: Likewise.
1120         * misc/ustat.c: Likewise.
1121         * misc/utimes.c: Likewise.
1122         * misc/vhangup.c: Likewise.
1123         * misc/writev.c: Likewise.
1124         * posix/_exit.c: Likewise.
1125         * posix/alarm.c: Likewise.
1126         * posix/execve.c: Likewise.
1127         * posix/fexecve.c: Likewise.
1128         * posix/fork.c: Likewise.
1129         * posix/fpathconf.c: Likewise.
1130         * posix/getaddrinfo.c: Likewise.
1131         * posix/getegid.c: Likewise.
1132         * posix/geteuid.c: Likewise.
1133         * posix/getgid.c: Likewise.
1134         * posix/getgroups.c: Likewise.
1135         * posix/getlogin.c: Likewise.
1136         * posix/getlogin_r.c: Likewise.
1137         * posix/getpgid.c: Likewise.
1138         * posix/getpid.c: Likewise.
1139         * posix/getppid.c: Likewise.
1140         * posix/getresgid.c: Likewise.
1141         * posix/getresuid.c: Likewise.
1142         * posix/getsid.c: Likewise.
1143         * posix/getuid.c: Likewise.
1144         * posix/glob64.c: Likewise.
1145         * posix/nanosleep.c: Likewise.
1146         * posix/pathconf.c: Likewise.
1147         * posix/pause.c: Likewise.
1148         * posix/posix_madvise.c: Likewise.
1149         * posix/pread.c: Likewise.
1150         * posix/pread64.c: Likewise.
1151         * posix/pwrite.c: Likewise.
1152         * posix/pwrite64.c: Likewise.
1153         * posix/sched_getaffinity.c: Likewise.
1154         * posix/sched_getp.c: Likewise.
1155         * posix/sched_gets.c: Likewise.
1156         * posix/sched_primax.c: Likewise.
1157         * posix/sched_primin.c: Likewise.
1158         * posix/sched_rr_gi.c: Likewise.
1159         * posix/sched_setaffinity.c: Likewise.
1160         * posix/sched_setp.c: Likewise.
1161         * posix/sched_sets.c: Likewise.
1162         * posix/sched_yield.c: Likewise.
1163         * posix/setgid.c: Likewise.
1164         * posix/setlogin.c: Likewise.
1165         * posix/setpgid.c: Likewise.
1166         * posix/setresgid.c: Likewise.
1167         * posix/setresuid.c: Likewise.
1168         * posix/setsid.c: Likewise.
1169         * posix/setuid.c: Likewise.
1170         * posix/sleep.c: Likewise.
1171         * posix/spawni.c: Likewise.
1172         * posix/sysconf.c: Likewise.
1173         * posix/times.c: Likewise.
1174         * posix/wait.c: Likewise.
1175         * posix/wait3.c: Likewise.
1176         * posix/wait4.c: Likewise.
1177         * posix/waitpid.c: Likewise.
1178         * resolv/gai_sigqueue.c: Likewise.
1179         * resource/getpriority.c: Likewise.
1180         * resource/getrlimit.c: Likewise.
1181         * resource/getrusage.c: Likewise.
1182         * resource/nice.c: Likewise.
1183         * resource/setpriority.c: Likewise.
1184         * resource/setrlimit.c: Likewise.
1185         * resource/ulimit.c: Likewise.
1186         * rt/aio_cancel.c: Likewise.
1187         * rt/aio_fsync.c: Likewise.
1188         * rt/aio_read.c: Likewise.
1189         * rt/aio_sigqueue.c: Likewise.
1190         * rt/aio_suspend.c: Likewise.
1191         * rt/aio_write.c: Likewise.
1192         * rt/clock_getres.c: Likewise.
1193         * rt/clock_gettime.c: Likewise.
1194         * rt/clock_nanosleep.c: Likewise.
1195         * rt/clock_settime.c: Likewise.
1196         * rt/lio_listio.c: Likewise.
1197         * rt/mq_close.c: Likewise.
1198         * rt/mq_getattr.c: Likewise.
1199         * rt/mq_notify.c: Likewise.
1200         * rt/mq_open.c: Likewise.
1201         * rt/mq_receive.c: Likewise.
1202         * rt/mq_send.c: Likewise.
1203         * rt/mq_setattr.c: Likewise.
1204         * rt/mq_timedreceive.c: Likewise.
1205         * rt/mq_timedsend.c: Likewise.
1206         * rt/mq_unlink.c: Likewise.
1207         * rt/shm_open.c: Likewise.
1208         * rt/shm_unlink.c: Likewise.
1209         * rt/timer_create.c: Likewise.
1210         * rt/timer_delete.c: Likewise.
1211         * rt/timer_getoverr.c: Likewise.
1212         * rt/timer_gettime.c: Likewise.
1213         * rt/timer_settime.c: Likewise.
1214         * setjmp/__longjmp.c: Likewise.
1215         * setjmp/setjmp.c: Likewise.
1216         * signal/kill.c: Likewise.
1217         * signal/killpg.c: Likewise.
1218         * signal/raise.c: Likewise.
1219         * signal/sigaction.c: Likewise.
1220         * signal/sigaltstack.c: Likewise.
1221         * signal/sigblock.c: Likewise.
1222         * signal/sigignore.c: Likewise.
1223         * signal/sigintr.c: Likewise.
1224         * signal/signal.c: Likewise.
1225         * signal/sigpause.c: Likewise.
1226         * signal/sigpending.c: Likewise.
1227         * signal/sigqueue.c: Likewise.
1228         * signal/sigreturn.c: Likewise.
1229         * signal/sigset.c: Likewise.
1230         * signal/sigsetmask.c: Likewise.
1231         * signal/sigstack.c: Likewise.
1232         * signal/sigsuspend.c: Likewise.
1233         * signal/sigtimedwait.c: Likewise.
1234         * signal/sigvec.c: Likewise.
1235         * signal/sigwait.c: Likewise.
1236         * signal/sigwaitinfo.c: Likewise.
1237         * signal/sysv_signal.c: Likewise.
1238         * socket/accept.c: Likewise.
1239         * socket/accept4.c: Likewise.
1240         * socket/bind.c: Likewise.
1241         * socket/connect.c: Likewise.
1242         * socket/getpeername.c: Likewise.
1243         * socket/getsockname.c: Likewise.
1244         * socket/getsockopt.c: Likewise.
1245         * socket/isfdtype.c: Likewise.
1246         * socket/listen.c: Likewise.
1247         * socket/recv.c: Likewise.
1248         * socket/recvfrom.c: Likewise.
1249         * socket/recvmsg.c: Likewise.
1250         * socket/send.c: Likewise.
1251         * socket/sendmsg.c: Likewise.
1252         * socket/sendto.c: Likewise.
1253         * socket/setsockopt.c: Likewise.
1254         * socket/shutdown.c: Likewise.
1255         * socket/sockatmark.c: Likewise.
1256         * socket/socket.c: Likewise.
1257         * socket/socketpair.c: Likewise.
1258         * stdio-common/ctermid.c: Likewise.
1259         * stdio-common/cuserid.c: Likewise.
1260         * stdio-common/remove.c: Likewise.
1261         * stdio-common/rename.c: Likewise.
1262         * stdio-common/renameat.c: Likewise.
1263         * stdio-common/tempname.c: Likewise.
1264         * stdlib/getcontext.c: Likewise.
1265         * stdlib/makecontext.c: Likewise.
1266         * stdlib/setcontext.c: Likewise.
1267         * stdlib/swapcontext.c: Likewise.
1268         * stdlib/system.c: Likewise.
1269         * streams/fattach.c: Likewise.
1270         * streams/fdetach.c: Likewise.
1271         * streams/getmsg.c: Likewise.
1272         * streams/getpmsg.c: Likewise.
1273         * streams/putmsg.c: Likewise.
1274         * streams/putpmsg.c: Likewise.
1275         * sysdeps/unix/bsd/getpt.c: Likewise.
1276         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1277         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1278         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1279         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1280         Likewise.
1281         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1282         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1283         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1284         * sysvipc/msgctl.c: Likewise.
1285         * sysvipc/msgget.c: Likewise.
1286         * sysvipc/msgrcv.c: Likewise.
1287         * sysvipc/msgsnd.c: Likewise.
1288         * sysvipc/semctl.c: Likewise.
1289         * sysvipc/semget.c: Likewise.
1290         * sysvipc/semop.c: Likewise.
1291         * sysvipc/semtimedop.c: Likewise.
1292         * sysvipc/shmat.c: Likewise.
1293         * sysvipc/shmctl.c: Likewise.
1294         * sysvipc/shmdt.c: Likewise.
1295         * sysvipc/shmget.c: Likewise.
1296         * termios/tcdrain.c: Likewise.
1297         * termios/tcflow.c: Likewise.
1298         * termios/tcflush.c: Likewise.
1299         * termios/tcgetattr.c: Likewise.
1300         * termios/tcgetpgrp.c: Likewise.
1301         * termios/tcsendbrk.c: Likewise.
1302         * termios/tcsetattr.c: Likewise.
1303         * termios/tcsetpgrp.c: Likewise.
1304         * time/adjtime.c: Likewise.
1305         * time/clock.c: Likewise.
1306         * time/getitimer.c: Likewise.
1307         * time/gettimeofday.c: Likewise.
1308         * time/setitimer.c: Likewise.
1309         * time/settimeofday.c: Likewise.
1310         * time/stime.c: Likewise.
1311         * time/time.c: Likewise.
1312
1313 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1314
1315         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1316         /usr/old/bin.
1317
1318         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1319         instead of spaces.
1320         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1321
1322 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1323
1324         [BZ #14796]
1325         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1326         FE_TONEAREST before applying Dekker multiplication and Knuth
1327         addition.  Clear inexact exceptions and check for exact zero
1328         results afterwards.
1329         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1330         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1331         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1332         * math/libm-test.inc (fma_test): Add more tests.
1333         (fma_test_towardzero): Likewise.
1334         (fma_test_downward): Likewise.
1335         (fma_test_upward): Likewise.
1336         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1337         function.
1338         (libc_fesetround): New macro.
1339         (libc_fesetroundf): Likewise.
1340         (libc_fesetroundl): Likewise.
1341         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1342         function.
1343         (libc_fesetround_387): Likewise.
1344         (libc_fesetroundf): New macro.
1345         (libc_fesetround): Likewise.
1346         (libc_fesetroundl): Likewise.
1347         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1348         function.
1349         (libc_fesetroundf): New macro.
1350         (libc_fesetround): Likewise.
1351         (libc_fesetroundl): Likewise.
1352         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1353         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1354         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1355         libm_hidden_ver.
1356         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1357         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1358         libm_hidden_def.
1359         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1360         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1361         libm_hidden_ver.
1362         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1363         libm_hidden_def.
1364
1365         [BZ #3439]
1366         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1367         integer constant usable in #if and use that to give value to enum
1368         constant.
1369         (FE_DIVBYZERO): Likewise.
1370         (FE_UNDERFLOW): Likewise.
1371         (FE_OVERFLOW): Likewise.
1372         (FE_INVALID): Likewise.
1373         (FE_INVALID_SNAN): Likewise.
1374         (FE_INVALID_ISI): Likewise.
1375         (FE_INVALID_IDI): Likewise.
1376         (FE_INVALID_ZDZ): Likewise.
1377         (FE_INVALID_IMZ): Likewise.
1378         (FE_INVALID_COMPARE): Likewise.
1379         (FE_INVALID_SOFTWARE): Likewise.
1380         (FE_INVALID_SQRT): Likewise.
1381         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1382         (FE_TONEAREST): Likewise.
1383         (FE_TOWARDZERO): Likewise.
1384         (FE_UPWARD): Likewise.
1385         (FE_DOWNWARD): Likewise.
1386         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1387         (FE_DIVBYZERO): Likewise.
1388         (FE_OVERFLOW): Likewise.
1389         (FE_UNDERFLOW): Likewise.
1390         (FE_INEXACT): Likewise.
1391         (FE_TONEAREST): Likewise.
1392         (FE_DOWNWARD): Likewise.
1393         (FE_UPWARD): Likewise.
1394         (FE_TOWARDZERO): Likewise.
1395         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1396         (FE_UNDERFLOW): Likewise.
1397         (FE_OVERFLOW): Likewise.
1398         (FE_DIVBYZERO): Likewise.
1399         (FE_INVALID): Likewise.
1400         (FE_TONEAREST): Likewise.
1401         (FE_TOWARDZERO): Likewise.
1402         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1403         (FE_OVERFLOW): Likewise.
1404         (FE_UNDERFLOW): Likewise.
1405         (FE_DIVBYZERO): Likewise.
1406         (FE_INEXACT): Likewise.
1407         (FE_TONEAREST): Likewise.
1408         (FE_TOWARDZERO): Likewise.
1409         (FE_UPWARD): Likewise.
1410         (FE_DOWNWARD): Likewise.
1411         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1412         (FE_DIVBYZERO): Likewise.
1413         (FE_OVERFLOW): Likewise.
1414         (FE_UNDERFLOW): Likewise.
1415         (FE_INEXACT): Likewise.
1416         (FE_TONEAREST): Likewise.
1417         (FE_DOWNWARD): Likewise.
1418         (FE_UPWARD): Likewise.
1419         (FE_TOWARDZERO): Likewise.
1420
1421 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1422
1423         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1424
1425 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1426
1427         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1428         commands.  Quote $PWD.
1429         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1430         -x" by "export".
1431         (remove_newlines): Remove.
1432
1433 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1434
1435         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1436         * stdlib/stdlib.h (atof): Moved to ...
1437         * include/bits/stdlib-float.h: Here.  New file.
1438         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1439         * stdlib/bits/stdlib-float.h: New file.
1440         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1441         -mno-sse -mno-mmx.
1442         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1443         <xmmintrin.h>.
1444
1445 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1446
1447         * conform/conformtest.pl (@headers): Add fenv.h.
1448         * conform/data/fenv.h-data: New file.
1449         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1450         include of <math/fenv.h>.
1451
1452         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1453         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1454         && !UNIX98].  Enables tests for XOPEN2K8.
1455         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1456         POSIX2008]: Likewise.
1457
1458         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1459         (struct rusage): Do not expect type or its members.
1460
1461         [BZ #3439]
1462         * math/math.h (FP_NAN): Define macro to integer constant usable in
1463         #if and use that to give value to enum constant.
1464         (FP_INFINITE): Likewise.
1465         (FP_ZERO): Likewise.
1466         (FP_SUBNORMAL): Likewise.
1467         (FP_NORMAL): Likewise.
1468
1469 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1470
1471         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1472         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1473         arguments.
1474
1475 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1476
1477         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1478         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1479         autoconf-time if not.
1480         * configure.in: Remove AC_PREREQ.
1481
1482 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1483
1484         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1485         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1486         of the internal implementation.
1487
1488 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1489
1490         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1491         except include of <misc/sys/syslog.h>.
1492
1493 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1494
1495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1496         function returns with a NULL context exit with zero.
1497
1498 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1499
1500         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1501
1502 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1503
1504         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1505         (run_program_cmd): This.
1506         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1507         (tst_langinfo): New variable.  Use it.
1508
1509 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1510
1511         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1512         floating point opcodes.
1513
1514 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1515
1516         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1517         variable.
1518
1519         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1520
1521         * sysdeps/mach/hurd/powerpc: Remove directory.
1522         * sysdeps/mach/powerpc: Likewise.
1523
1524 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1525
1526         * scripts/check-local-headers.sh: Ignore c++ headers.
1527
1528 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1529
1530         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1531         __libc_cleanup_region_start argument.
1532
1533 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1534
1535         [BZ #14784]
1536         [BZ #14785]
1537         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1538         x * y using scaling, not as x * y + z.
1539         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1540         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1541         * math/libm-test.inc (fma_test): Add more tests.
1542         (fma_test_towardzero): Likewise.
1543         (fma_test_downward): Likewise.
1544         (fma_test_upward): Likewise.
1545
1546 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1547
1548         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1549
1550 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1551
1552         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1553         New variable.
1554
1555 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1556
1557         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1558
1559 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1560
1561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1562         Fix sort order.
1563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1564         Likewise.
1565
1566 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1567
1568         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1569         Fix the order of the list for glibc 2.17.
1570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1571         Likewise.
1572
1573 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1574
1575         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1576
1577 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1578
1579         [BZ #14610]
1580         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1581         for low part of x being zero before using __atanl (y).
1582         * math/libm-test.inc (atan2_test): Add another test.
1583
1584         * manual/install.texi (Configuring and compiling): Document
1585         general use of test-wrapper and test-wrapper-env.
1586         * INSTALL: Regenerated.
1587
1588         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1589         (__fma): Do not extract and scale down low bits on after-rounding
1590         systems when result rounded to normal precision would have normal
1591         exponent.
1592         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1593         (__fmal): Do not extract and scale down low bits on after-rounding
1594         systems when result rounded to normal precision would have normal
1595         exponent.
1596         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1597         (__fmal): Do not extract and scale down low bits on after-rounding
1598         systems when result rounded to normal precision would have normal
1599         exponent.
1600         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1601         macro.
1602         (fma_test): Add more tests.
1603         (fma_test_towardzero): Likewise.
1604         (fma_test_downward): Likewise.
1605         (fma_test_upward): Likewise.
1606
1607 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1608
1609         * sysdeps/i386/tininess.h: Renamed to ...
1610         * sysdeps/x86/tininess.h: This.
1611         * sysdeps/x86_64/tininess.h: Removed.
1612
1613 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1614
1615         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1616         input.  Use $(build-program-cmd).
1617         ($(objpfx)tst-array1-static.out): Likewise.
1618         ($(objpfx)tst-array2.out): Likewise.
1619         ($(objpfx)tst-array3.out): Likewise.
1620         ($(objpfx)tst-array4.out): Likewise.
1621         ($(objpfx)tst-array5.out): Likewise.
1622         ($(objpfx)tst-array5-static.out): Likewise.
1623
1624 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1625
1626         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1627         if defined.
1628
1629         * nss/nsswitch.h (nss_interface_function): Provide new
1630         macro for use with NSS functions.
1631         * grp/initgroups.c: Use new macro.
1632         * nss/getXXbyYY.c: Likewise.
1633         * nss/getXXbyYY_r.c: Likewise.
1634         * nss/getXXent.c: Likewise.
1635         * nss/getXXent_r.c: Likewise.
1636         * sysdeps/posix/getaddrinfo.c: Likewise.
1637
1638 2012-10-30  Andreas Jaeger  <aj@suse.de>
1639
1640         * po/ru.po: Update Russion translation from translation project.
1641
1642 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1643
1644         [BZ #14152]
1645         [BZ #14783]
1646         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1647         result and shift together with sticky bit instead of replicating
1648         round-to-nearest rounding.
1649         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1650         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1651         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1652         missing underflow exceptions.
1653         (fma_test_towardzero): Add more tests.
1654         (fma_test_downward): Likewise.
1655         (fma_test_upward): Likewise.
1656
1657         [BZ #14047]
1658         * sysdeps/generic/tininess.h: New file.
1659         * sysdeps/i386/tininess.h: Likewise.
1660         * sysdeps/sh/tininess.h: Likewise.
1661         * sysdeps/x86_64/tininess.h: Likewise.
1662         * stdlib/tst-strtod-underflow.c: Likewise.
1663         * stdlib/tst-tininess.c: Likewise.
1664         * stdlib/strtod_l.c: Include <tininess.h>.
1665         (round_and_return): Do not set errno for exact underflow cases.
1666         Force an underflow exception when setting errno for underflow.
1667         Determine underflow based on rounding to normal precision if
1668         TININESS_AFTER_ROUNDING.
1669         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1670         ERANGE for exact underflow cases.
1671         * stdlib/Makefile (tests): Add tst-tininess and
1672         tst-strtod-underflow.
1673         ($(objpfx)tst-tininess): Use $(link-libm).
1674         ($(objpfx)tst-strtod-underflow): Likewise.
1675
1676 2012-10-30  Andreas Jaeger  <aj@suse.de>
1677
1678         [BZ#14767]
1679         * elf/Makefile (tests): Remove conditional for have-initfini-array
1680         since this is now always required and the variable does not exist
1681         anymore.
1682         (tests-static): Likewise.
1683         (modules-names): Likewise.
1684
1685         * po/eo.po: Add Esperanto translation from translation project.
1686
1687         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1688         merged with constructor/destructor.
1689         (init_array): Likewise.
1690         * elf/tst-array2dep.c (fini_array): Likewise.
1691         (init_array): Likewise.
1692
1693 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1694
1695         * manual/message.texi: Delete @cartouche tags.
1696
1697 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1698
1699         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1700         EOPNOTSUPP.
1701         * sysdeps/mach/hurd/fsync.c: Likewise.
1702
1703         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1704         [_POSIX_REALTIME_SIGNALS]: Change condition to
1705         [_POSIX_REALTIME_SIGNALS > 0].
1706
1707 2012-10-27  Andreas Jaeger  <aj@suse.de>
1708
1709         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1710         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1711         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1712         [__WORDSIZE != 64]: Likewise.
1713
1714 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1715
1716         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1717         *  iconvdata/tst-tables.sh: Likewise.
1718
1719 2012-10-25  David S. Miller  <davem@davemloft.net>
1720
1721         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1722         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1723         of strtoull.
1724
1725         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1726         ifunc-impl-list.c
1727         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1728         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1729         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1730         file.
1731
1732 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1733
1734         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1735         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1736         __getdirentries.
1737
1738 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1739             Jim Blandy  <jimb@codesourcery.com>
1740
1741         * scripts/cross-test-ssh.sh: New file.
1742         * manual/install.texi (Configuring and compiling): Document use of
1743         cross-test-ssh.sh.
1744         * INSTALL: Regenerated.
1745
1746 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1747
1748         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1749         EOPNOTSUPP.
1750
1751 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1752
1753         * Makeconfig (run-program-prefix): Fix comment.
1754
1755 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1756             Jim Blandy  <jimb@codesourcery.com>
1757
1758         * Makeconfig (test-wrapper): New variable,
1759         (test-wrapper-env): Likewise.
1760         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1761         (run-built-tests): Define to yes.
1762         (run-program-prefix): Use $(test-wrapper).
1763         (built-program-cmd): Likewise.
1764         * Rules (make-test-out): Use $(test-wrapper-env) and
1765         $(host-built-program-cmd).
1766         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1767         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1768         tst-pathopt.sh.
1769         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1770         $(test-wrapper-env) to tst-rtld-load-self.sh.
1771         ($(objpfx)order2.out): Use $(test-wrapper).
1772         ($(objpfx)tst-initorder.out): Likewise.
1773         ($(objpfx)tst-initorder2.out): Likewise.
1774         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1775         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1776         (test_wrapper_env): New variable.  Use it to run ld.so.
1777         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1778         Use it to run ld.so.
1779         (test_wrapper_env): Likewise.
1780         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1781         $(test-wrapper) to run-iconv-test.sh.
1782         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1783         (ICONV): Use $test_wrapper.
1784         * posix/Makefile ($(objpfx)globtest.out): Pass
1785         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1786         globtest.sh, not $(run-program-prefix).
1787         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1788         (test_wrapper): Likewise.
1789         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1790         set together with run_via_rtld_prefix.
1791         (run_program_prefix): Define in terms of test_wrapper and
1792         run_via_rtld_prefix.
1793
1794 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1795
1796         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1797         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1798         Targets removed.
1799
1800         [BZ #14743]
1801         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1802         Declare __clock_getres, __clock_gettime, __clock_settime,
1803         __clock_nanosleep, and __clock_getcpuclockid.
1804         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1805         Remove librt_hidden_def (clock_gettime).
1806         * sysdeps/unix/clock_gettime.c: Likewise.
1807         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1808         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1809         * rt/clock_getres.c: Define __clock_getres as an alias.
1810         * sysdeps/posix/clock_getres.c: Likewise.
1811         * rt/clock_settime.c: Define __clock_settime as an alias.
1812         * sysdeps/unix/clock_settime.c: Likewise.
1813         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1814         * sysdeps/unix/clock_nanosleep.c: Likewise.
1815         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1816         * rt/clock-compat.c: New file.
1817         * rt/Makefile (librt-routines): Add clock-compat and move
1818         $(clock-routines) to ...
1819         (routines): ... here, new variable.
1820         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1821         Don't add get_clockfreq here.
1822         * rt/Versions (libc: GLIBC_2.17): New version set.
1823         Add clock_* symbols here.
1824         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1825         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1826         (GLIBC_2.17): Add clock_* symbols.
1827         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1828         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1829         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1831         Likewise.
1832         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1833         Likewise.
1834         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1835         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1836         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1837         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1838         * NEWS: Mention the move.
1839
1840         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1841         Use __open, __read, __close rather than their public counterparts.
1842         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1843         (__get_clockfreq_via_cpuinfo): Likewise.
1844         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1845         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1846
1847         * config.h.in (HAVE_IFUNC): New #undef.
1848         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1849         was successful.
1850         * configure: Regenerated.
1851
1852 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1853
1854         * configure.in: Move READELF check to start of file.
1855         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1856         libc_cv_asm_gnu_indirect_function in the process.
1857         * configure: Regenerated.
1858
1859 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1860
1861         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1862         send the output to /dev/null.
1863         (libc_cv_cc_with_libunwind): Likewise.
1864         (libc_cv_as_noexecstack): Likewise.
1865         * configure: Regenerate.
1866
1867 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1868
1869         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1870
1871         * posix/globtest.sh (TMPDIR): Do not set.
1872         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1873         (testout): Likewise.
1874
1875 2012-10-24  Andreas Jaeger  <aj@suse.de>
1876
1877         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1878         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1879         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1880         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1881         posix_fadvise64, posix_fallocate64.
1882
1883         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1884         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1885         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1886         Likewise.
1887         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1888         Likewise.
1889         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1890
1891         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1892         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1893         <bits/fcntl-linux.h>.
1894         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1895
1896         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1897         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1898         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1899         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1900         [__WORDSIZE != 64]: Likewise.
1901
1902 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1903
1904         * Makeconfig (run-built-tests): New variable.
1905         * Rules [$(cross-compiling) = yes]: Change condition to
1906         [$(run-built-tests) = no].
1907         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1908         to [$(run-built-tests) = yes].
1909         * elf/Makefile [$(cross-compiling) = no]: Likewise
1910         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1911         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1912         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1913         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1914         * io/Makefile [$(cross-compiling) = no]: Likewise.
1915         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1916         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1917         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1918         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1919         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1920         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1921         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1922         * string/Makefile [$(cross-compiling) = no]: Likewise.
1923
1924         * posix/Makefile ($(objpfx)globtest.out): Pass
1925         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1926         $(rtld-installed-name).
1927         * posix/globtest.sh (elf_objpfx): Remove variable.
1928         (rtld_installed_name): Likewise.
1929         (library_path): Likewise.
1930         (run_program_prefix): New variable.  Use for running globtest
1931         binary.
1932
1933 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1934             Joseph Myers  <joseph@codesourcery.com>
1935
1936         * Makeconfig (host-built-program-cmd): New variable.
1937         * elf/Makefile (tst-stackguard1-ARGS): Use
1938         $(host-built-program-cmd).
1939         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1940         (tst-spawn-ARGS): Likewise.
1941         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1942
1943 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1944             Jim Blandy  <jimb@codesourcery.com>
1945
1946         * Makeconfig (run-via-rtld-prefix): New variable.
1947         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1948         (built-program-cmd): Likewise.
1949
1950 2012-10-22  Andreas Jaeger  <aj@suse.de>
1951
1952         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1953         __O_RSYNC if it exists, otherwise to O_SYNC.
1954
1955 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1956             Joseph Myers  <joseph@codesourcery.com>
1957
1958         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1959         /dev/null.
1960         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1961         from /dev/null
1962         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1963         /dev/null.
1964
1965 2012-10-22  Andreas Jaeger  <aj@suse.de>
1966
1967         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1968         Define always.
1969         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1970
1971         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1972         bits/fcntl-linux.h.
1973
1974         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1975         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1976
1977         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1978         to __O_LARGEFILE.
1979         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1980         to __O_LARGEFILE.
1981
1982 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1983             Joseph Myers  <joseph@codesourcery.com>
1984
1985         * config.make.in (NM): New variable.
1986
1987 2012-10-21  Andreas Jaeger  <aj@suse.de>
1988
1989         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1990         definitions and declarations that are provided by
1991         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1992
1993 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1994
1995         [BZ #14683]
1996         * elf/Makefile (tests-static): Add tst-leaks1-static.
1997         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1998         ($(objpfx)tst-leaks1-static): New rule.
1999         ($(objpfx)tst-leaks1-static-mem): Likewise.
2000         (tst-leaks1-static-ENV): New macro.
2001         * elf/dl-open.c (dl_open_worker): Check the main application
2002         only if SHARED is defined.
2003         * elf/tst-leaks1-static.c: New file.
2004
2005 2012-10-20  Andreas Jaeger  <aj@suse.de>
2006
2007         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
2008         generic values for Linux.
2009         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
2010         and declarations that are provided by <bits/fcntl-linux.h> and
2011         include <bits/fcntl-linux.h>.
2012         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
2013         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
2014
2015 2012-10-20  Roland McGrath  <roland@hack.frob.com>
2016
2017         * io/fcntl.h: Move include of <bits/types.h> to the top and
2018         include it unconditionally.
2019
2020 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2021
2022         * wcsmbs/Makefile (tests-ifunc): New variable.
2023         (tests): Add $(tests-ifunc).
2024         * wcsmbs/test-wcschr-ifunc.c: New file.
2025         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
2026         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
2027         * wcsmbs/test-wcslen-ifunc.c: Likewise.
2028         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
2029         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
2030
2031         * string/Makefile (tests-ifunc): New variable.
2032         (tests): Add $(tests-ifunc).
2033         * string/test-memccpy.c (TEST_NAME): New macro.
2034         * string/test-memchr.c (TEST_NAME): Likewise.
2035         * string/test-memcmp.c (TEST_NAME): Likewise.
2036         * string/test-memcpy.c (TEST_NAME): Likewise.
2037         * string/test-memmem.c (TEST_NAME): Likewise.
2038         * string/test-memmove.c (TEST_NAME): Likewise.
2039         * string/test-memset.c (TEST_NAME): Likewise.
2040         * string/test-rawmemchr.c (TEST_NAME): Likewise.
2041         * string/test-stpcpy.c (TEST_NAME): Likewise.
2042         * string/test-stpncpy.c (TEST_NAME): Likewise.
2043         * string/test-strcasecmp.c (TEST_NAME): Likewise.
2044         * string/test-strcasestr.c (TEST_NAME): Likewise.
2045         * string/test-strcat.c (TEST_NAME): Likewise.
2046         * string/test-strchr.c (TEST_NAME): Likewise.
2047         * string/test-strcmp.c(TEST_NAME): Likewise.
2048         * string/test-strcpy.c (TEST_NAME): Likewise.
2049         * string/test-strcspn.c (TEST_NAME): Likewise.
2050         * string/test-strlen.c (TEST_NAME): Likewise.
2051         * string/test-strncasecmp.c (TEST_NAME): Likewise.
2052         * string/test-strncmp.c (TEST_NAME): Likewise.
2053         * string/test-strncpy.c (TEST_NAME): Likewise.
2054         * string/test-strnlen.c (TEST_NAME): Likewise.
2055         * string/test-strpbrk.c (TEST_NAME): Likewise.
2056         * string/test-strrchr.c (TEST_NAME): Likewise.
2057         * string/test-strspn.c (TEST_NAME): Likewise.
2058         * string/test-strstr.c (TEST_NAME): Likewise.
2059         * string/test-bcopy-ifunc.c: New file.
2060         * string/test-bzero-ifunc.c: Likewise.
2061         * string/test-memccpy-ifunc.c: Likewise.
2062         * string/test-memchr-ifunc.c: Likewise.
2063         * string/test-memcmp-ifunc.c: Likewise.
2064         * string/test-memcpy-ifunc.c: Likewise.
2065         * string/test-memmem-ifunc.c: Likewise.
2066         * string/test-memmove-ifunc.c: Likewise.
2067         * string/test-mempcpy-ifunc.c: Likewise.
2068         * string/test-memset-ifunc.c: Likewise.
2069         * string/test-rawmemchr-ifunc.c: Likewise.
2070         * string/test-stpcpy-ifunc.c: Likewise.
2071         * string/test-stpncpy-ifunc.c: Likewise.
2072         * string/test-strcasecmp-ifunc.c: Likewise.
2073         * string/test-strcasestr-ifunc.c: Likewise.
2074         * string/test-strcat-ifunc.c: Likewise.
2075         * string/test-strchr-ifunc.c: Likewise.
2076         * string/test-strchrnul-ifunc.c: Likewise.
2077         * string/test-strcmp-ifunc.c: Likewise.
2078         * string/test-strcpy-ifunc.c: Likewise.
2079         * string/test-strcspn-ifunc.c: Likewise.
2080         * string/test-strlen-ifunc.c: Likewise.
2081         * string/test-strncasecmp-ifunc.c: Likewise.
2082         * string/test-strncat-ifunc.c: Likewise.
2083         * string/test-strncmp-ifunc.c: Likewise.
2084         * string/test-strncpy-ifunc.c: Likewise.
2085         * string/test-strnlen-ifunc.c: Likewise.
2086         * string/test-strpbrk-ifunc.c: Likewise.
2087         * string/test-strrchr-ifunc.c: Likewise.
2088         * string/test-strspn-ifunc.c: Likewise.
2089         * string/test-strstr-ifunc.c: Likewise.
2090
2091         * debug/Makefile (tests-ifunc): New variable.
2092         (tests): Add $(tests-ifunc).
2093         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
2094         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
2095         * debug/test-stpcpy_chk-ifunc.c: New file.
2096         * debug/test-strcpy_chk-ifunc.c: Likewise.
2097
2098 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2099
2100         [BZ #13601]
2101         * elf/dl-load.c (open_verify): Retry read if the entire ELF
2102         header is not read in.
2103
2104 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
2105
2106         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
2107         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2108         directly.  Pass built executable to script as
2109         $(built-program-cmd).
2110         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2111         $testprogram without using LD_LIBRARY_PATH and $ldso.
2112
2113         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2114         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2115         $(rtld-installed-name).
2116         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2117         (rtld_installed_name): Likewise.
2118         (library_path): Likewise.
2119         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2120         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2121         $(run-program-prefix) to tst-tables.sh.
2122         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2123         it to run tst-table-from and tst-table-to.
2124         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2125         Pass it to tst-table.sh.
2126         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2127         $(run-program-prefix) to tst-gettext.sh.
2128         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2129         tst-translit.sh.
2130         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2131         tst-gettext2.sh.
2132         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2133         to run tst-gettext.
2134         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2135         to run tst-gettext2.
2136         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2137         to run tst-translit.
2138         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2139         $(run-program-prefix) to tst-mtrace.sh.
2140         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2141         to run tst-mtrace.
2142         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2143         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2144         $(rtld-installed-name).
2145         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2146         (rtld_installed_name): Likewise.
2147         (run_program_prefix): New variable.  Use it to run wordexp-test.
2148
2149         * Makeconfig (ARCH): Remove all definitions.
2150         (machine): Likewise.
2151         [ARCH]: Remove conditional code.
2152         [!objdir]: Give error.
2153         [!objdir] (objpfx): Remove.
2154         [!objdir] (common-objpfx): Likewise.
2155         [!objdir] (common-objdir): Likewise.
2156         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2157         AC_CONFIG_FILES call.
2158         * configure: Regenerated.
2159
2160         [BZ #13888]
2161         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2162         or TMPDIR.
2163         (testout): Likewise.
2164
2165         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2166         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2167         $(rtld-installed-name).
2168         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2169         (rtld_installed_name): Likwise.
2170         (runit): Remove function.
2171         (run_getconf): New variable,  Use it for running getconf binary.
2172
2173 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2174
2175         [BZ #14716]
2176         * string/test-memmem.c (check_result): New function.
2177         (do_one_test): Use it.
2178         (check1): New function.
2179         (test_main): Use it.
2180
2181 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2182
2183         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2184
2185 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2186
2187         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2188         (_G_LSEEK64): Likewise.
2189         (_G_MMAP64): Likewise.
2190         (_G_FSTAT64): Likewise.
2191         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2192         (_G_LSEEK64): Likewise.
2193         (_G_MMAP64): Likewise.
2194         (_G_FSTAT64): Likewise.
2195         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2196         unconditional.  Call __mmap64 directly.
2197         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2198         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2199         __lseek64 directly.
2200         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2201         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2202         __mmap64 directly.
2203         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2204         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2205         __lseek64 directly.
2206         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2207         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2208         __lseek64 directly.
2209         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2210         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2211         __lseek64 directly.
2212         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2213         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2214         __fxstat64 directly.
2215         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2216         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2217         unconditional.
2218         (freopen64) [!_G_OPEN64]: Remove conditional code.
2219         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2220         unconditional.
2221         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2222         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2223         unconditional.
2224         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2225         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2226         unconditional.
2227         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2228         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2229         unconditional.
2230         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2231         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2232         unconditional.
2233         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2234         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2235         unconditional.
2236         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2237         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2238         unconditional.
2239         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2240
2241 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2242
2243         [BZ #12140]
2244         * manual/memory.texi (Malloc Tunable Parameters): Add note
2245         about free list pointers overwriting some perturb bytes.
2246         Wording suggested by Roland McGrath.
2247
2248 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2249
2250         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2251         (lgamma_test): Likewise.
2252         (tgamma_test): Likewise.
2253
2254 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2255
2256         [BZ #14700]
2257         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2258         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2259
2260 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2261
2262         * NEWS: Mention BZ #14716.
2263         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2264         when removing AVAILABLE1_USES_J macro.
2265
2266 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2267
2268         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2269         (__bswap_64): __uint64_t for unsigned 64-bit int.
2270
2271 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2272
2273         * include/string.h (memmem): Declare libc hidden alias.
2274         * string/memmem.c (memmem): Define libc hidden alias.
2275         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2276         __read, __close instead of open, read, close.
2277
2278 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2279
2280         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2281         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2282         global and hidden.
2283         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2284         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2285         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2286         Likewise.
2287         (__rawmemchr_sse2): Likewise.
2288         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2289         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2290         (__strchr_sse2): Likewise.
2291         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2292         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2293         (__strcasecmp_sse2): Likewise.
2294         (__strncasecmp_sse2): Likewise.
2295         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2296         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2297         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2298         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2299         (__strrchr_sse2): Likewise.
2300         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2301         ifunc-impl-list.c.
2302         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2303         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2304         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2305         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2306         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2307         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2308         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2309         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2310         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2311         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2312         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2313         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2314         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2315         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2316         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2317         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2318         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2319         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2320         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2321         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2322         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2323         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2324         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2325         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2326         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2327         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2328         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2329         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2330         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2331         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2332
2333         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2334         global and hidden.
2335         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2336         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2337         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2338         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2339         Likewise.
2340         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2341         Likewise.
2342         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2343         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2344         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2345         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2346         ifunc-impl-list.c.
2347         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2348         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2349         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2350         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2351         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2352         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2353         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2354         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2355         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2356         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2357         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2358         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2359         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2360         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2361         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2362         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2363         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2364         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2365         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2366         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2367         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2368         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2369         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2370         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2371         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2372         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2373         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2374         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2375         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2376         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2377         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2378         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2379         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2380         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2381         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2382         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2383         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2384         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2385         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2386         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2387         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2388
2389         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2390         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2391         * include/ifunc-impl-list.h: New file.
2392         * misc/ifunc-impl-list.c: Likewise.
2393         * misc/Makefile (routines): Add ifunc-impl-list.
2394         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2395         * string/test-string.h: Include <ifunc-impl-list.h>.
2396         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2397         impl_array): New variables.
2398         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2399         are defined.
2400         (test_init): Call __libc_ifunc_impl_list to initialize
2401         func_list if TEST_IFUNC and TEST_NAME are defined.
2402
2403         * string/Makefile (strop-tests): Add bcopy and bzero.
2404         * string/test-bcopy.c: New file.
2405         * string/test-bzero.c: Likewise.
2406         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2407         defined.
2408         * string/test-memset.c: Support bzero test if TEST_BZERO is
2409         defined.
2410         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2411         __libc_memmove.
2412         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2413         __libc_memset.
2414         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2415         of memset.
2416
2417 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2418
2419         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2420         * configure: Regenerated.
2421
2422         * Makeconfig (+link-static-before-libc): Don't include
2423         $(link-static-libc).
2424
2425         * libio/libio.h (_IO_pos_t): Remove.
2426
2427 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2428
2429         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2430         McGrath.
2431
2432 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2433
2434         * crypt/crypt-entry.c: Include fips-private.h.
2435         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2436         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2437         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2438         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2439
2440 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2441
2442         * crypt/crypt-private.h: Include stdbool.h.
2443         (_ufc_setup_salt_r): Return bool.
2444         * crypt/crypt-entry.c: Include errno.h.
2445         (__crypt_r): Return NULL with EINVAL for bad salt.
2446         * crypt/crypt_util.c (bad_for_salt): New.
2447         (_ufc_setup_salt_r): Check that salt is long enough and within
2448         the specified alphabet.
2449         * crypt/badsalttest.c: New file.
2450         * crypt/Makefile (tests): Add it.
2451         ($(objpfx)badsalttest): New.
2452
2453 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2454
2455         * NEWS: Add entry for BZ #14602.
2456
2457 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2458
2459         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2460         type-generic.
2461         * math/libm-test.inc: Update comment listing what functions and
2462         macros are tested.
2463         (isgreater_test): New function.
2464         (isgreaterequal_test): Likewise.
2465         (isless_test): Likewise.
2466         (islessequal_test): Likewise.
2467         (islessgreater_test): Likewise.
2468         (isunordered_test): Likewise.
2469         (main): Call the new functions.
2470
2471 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2472
2473         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2474         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2475         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2476         * sysdeps/i386/configure: Regenerated.
2477         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2478         * sysdeps/mach/configure: Regenerated.
2479         * sysdeps/mach/hurd/configure: Regenerated.
2480         * sysdeps/powerpc/configure: Regenerated.
2481         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2482         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2483         * sysdeps/s390/s390-32/configure: Regenerated.
2484         * sysdeps/s390/s390-64/configure: Regenerated.
2485         * sysdeps/sh/configure: Regenerated.
2486         * sysdeps/sparc/configure: Regenerated.
2487         * sysdeps/unix/sysv/linux/configure: Regenerated.
2488         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2489         * sysdeps/x86_64/configure: Regenerated.
2490
2491         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2492         defined.  Don't check if MAP is NULL.
2493
2494 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2495
2496         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2497         (_G_stat64): Likewise.
2498         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2499         (_G_stat64): Likewise.
2500         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2501         instead of struct _G_stat64.
2502         * libio/fileops.c (mmap_remap_check): Likewise.
2503         (decide_maybe_mmap): Likewise.
2504         (_IO_new_file_seekoff): Likewise.
2505         (_IO_file_stat): Likewise.
2506         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2507         _G_off64_t.
2508         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2509         instead of struct _G_stat64.
2510         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2511
2512 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2513
2514         [BZ #14602]
2515         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2516         Replace with ...
2517         (CHECK_EOL): New macro.
2518         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2519         CHECK_EOL.
2520         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2521         Replace with CHECK_EOL.
2522         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2523         Replace with CHECK_EOL.
2524
2525 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2526
2527         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2528         type-generic.
2529         * math/libm-test.inc: Update comment listing what functions and
2530         macros are tested.
2531         (finite_test): New function.
2532         (isinf_test): Likewise.
2533         (isnan_test): Likewise.
2534         (fpclassify_test): Test subnormal input.
2535         (isfinite_test): Likewise.
2536         (isnormal_test): Likewise.
2537         (main): Call the new functions.
2538
2539 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2540
2541         [BZ #14660]
2542         * Makerules (%.dynsym): Force C locale when running
2543         $(OBJDUMP) --dynamic-syms.
2544
2545 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2546
2547         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2548         <stdint.h>.
2549
2550 2012-10-06  David S. Miller  <davem@davemloft.net>
2551
2552         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2553         upper 32-bits of the length value in %o2 since we use branch-on-register
2554         tests which consider the entire 64-bit register.
2555
2556 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2557
2558         * string/test-strstr.c (check2): Add a test for page boundary.
2559
2560 2012-10-05  David S. Miller  <davem@davemloft.net>
2561
2562         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2563         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2564         file.
2565         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2566         sysdep_routines.
2567         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2568         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2569         and bzero when HWCAP_SPARC_CRYPTO is present.
2570
2571 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2572
2573         [BZ #14602]
2574         * string/test-strstr.c (check2): New function.
2575         (test_main): Call check2.
2576
2577         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2578         and bug-strchr1.
2579         * string/bug-strcasestr1.c (do_test): Moved to ...
2580         * string/test-strcasestr.c (check1): Here.  New function.
2581         (do_one_test): Break out result checking code into ...
2582         (check_result): This.  New function.
2583         (do_one_test): Call check_result.
2584         (test_main): Call check1.
2585         * string/bug-strchr1.c (do_test): Moved to ...
2586         * string/test-strchr.c (check1): Here.  New function.
2587         (do_one_test): Break out result checking code into ...
2588         (check_result): This.  New function.
2589         (do_one_test): Call check_result.
2590         (test_main): Call check1.
2591         * string/bug-strstr1.c (main): Moved to ...
2592         * string/test-strchr.c (check1): Here.  New function.
2593         (do_one_test): Break out result checking code into ...
2594         (check_result): This.  New function.
2595         (do_one_test): Call check_result.
2596         (test_main): Call check1.
2597         * string/bug-strcasestr1.c: Removed.
2598         * string/bug-strchr1.c: Likewise.
2599         * string/bug-strstr1.c: Likewise.
2600
2601         * elf/Makefile (dl-routines): Add hwcaps.
2602         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2603         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2604         (_dl_important_hwcaps): Moved to ...
2605         * elf/dl-hwcaps.c: Here.  New file.
2606         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2607
2608         [BZ #14557]
2609         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2610         if IS_IN_rtld isn't defined.
2611
2612         * elf/dl-support.c (_dl_sysinfo_map): New.
2613         Include "get-dynamic-info.h" and "setup-vdso.h".
2614         (_dl_non_dynamic_init): Call setup_vdso.
2615         * elf/dynamic-link.h: Don't include <assert.h>.
2616         (elf_get_dynamic_info): Moved to ...
2617         * elf/get-dynamic-info.h: Here.  New file.
2618         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2619         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2620         * elf/setup-vdso.h: Here.  New file.
2621         * elf/rtld.c: Include "setup-vdso.h".
2622         (dl_main): Call setup_vdso.
2623
2624 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2625
2626         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2627         creal in comment listing functions tested.  List finite, isinf,
2628         isnan, isless, islessequal, isgreater, isgreaterequal,
2629         islessgreater, isunordered, lgamma_r and pow10 as functions and
2630         macros not tested.  Mention which functions not tested are aliases
2631         for other functions.  Fix typo.  Note that signs of NaNs are not
2632         tested.
2633
2634         * scripts/config.guess: Update from config.git.
2635         * scripts/config.sub: Likewise.
2636
2637 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2638
2639         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2640         * misc/madvise.c (madvise): Renamed to __madvise.
2641         Make madvise a weak alias.
2642         * include/sys/mman.h: Declare __madvise.
2643         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2644         * sysdeps/unix/syscalls.list
2645         (madvise): Make __madvise the strong name, and madvise a weak alias.
2646         * sysdeps/unix/sysv/linux/syscalls.list
2647         (madvise, mmap): Remove redundant entries.
2648         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2649         * malloc/malloc.c (mtrim): Likewise.
2650         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2651
2652 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2653
2654         * sysdeps/mach/hurd/dl-cache.c: File removed.
2655         * config.h.in (USE_LDCONFIG): New #undef.
2656         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2657         * configure: Regenerated.
2658         * elf/Makefile (dl-routines): Add dl-cache only under
2659         [$(use-ldconfig) = yes].
2660         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2661         cache on [USE_LDCONFIG].
2662         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2663         [USE_LDCONFIG].
2664         * elf/rtld.c (dl_main): Likewise.
2665
2666 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2667
2668         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2669         _SC_LEVEL4_CACHE_LINESIZE.
2670
2671 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2672
2673         * sysdeps/unix/bsd/confstr.h: File removed.
2674
2675 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2676
2677         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2678         sys/sdt-config.h.
2679
2680 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2681
2682         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2683         Make 'mapoff' field ElfW(Off) rather than off_t.
2684
2685 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2686
2687         * nscd/Makefile: Remove nscd-cflags and all its users.
2688         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2689         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2690
2691         [BZ #10631]
2692         * malloc.c (malloc_printerr): Clarify error message.
2693
2694 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2695
2696         [BZ #14648]
2697         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2698         Set bit_FMA_Usable if FMA is supported.
2699         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2700         macro.
2701         (bit_FMA4_Usable): Updated.
2702         (index_FMA_Usable): New macro.
2703         (CPUID_FMA): Likewise
2704         (HAS_FMA): Defined with bit_FMA_Usable.
2705
2706 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2707
2708         * bits/types.h (__swblk_t): Type removed.
2709         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2710         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2711         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2712         (__SWBLK_T_TYPE): Likewise.
2713         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2714         (__SWBLK_T_TYPE): Likewise.
2715         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2716         (__SWBLK_T_TYPE): Likewise.
2717         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2718         (__SWBLK_T_TYPE): Likewise.
2719
2720 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2721             Honza Horak <hhorak@redhat.com>
2722
2723         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2724         (xdr_mapname): Use YPMAXMAP as maxsize.
2725         (xdr_peername): Use YPMAXPEER as maxsize.
2726         (xdr_keydat): Use YPAXRECORD as maxsize.
2727         (xdr_valdat): Use YPMAXRECORD as maxsize.
2728
2729 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2730
2731         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2732
2733         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2734         * csu/init-first.c: ... here.
2735         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2736         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2737         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2738         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2739         * sysdeps/i386/init-first.c: File removed.
2740         * sysdeps/sh/init-first.c: File removed.
2741
2742 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2743
2744         [BZ #14645]
2745         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2746         if x * y might underflow to zero and z is zero.
2747         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2748         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2749         * math/libm-test.inc (min_subnorm_value): New variable.
2750         (fma_test): Add more tests.
2751         (fma_test_towardzero): Likewise.
2752         (fma_test_downward): Likewise
2753         (fma_test_upward): Likewise.
2754         (initialize): Set min_subnorm_value.
2755
2756 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2757
2758         [BZ #14638]
2759         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2760         0 + 0.
2761         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2762         mode for addition resulting in exact zero.
2763         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2764         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2765         exact 0 + 0.
2766         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2767         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2768         * math/libm-test.inc (fma_test): Add more tests.
2769         (fma_test_towardzero): New function.
2770         (fma_test_downward): Likewise.
2771         (fma_test_upward): Likewise.
2772         (main): Call the new functions.
2773
2774 2012-09-28  David S. Miller  <davem@davemloft.net>
2775
2776         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2777
2778 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2779
2780         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2781         instead of SIGALRM.
2782
2783         * sysdeps/gnu/_G_config.h: Moved to ...
2784         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2785         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2786         * sysdeps/generic/_G_config.h: ... here.
2787
2788         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2789
2790         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2791
2792         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2793         Conditionalize target on [libnss_test1.so-version].
2794
2795         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2796
2797         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2798         (elfobjdir): Move out of conditionals.
2799
2800         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2801         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2802         (__nss_lookup_function): Conditionalize label remove_from_tree on
2803         [!DO_STATIC_NSS || SHARED], matching its only use.
2804
2805 2012-09-28  David S. Miller  <davem@davemloft.net>
2806
2807         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2808         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2809         file.
2810         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2811         sysdep_routines.
2812         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2813         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2814         when HWCAP_SPARC_CRYPTO is present.
2815
2816 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2817
2818         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2819
2820 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2821
2822         [BZ #6530]
2823         * stdio-common/vfprintf.c (process_string_arg): Revert
2824         2000-07-22 change.
2825
2826 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2827
2828         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2829         for testcase.
2830         * stdio-common/tst-sprintf.c: Include <locale.h>
2831         (main): Test sprintf's handling of incomplete multibyte
2832         characters.
2833
2834 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2835
2836         * elf/dl-runtime.c (VERSYMIDX): Removed.
2837         * elf/dl-version.c (VERSYMIDX): Likewise.
2838         * elf/do-rel.h (VERSYMIDX): Likewise.
2839         (VALIDX): Likewise.
2840         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2841         * elf/rtld.c (VALIDX): Likewise.
2842         (ADDRIDX): Likewise.
2843         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2844         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2845         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2846         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2847         (VALIDX): Likewise.
2848         (ADDRIDX): Likewise.
2849
2850 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2851
2852         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2853
2854 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2855
2856         [BZ #11438]
2857         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2858         to global scope.
2859         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2860         addresses are in the same scope as 192.0.2/24.
2861         * posix/gai.conf: Document new scope table defaults.
2862
2863 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2864
2865         [BZ #5298]
2866         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2867         for ftell.  Compute offsets from write pointers instead.
2868         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2869
2870 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2871
2872         [BZ #14543]
2873         * libio/Makefile (tests): New test case tst-fseek.
2874         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2875         combination works in wide mode.
2876         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2877         state when the external buffer state changes.
2878
2879 2012-09-27  David S. Miller  <davem@davemloft.net>
2880
2881         [BZ #14376]
2882         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2883         pass reloc->r_addend in as the 'high' argument to
2884         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2885
2886         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2887
2888 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2889
2890         * rt/tst-aio2.c: Include <pthread.h>.
2891         * rt/tst-aio3.c: Likewise.
2892
2893 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2894
2895         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2896
2897 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2898
2899         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2900         contents on [SHARED].
2901
2902 2012-09-26  Marek Polacek  <polacek@redhat.com>
2903
2904         [BZ #14530]
2905         [BZ #13741]
2906         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2907         for C++ and GCC <4.3 as well as for non GCC compilers.
2908
2909 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2910
2911         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2912
2913 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2914
2915         * Makefile.in (all, install): Declare with .PHONY.
2916         Reported by Michael Hope <michael.hope@linaro.org>.
2917
2918 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2919
2920         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2921         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2922         system header.
2923         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2924         Likewise.
2925         (sydep_routines): Add the new and the internal functions.
2926         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2927         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2929         (GLIBC_2.17): Add the new function.
2930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2931         (GLIBC_2.17): Likewise.
2932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2933         (GLIBC_2.17): Likewise.
2934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2935         (GLIBC_2.17): Likewise.
2936         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2937
2938 2012-09-25  Alan Modra  <amodra@gmail.com>
2939
2940         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2941         Add release barrier before setting once_control to say
2942         initialisation is done.  Add hints on lwarx.  Use macro in
2943         place of isync.
2944         (clear_once_control): Add release barrier.
2945
2946 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2947
2948         [BZ #13629]
2949         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2950         specially.
2951         * math/s_clog10.c (__clog10): Likewise.
2952         * math/s_clog10f.c (__clog10f): Likewise.
2953         * math/s_clog10l.c (__clog10l): Likewise.
2954         * math/s_clogf.c (__clogf): Likewise.
2955         * math/s_clogl.c (__clogl): Likewise.
2956         * math/Makefile (libm-calls): Add x2y2m1.
2957         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2958         (__x2y2m1): Likewise.
2959         (__x2y2m1l): Likewise.
2960         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2961         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2962         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2963         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2964         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2965         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2966         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2967         * sysdeps/i386/fpu/libm-test-ulps: Update.
2968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2969
2970         [BZ #14621]
2971         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2972         int as type of variable DEPTH.
2973         (glob): Use size_t instead of int as type of variables NEWCOUNT
2974         and OLD_PATHC.
2975
2976 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2977
2978         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2979         Add s_sincosf-sse2.
2980         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2981         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2982         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2983         macros for using routine as __sincosf_ia32.
2984         Use macro for function declaration and weak_alias.
2985         * sysdeps/i386/fpu/libm-test-ulps: Update.
2986
2987         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2988         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2989
2990         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2991         subnormal argument.
2992         * math/s_cexpf.c (__cexpf): Likewise.
2993         * math/s_csinf.c (__csinf): Likewise.
2994         * math/s_csinhf.c (__csinhf): Likewise.
2995         * math/s_ctanf.c (__ctanf): Likewise.
2996         * math/s_ctanhf.c (__ctanhf): Likewise.
2997         * math/s_ccosh.c (__ccoshf): Likewise.
2998         * math/s_cexp.c (__cexpl): Likewise.
2999         * math/s_csin.c (__csin): Likewise.
3000         * math/s_csinh.c (__csinh): Likewise.
3001         * math/s_ctan.c (__ctan): Likewise.
3002         * math/s_ctanh.c (ctanh): Likewise.
3003         * math/s_ccoshl.c (__ccoshl): Likewise.
3004         * math/s_cexpl.c (__cexpl): Likewise.
3005         * math/s_csinl.c (__csinl): Likewise.
3006         * math/s_csinhl.c (__csinhl): Likewise.
3007         * math/s_ctanl.c (__ctanl): Likewise.
3008         * math/s_ctanhl.c (__ctanhl): Likewise.
3009
3010 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
3011
3012         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
3013         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
3014         (_IO_off_t): Define to __off_t, not _G_off_t.
3015         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
3016         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
3017         (_IO_wint_t): Define to wint_t, not _G_wint_t.
3018         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
3019         type of __dummy and __dummy2 fields.
3020         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
3021         (_G_ssize_t): Likewise.
3022         (_G_off_t): Likewise.
3023         (_G_pid_t): Likewise.
3024         (_G_uid_t): Likewise.
3025         (_G_wchar_t): Likewise.
3026         (_G_wint_t): Likewise.
3027         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
3028         (_G_ssize_t): Likewise.
3029         (_G_off_t): Likewise.
3030         (_G_pid_t): Likewise.
3031         (_G_uid_t): Likewise.
3032         (_G_wchar_t): Likewise.
3033         (_G_wint_t): Likewise.
3034         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
3035         (_G_ssize_t): Likewise.
3036         (_G_off_t): Likewise.
3037         (_G_pid_t): Likewise.
3038         (_G_uid_t): Likewise.
3039         (_G_wchar_t): Likewise.
3040         (_G_wint_t): Likewise.
3041
3042 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3043
3044         * malloc/arena.c: Include malloc-sysdep.h.
3045         (shrink_heap): Use check_may_shrink_heap to decide if madvise
3046         is sufficient to shrink the heap or an unmap is needed.
3047         * sysdeps/generic/malloc-sysdep.h: New file.  Define
3048         new function check_may_shrink_heap.
3049         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
3050         new function check_may_shrink_heap.
3051
3052 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3053
3054         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
3055         comments.
3056
3057 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
3058
3059         * catgets/test-gencat.sh: Add "set -e".
3060         * elf/tst-pathopt.sh: Likewise.
3061         * grp/tst_fgetgrent.sh: Likewise.
3062         * iconvdata/run-iconv-test.sh: Likewise.
3063         * intl/tst-gettext.sh: Likewise.
3064         * intl/tst-gettext2.sh: Likewise.
3065         * intl/tst-gettext4.sh: Likewise.
3066         * intl/tst-gettext6.sh: Likewise.
3067         * intl/tst-translit.sh: Likewise.
3068         * io/ftwtest-sh: Likewise.
3069         * libio/test-freopen.sh: Likewise.
3070         * malloc/tst-mtrace.sh: Likewise.
3071         * posix/globtest.sh: Likewise.
3072         * posix/tst-getconf.sh: Likewise.
3073         * posix/wordexp-tst.sh: Likewise.
3074         * stdio-common/tst-printf.sh: Likewise.
3075         * stdio-common/tst-unbputc.sh: Likewise.
3076         * stdlib/tst-fmtmsg.sh: Likewise.
3077         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3078         * catgets/Makefile: Do not specify -e option when running
3079         testsuite shell scripts.
3080         * elf/Makefile: Likewise.
3081         * grp/Makefile: Likewise.
3082         * iconvdata/Makefile: Likewise.
3083         * intl/Makefile: Likewise.
3084         * io/Makefile: Likewise.
3085         * libio/Makefile: Likewise.
3086         * malloc/Makefile: Likewise.
3087         * posix/Makefile: Likewise.
3088         * stdio-common/Makefile: Likewise.
3089         * stdlib/Makefile: Likewise.
3090         * sysdeps/x86_64/Makefile: Likewise.
3091
3092         * io/ftwtest-sh: Add copyright header.
3093         * posix/globtest.sh: Likewise.
3094         * posix/tst-getconf.sh: Likewise.
3095         * posix/wordexp-tst.sh: Likewise.
3096         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3097
3098 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3099
3100         [BZ #13679]
3101         * Makeconfig (+link): Defined as $(+link-static) if
3102         $(build-shared) isn't yes.
3103         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3104         isn't yes.
3105         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3106
3107         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3108
3109         [BZ #14562]
3110         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3111         new chunk size with MALLOC_ALIGN_MASK.
3112
3113 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3114
3115         [BZ #5044]
3116         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3117         <rounding-mode.h>.
3118         (__printf_fphex): Determine rounding using get_rounding_mode and
3119         round_away.
3120         * stdio-common/tst-printf-round.c (struct hex_test): New
3121         structure.
3122         (hex_tests): New variable.
3123         (test_hex_in_one_mode): New function.
3124         (do_test): Also run tests for hex float output.
3125
3126 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3127
3128         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3129         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3130         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3131         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3132         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3133         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3134         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3135         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3136
3137 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3138
3139         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3140         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3141         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3142         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3143
3144 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3145
3146         [BZ #14579]
3147         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3148         mode only.
3149         * elf/tst-rtld-load-self.sh: New test.
3150         * elf/Makefile: Run it.
3151
3152 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3153
3154         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3155         (tst-writev-ENV): Remove.
3156         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3157
3158 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3159
3160         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3161
3162 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3163
3164         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3165         unconditional.
3166         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3167         Likewise.
3168         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3169         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3170         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3171         Likewise.
3172
3173 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3174
3175         [BZ #14587]
3176         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3177         * config.make.in (have-cpp-asm-debuginfo): Removed.
3178         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3179         * configure: Regenerated.
3180
3181 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3182
3183         [BZ #5044]
3184         * stdio-common/printf_fp.c: Include <stdbool.h> and
3185         <rounding-mode.h>.
3186         (___printf_fp): Determine rounding using get_rounding_mode and
3187         round_away.
3188         * stdio-common/tst-printf-round.c: New file.
3189         * stdio-common/Makefile (tests): Add tst-printf-round.
3190         (link-libm): New variable.
3191         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3192
3193 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3194
3195         [BZ #14576]
3196         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3197         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3198         Likewise.
3199         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3200         Likewise.
3201
3202 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3203
3204         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3205         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3206         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3207         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3208
3209 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3210
3211         [BZ #14518]
3212         * include/rounding-mode.h: New file.
3213         * sysdeps/generic/get-rounding-mode.h: Likewise.
3214         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3215         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3216         (MAX_VALUE): New macro.
3217         (MIN_VALUE): Likewise.
3218         (overflow_value): New function.
3219         (underflow_value): Likewise.
3220         (round_and_return): Use overflow_value and underflow_value to
3221         determine return values in overflow and underflow cases.  Use
3222         round_away to determine rounding depending on rounding mode.
3223         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3224         determine return values in overflow and underflow cases.
3225         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3226         (struct test_results): New structure.
3227         (struct test): Use struct test_results to store expected results
3228         for all rounding modes.
3229         (TEST): Include expected results for all rounding modes.
3230         (test_in_one_mode): New function.
3231         (do_test): Use test_in_one_mode to compute and check results.
3232         Check results for all rounding modes.
3233         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3234         $(link-libm).
3235
3236 2012-12-09  Allan McRae  <allan@archlinux.org>
3237
3238         * sysdeps/i386/fpu/libm-test-ulps: Update
3239
3240 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3241
3242         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3243         (_G_int32_t): Likewise.
3244         (_G_uint16_t): Likewise.
3245         (_G_uint32_t): Likewise.
3246         (_G_HAVE_BOOL): Likewise.
3247         (_G_HAVE_ATEXIT): Likewise.
3248         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3249         (_G_HAVE_IO_FILE_OPEN): Likewise.
3250         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3251         (_G_int32_t): Likewise.
3252         (_G_uint16_t): Likewise.
3253         (_G_uint32_t): Likewise.
3254         (_G_HAVE_BOOL): Likewise.
3255         (_G_HAVE_ATEXIT): Likewise.
3256         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3257         (_G_HAVE_IO_FILE_OPEN): Likewise.
3258         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3259         (_G_int32_t): Likewise.
3260         (_G_uint16_t): Likewise.
3261         (_G_uint32_t): Likewise.
3262         (_G_HAVE_BOOL): Likewise.
3263         (_G_HAVE_ATEXIT): Likewise.
3264         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3265         (_G_HAVE_IO_FILE_OPEN): Likewise.
3266
3267 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3268
3269         * csu/libc-tls.c: Update copyright years.
3270
3271 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3272
3273         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3274         [!_G_USING_THUNKS]: Remove conditional code.
3275         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3276         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3277
3278         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3279         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3280         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3281         (_G_VTABLE_LABEL_PREFIX): Likewise.
3282         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3283         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3284         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3285         (_G_VTABLE_LABEL_PREFIX): Likewise.
3286         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3287         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3288         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3289         (_G_VTABLE_LABEL_PREFIX): Likewise.
3290         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3291
3292 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3293
3294         * libio/Makefile: Include ../Makeconfig before tests.
3295         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3296         only if $(build-shared) is yes.
3297
3298         * iconv/gconv_db.c: Update copyright years.
3299
3300 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3301
3302         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3303         unwind info if defined PIC. Fix special cases description.
3304         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3305
3306         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3307         DP_HI_MASK entry.
3308         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3309
3310 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3311
3312         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3313
3314         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3315         is NULL.
3316
3317         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3318         (LDLIBS-tst-chk4): This.
3319         (LDFLAGS-tst-chk5): Renamed to ...
3320         (LDLIBS-tst-chk5): This.
3321         (LDFLAGS-tst-chk6): Renamed to ...
3322         (LDLIBS-tst-chk6): This.
3323         (LDFLAGS-tst-lfschk4): Renamed to ...
3324         (LDLIBS-tst-lfschk4): This.
3325         (LDFLAGS-tst-lfschk5): Renamed to ...
3326         (LDLIBS-tst-lfschk5): This.
3327         (LDFLAGS-tst-lfschk6): Renamed to ...
3328         (LDLIBS-tst-lfschk6): This.
3329
3330         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3331         on $(common-objpfx)soversions.mk.
3332
3333 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3334
3335         [BZ #10014]
3336         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3337         example host name.
3338
3339 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3340
3341         * malloc/arena.c (arena_get_retry): New function that gets
3342         another arena for the caller to try its request on.
3343         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3344         current arena cannot fulfill the request.
3345         (__libc_memalign): Likewise.
3346         (__libc_memalign): Likewise.
3347         (__libc_pvalloc): Likewise.
3348         (__libc_calloc): Likewise.
3349
3350 2012-09-05  John Tobey  <john.tobey@gmail.com>
3351
3352         [BZ #13542]
3353         * manual/arith.texi (Operations on Complex): Fix description
3354         of carg branch cut.
3355
3356 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3357
3358         [BZ #10014]
3359         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3360         host name.
3361
3362         [BZ #10038]
3363         * manual/memory.texi (Memory): Make order of menu items match
3364         order of sections.
3365
3366 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3367
3368         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3369         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3370         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3371
3372 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3373
3374         * csu/libc-tls.c (static_dtv): Renamed to ...
3375         (_dl_static_dtv): This.  Make it global.
3376         (_dl_initial_dtv): Removed.
3377         (__libc_setup_tls): Updated.
3378         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3379         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3380         DL_INITIAL_DTV.
3381
3382 2012-09-06  Petr Machata  <pmachata@redhat.com>
3383
3384         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3385         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3386         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3387         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3388
3389 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3390
3391         [BZ #14545]
3392         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3393         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3394         freeing dtv[-1].
3395
3396 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3397
3398         [BZ #14544]
3399         * Makeconfig (link-static-before-libc): Replace $(+prector)
3400         with $(+prectorT).
3401         (link-static-after-libc): Replace $(+postctor) with
3402         $(+postctorT).
3403         (link-bounded): Replace $(+prector)/$(+postctor) with
3404         $(+prectorT)/$(+postctorT).
3405         (+prectorT): New macro.
3406         (+postctorT): Likewise.
3407
3408 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3409
3410         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3411         (round_str): Handle values above the maximum for IBM long double
3412         as inexact.
3413         * stdlib/tst-strtod-round.c (tests): Regenerated.
3414
3415 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3416
3417         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3418         assembler flag.
3419         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3420         zarch_nohighgprs around the zarch optimized routines.
3421         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3422         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3423         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3424         for zarch.
3425
3426 2012-09-05  David S. Miller  <davem@davemloft.net>
3427
3428         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3429
3430         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3431         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3432         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3433         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3434         entries.
3435
3436 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3437
3438         * malloc/arena.c: Fold copyright years.
3439         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3440
3441 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3442
3443         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3444
3445 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3446
3447         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3448
3449 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3450
3451         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3452         change internal state upon failure.
3453
3454 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3455
3456         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3457         * malloc/memusage.c (mmap): Likewise.
3458         (mmap64, mremap): Likewise.  Adjust name in comment.
3459
3460 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3461
3462         * libio/fileops.c: Fix typos in comments.
3463         * libio/oldfileops.c: Likewise.
3464         * libio/wfileops.c: Likewise.
3465
3466 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3467
3468         [BZ #1349]
3469         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3470         (tst-malloc-usable-ENV): Set environment for test case.
3471         * malloc/hooks.c (malloc_check_get_size): New function to get
3472         requested size.
3473         * malloc/malloc.c (musable): Use malloc_check_get_size.
3474         * malloc/tst-malloc-usable.c: New test case.
3475
3476 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3477
3478         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3479
3480 2012-09-05  Allan McRae  <allan@archlinux.org>
3481
3482         [BZ #13966]
3483         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3484         determine header location.
3485         * configure: Regenerated.
3486
3487 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3488
3489         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3490         float format.
3491         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3492         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3493         format.
3494         (test): Regenerate.
3495
3496 2012-09-04  David S. Miller  <davem@davemloft.net>
3497
3498         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3499         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3500         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3501
3502 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3503
3504         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3505         failures.
3506
3507         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3508
3509 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3510
3511         [BZ #9914]
3512         * libio/iogetdelim.c: Include <limits.h>.
3513         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3514         + len + 1 would overflow.
3515
3516 2012-09-03  Andreas Jaeger  <aj@suse.de>
3517
3518         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3519         * sysdeps/i386/fpu/libm-test-ulps: Update.
3520
3521 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3522
3523         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3524         Add s_sinf-sse2, s_conf-sse2.
3525
3526         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3527         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3528         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3529         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3530
3531         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3532         for using routine as __sinf_ia32.
3533         Use macro for function declaration and weak_alias.
3534         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3535         for using routine as __cosf_ia32.
3536         Use macro for function declaration and weak_alias.
3537
3538         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3539         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3540
3541         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3542         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3543         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3544
3545         * math/libm-test.inc (cos_test): Add more test cases.
3546         (sin_test): Likewise.
3547         (sincos_test): Likewise.
3548
3549 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3550
3551         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3552         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3553         hidden.
3554         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3555
3556 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3557
3558         [BZ #14538]
3559         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3560         first element of the GOT.
3561         (elf_machine_load_address): Return the difference between
3562         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3563
3564 2012-09-01  Allan McRae  <allan@archlinux.org>
3565
3566         [BZ #13412]
3567         * configure.in (AWK): Require gawk version 3.0 or later.
3568         * configure: Regenerated.
3569
3570 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3571
3572         * sysdeps/unix/sysv/linux/kernel-features.h
3573         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3574         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3575         [__NR_clock_getres]: Make code unconditional.
3576         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3577         (clock_getcpuclockid): Remove code left unreachable by removal of
3578         conditionals.
3579         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3580         code unconditional.
3581         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3582         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3583         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3584         Make code unconditional.
3585         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3586         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3587         * sysdeps/unix/sysv/linux/clock_settime.c
3588         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3589         conditional code.
3590         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3591         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3592
3593 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3594
3595         [BZ #14476]
3596         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3597         scripts/test-installation.pl.
3598
3599         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3600         and $ld_so_version if it is set.
3601
3602 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3603
3604         [BZ #14516]
3605         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3606         failure if reading from procfs failed.
3607         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3608
3609 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3610
3611         * sysdeps/unix/sysv/linux/kernel-features.h
3612         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3613         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3614         Remove conditional code.
3615         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3616         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3617         Remove conditional code.
3618         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3619         * sysdeps/unix/sysv/linux/i386/fxstat.c
3620         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3621         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3622         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3623         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3624         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3625         * sysdeps/unix/sysv/linux/i386/lxstat.c
3626         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3627         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3628         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3629         Remove conditional code.
3630         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3631         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3632         Remove conditional code.
3633         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3634         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3635         <kernel-features.h>.
3636         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3637         Remove.
3638         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3639         Remove conditional code.
3640         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3641         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3642         Remove conditional.
3643
3644 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3645
3646         [BZ #5400]
3647         * NEWS: Add fixed bug number.
3648
3649 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3650
3651         [BZ #14519]
3652         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3653         underflowing exponent in case of negative sign.
3654         * stdlib/tst-strtod-round-data: Add more tests.
3655         * stdlib/tst-strtod-round.c (tests): Regenerated.
3656
3657         [BZ #3479]
3658         * stdlib/strtod_l.c (NDIG): Remove.
3659         (HEXNDIG): Likewise.
3660         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3661         smallest representable value.
3662         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3663         lie within an exact representation of 1/2 ulp of the result.
3664         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3665         unconditionally.
3666         (TENS_P9_IDX): Define unconditionally.
3667         (TENS_P9_SIZE): Likewise.
3668         (TENS_P10_IDX): Likewise.
3669         (TENS_P10_SIZE): Likewise.
3670         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3671         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3672         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3673         entries for 10^2^13 and 10^2^14.
3674         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3675         (TENS_P13_IDX): Define.
3676         (TENS_P13_SIZE): Likewise.
3677         (TENS_P14_IDX): Likewise.
3678         (TENS_P14_SIZE): Likewise.
3679         (_fpioconst_pow10): Change array size to
3680         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3681         unconditional.
3682         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3683         1024]: Add entries for 10^2^13 and 10^2^14.
3684         [LAST_POW10 > _LAST_POW10]: Remove #error.
3685         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3686         (_fpioconst_pow10): Change array size to
3687         FPIOCONST_POW10_ARRAY_SIZE.
3688         * stdlib/gen-fpioconst.c: New file.
3689         * stdlib/gen-tst-strtod-round.c: Likewise.
3690         * stdlib/tst-strtod-round-data: Likewise.
3691         * stdlib/tst-strtod-round.c: Likewise.
3692         * stdlib/Makefile (tests): Add tst-strtod-round.
3693
3694         [BZ #14459]
3695         * stdlib/strtod_l.c: Include <stdint.h>.
3696         (NDEBUG): Do not define.
3697         (round_and_return): Change EXPONENT parameter to type intmax_t.
3698         Rearrange calculations to avoid internal overflow possibilities.
3699         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3700         Rearrange calculations to avoid internal overflow possibilities.
3701         Assert that number fits inside MPNSIZE limbs.
3702         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3703         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3704         calculations and add assertions to avoid internal overflow
3705         possibilities.  Add casts to avoid signed/unsigned operations.
3706         * stdlib/tst-strtod-overflow.c: New file.
3707         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3708
3709 2012-08-25  Marek Polacek  <polacek@redhat.com>
3710
3711         * time/time.h: Fix some typos in comments.
3712
3713 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3714
3715         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3716         * posix/tst-rfc3484-2.c: Likewise.
3717         * posix/tst-rfc3484-3.c: Likewise.
3718
3719 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3720
3721         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3722         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3723
3724 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3725
3726         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3727         #include of fxstatat64.c.
3728
3729 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3730
3731         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3732         * shadow/getspent_r.c: Likewise.
3733         * shadow/getspnam.c: Likewise.
3734         * shadow/getspnam_r.c: Likewise.
3735         * gshadow/getsgent.c: Likewise.
3736         * gshadow/getsgent_r.c: Likewise.
3737         * gshadow/getsgnam.c: Likewise.
3738         * gshadow/getsgnam_r.c: Likewise.
3739         * inet/getnetbyad.c: Likewise.
3740         * inet/getnetbyad_r.c: Likewise.
3741         * inet/getnetbynm.c: Likewise.
3742         * inet/getnetbynm_r.c: Likewise.
3743         * inet/getnetent.c: Likewise.
3744         * inet/getnetent_r.c: Likewise.
3745         * inet/getproto.c: Likewise.
3746         * inet/getproto_r.c: Likewise.
3747         * inet/getprtent.c: Likewise.
3748         * inet/getprtent_r.c: Likewise.
3749         * inet/getprtname.c: Likewise.
3750         * inet/getprtname_r.c: Likewise.
3751         * inet/getrpcbyname.c: Likewise.
3752         * inet/getrpcbyname_r.c: Likewise.
3753         * inet/getrpcbynumber.c: Likewise.
3754         * inet/getrpcbynumber_r.c: Likewise.
3755         * inet/getrpcent.c: Likewise.
3756         * inet/getrpcent_r.c: Likewise.
3757         * inet/getaliasent.c: Likewise.
3758         * inet/getaliasent_r.c: Likewise.
3759         * inet/getaliasname.c: Likewise.
3760         * inet/getaliasname_r.c: Likewise.
3761         * nscd/getgrgid_r.c: Likewise.
3762         * nscd/getgrnam_r.c: Likewise.
3763         * nscd/gethstbyad_r.c: Likewise.
3764         * nscd/gethstbynm3_r.c: Likewise.
3765         * nscd/getpwnam_r.c: Likewise.
3766         * nscd/getpwuid_r.c: Likewise.
3767         * nscd/getsrvbynm_r.c: Likewise.
3768         * nscd/getsrvbypt_r.c: Likewise.
3769         * nscd/gai.c: Likewise.
3770
3771         * configure.in (build_nscd): New substituted variable, set
3772         by --disable-build-nscd and defaults to $use_nscd.
3773         * configure: Regenerated.
3774         * config.make.in (build-nscd): New substituted variable.
3775         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3776         Change conditional to require [$(build-nscd) = yes] as well.
3777         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3778
3779         [BZ# 13696]
3780         * configure.in (use_nscd): New substituted variable, set by
3781         --disable-nscd.  If enabled, define USE_NSCD.
3782         * configure: Regenerated.
3783         * config.h.in: Add USE_NSCD.
3784         * config.make.in (use-nscd): New substituted variable.
3785         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3786         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3787         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3788         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3789         (CFLAGS-getgrnam_r.c): Likewise.
3790         (CFLAGS-initgroups.c): Likewise.
3791         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3792         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3793         Variables removed.
3794         * inet/getnetgrent_r.c
3795         (nscd_setnetgrent): New function, broken out of ...
3796         (setnetgrent): ... here.  Call it.
3797         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3798         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3799         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3800         * nscd/Makefile (routines, aux): Move definitions after include of
3801         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3802         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3803         Conditionalize on [USE_NSCD].
3804         (is_nscd, nscd_init_cb): Likewise.
3805         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3806         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3807         * nss/nss_db/db-init.c: Likewise.
3808         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3809         [USE_NSCD].
3810         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3811         (make_request): Use it.
3812         (cache_valid_p): New function.
3813         (__check_pf): Use it.
3814         * NEWS: Add item for --disable-nscd.
3815
3816 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3817
3818         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3819         to support sed >= 4.2.1-20-ga9bf076.
3820         * configure: Regenerated.
3821
3822 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3823
3824         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3825         Conditionalize whole body on [IREL].
3826
3827 2012-08-22  Jeff Law <law@redhat.com>
3828
3829         [BZ #14505]
3830         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3831         if the family is PF_UNSPEC.
3832
3833 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3834
3835         * Makerules (lib-version): Rename from V.
3836         (install-lib-nosubdir): Change V to lib-version.
3837
3838 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3839
3840         [BZ #14252]
3841         * powerpc32/power6/wcschr.c: New file.
3842         * powerpc32/power6/wcscpy.c: New file.
3843         * powerpc32/power6/wcsrchr.c: New file.
3844         * powerpc64/power6/wcschr.c: New file.
3845         * powerpc64/power6/wcscpy.c: New file.
3846         * powerpc64/power6/wcsrchr.c: New file.
3847
3848 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3849
3850         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3851         (two_way_short_needle): Use it.
3852         * string/strstr.c (AVAILABLE1_USES_J): Define.
3853         * string/strcasestr.c: Likewise.
3854
3855         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3856         array references.
3857         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3858
3859         [BZ #11607]
3860         * NEWS: Add an entry.
3861         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3862         define their defaults.
3863         (two_way_short_needle): Detect end-of-string on-the-fly.
3864         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3865         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3866         * string/bug-strcasestr1.c: New test.
3867         * string/Makefile: Run it.
3868
3869 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3870
3871         [BZ #11607]
3872         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3873         the first character.
3874
3875 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3876
3877         * csu/elf-init.c (__libc_csu_irel): Function removed.
3878         * csu/libc-start.c (apply_irel): New function.
3879         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3880
3881 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3882
3883         * sysdeps/unix/sysv/linux/kernel-features.h
3884         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3885         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3886         <kernel-features.h>.
3887         [__NR_fadvise64_64]: Make code unconditional.
3888         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3889         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3890         !__NR_fadvise64_64)]: Likewise.
3891         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3892         !__NR_fadvise64_64))]: Likewise.
3893         [__NR_fadvise64]: Make code unconditional.
3894         [!__NR_fadvise64]: Remove conditional code.
3895         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3896         <kernel-features.h>.
3897         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3898         unconditional.
3899         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3900         conditional code.
3901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3902         not include <kernel-features.h>.
3903         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3904         unconditional.
3905         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3906         conditional code.
3907         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3908         include <kernel-features.h>.
3909         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3910         unconditional.
3911         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3912         conditional code.
3913
3914 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3915
3916         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3917         slight instruction rearrangements per scrollpipe analysis.
3918         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3919
3920 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3921
3922         * manual/syslog.texi (syslog; vsyslog, closelog):
3923         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3924         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3925
3926         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3927         DSOCAPS to match condition on defining it.
3928
3929 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3930
3931         * sysdeps/unix/sysv/linux/kernel-features.h
3932         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3934         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3935         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3936         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3937         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3938         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3940         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3941         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3942
3943         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3944         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3945
3946         * sysdeps/unix/sysv/linux/kernel-features.h
3947         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3948         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3949         unconditional.
3950         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3951         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3952         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3953         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3954         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3955         Make code unconditional.
3956         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3957         (__mmap64) [!__NR_mmap2]: Likewise.
3958         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3959         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3960         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3961         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3962         [__NR_mmap2]: Make code unconditional.
3963         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3964         (__mmap64) [!__NR_mmap2]: Likewise.
3965
3966 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3967
3968         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3969
3970 2012-08-18  Andreas Jaeger  <aj@suse.de>
3971
3972         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3973
3974 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3975
3976         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3977         * include/unistd.h (__have_sock_cloexec): Likewise.
3978         (__have_pipe2): Likewise.
3979         (__have_dup3): Likewise.
3980
3981 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3982
3983         [BZ #9685]
3984         * include/unistd.h (__have_pipe2): Change define into an extern int.
3985         (__have_dup3): Likewise.
3986         * socket/have_sock_cloexec.c: Include fcntl.h.
3987         (__have_pipe2): New variable.
3988         (__have_dup3): Likewise.
3989
3990 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3991
3992         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3993
3994 2012-08-17  Marek Polacek  <polacek@redhat.com>
3995
3996         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3997         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3998
3999 2012-08-17  Roland McGrath  <roland@hack.frob.com>
4000
4001         * configure.in: Add AC_SUBST for sysheaders.
4002         * configure: Regenerated.
4003         * config.make.in (sysheaders): New substituted variable.
4004
4005         * sysdeps/unix/mkfifo.c: Moved ...
4006         * sysdeps/posix/mkfifo.c: ... here.
4007         * sysdeps/unix/mkfifoat.c: Moved ...
4008         * sysdeps/posix/mkfifoat.c: ... here.
4009
4010         * sysdeps/unix/utime.c: Moved ...
4011         * sysdeps/posix/utime.c: ... here.
4012
4013         * sysdeps/unix/time.c: Moved ...
4014         * sysdeps/posix/time.c: ... here.
4015         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
4016         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
4017
4018         * sysdeps/unix/nice.c: Moved ...
4019         * sysdeps/posix/nice.c: ... here.
4020
4021         * sysdeps/unix/alarm.c: Moved ...
4022         * sysdeps/posix/alarm.c: ... here.
4023
4024         * intl/Makefile ($(codeset_mo)): Depend on the input file.
4025
4026 2012-08-17  Jeff Law <law@redhat.com>
4027
4028         * intl/Makefile (codeset_mo): New variable.
4029         ($(codeset_mo)): New target.
4030         (tst-codeset.out): Depend on that.  Remove explicit rule.
4031         (tst-gettext3.out, tst-gettext5.out): Likewise.
4032         (LOCPATH-ENV, tst-codeset-ENV): New variables.
4033         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
4034         * intl/tst-codeset.sh: Remove.
4035         * intl/tst-gettext3.sh: Likewise.
4036         * intl/tst-gettext5.sh: Likewise.
4037
4038 2012-08-17  Roland McGrath  <roland@hack.frob.com>
4039
4040         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
4041         * sysdeps/unix/syscalls.list: ... here.
4042
4043         * sysdeps/posix/getaddrinfo.c
4044         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
4045         (gaiconf_init, gaiconf_reload): Use them.
4046         [!_STATBUF_ST_NSEC]
4047         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
4048         Define using time_t rather than struct timespec.
4049
4050         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
4051         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
4052         Macros removed.
4053         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
4054         [!NO_THREADS].
4055         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
4056         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
4057         Likewise.
4058
4059         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
4060         __libc_cleanup_push argument.
4061
4062         * bits/param.h: New file.
4063         * misc/sys/param.h: New file.
4064         * include/sys/param.h: New file.
4065         * misc/Makefile (headers): Add bits/param.h.
4066         * sysdeps/generic/sys/param.h: File removed.
4067         * sysdeps/unix/sysv/linux/bits/param.h: New file.
4068         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
4069         * sysdeps/mach/hurd/bits/param.h: New file.
4070         * sysdeps/mach/hurd/sys/param.h: File removed.
4071
4072         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
4073         last change.
4074
4075         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
4076         [_IO_MTSAFE_IO].
4077         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
4078         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
4079         New macros.
4080
4081         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
4082         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
4083         rather than -D_IO_MTSAFE_IO conditionally.
4084         * stdio-common/Makefile (CPPFLAGS): Likewise.
4085         * wcsmbs/Makefile (CPPFLAGS): Likewise.
4086         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
4087         Use $(libio-mtsafe).
4088         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
4089         of -D_IO_MTSAFE_IO.
4090         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
4091         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
4092         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
4093         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
4094         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
4095         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
4096         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4097         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4098         (CFLAGS-fread_u_chk.c): Likewise.
4099         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4100         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4101         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4102         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4103         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4104         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4105         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4106         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4107         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4108
4109         * libio/Makefile: Test [$(libc-reentrant) = yes]
4110         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4111
4112         * Makeconfig
4113         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4114         * sysdeps/pthread/configure: File removed.
4115         * sysdeps/pthread/Makeconfig: New file.
4116         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4117         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4118
4119 2012-08-16  Gary Benson  <gbenson@redhat.com>
4120
4121         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4122         unmapping the first object in a namespace.
4123
4124 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4125
4126         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4127         (__internal_setnetgrent): ... this.  Add internal_function to
4128         definition.  Add libc_hidden_def.
4129         (setnetgrent): Update caller.
4130         (internal_endnetgrent): Renamed to ...
4131         (__internal_endnetgrent): ... this.  Add internal_function to
4132         definition.  Add libc_hidden_def.
4133         (endnetgrent): Update caller.
4134         (internal_getnetgrent_r): Renamed to ...
4135         (__internal_getnetgrent_r): ... this.  Add internal_function to
4136         definition.  Add libc_hidden_def.
4137         (__getnetgrent_r): Update caller.
4138         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4139
4140 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4141
4142         * stdlib/longlong.h: Update from GCC.
4143
4144 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4145
4146         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4147         on _QL, which is set by umul_ppmm but never used.
4148         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4149         variables, which are set by GMP macros but never used.
4150         * stdio-common/_itowa.c (_itowa): Likewise.
4151         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4152         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4153
4154 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4155
4156         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4157         struct La_sh_regs is not constant.
4158         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4159         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4160         and struct La_sparc64_regs are not constant.
4161
4162 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4163
4164         * sysdeps/unix/sysv/linux/kernel-features.h
4165         (__ASSUME_POSIX_TIMERS): Remove.
4166         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4167         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4168         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4169         Make code unconditional.
4170         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4171         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4172         Make code unconditional.
4173         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4174         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4175         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4176         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4177         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4178         Make code unconditional.
4179         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4180         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4181         (__libc_missing_posix_timers): Remove.
4182
4183 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4184
4185         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4186         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4187
4188         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4189
4190         * elf/dl-sym.c: Include <stdlib.h>.
4191
4192         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4193         constants, which avoids warnings in 32-bit builds.
4194
4195         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4196         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4197
4198         * misc/lseek.c: File moved to ...
4199         * io/lseek.c: ... here.
4200
4201         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4202
4203         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4204         shifting LEN more than 31 bits at once.
4205
4206 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4207
4208         [BZ #14195]
4209         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4210         segmentation fault for a case of two empty input strings.
4211         * string/test-strncasecmp.c (check1): Renamed to...
4212         (bz12205): ...this.
4213         (bz14195): Add new testcase for two empty input strings and N > 0.
4214         (test_main): Call new testcase, adapt for renamed function.
4215
4216 2012-08-15  Andreas Jaeger  <aj@suse.de>
4217
4218         [BZ #14090]
4219         * crypt/md5test2.c: New test, based on test supplied by Serge
4220         Belyshev <belyshev@depni.sinp.msu.ru>.
4221         * crypt/Makefile (xtests): Add md5test-giant..
4222         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4223
4224 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4225
4226         [BZ #14090]
4227         * crypt/md5.c (md5_process_block): Don't assume the buffer
4228         length is less than 2**32.
4229         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4230         length is less than 2**64.
4231
4232 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4233
4234         * string/str-two-way.h: Include <sys/param.h>.
4235         (MAX): Macro removed.
4236
4237         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4238         Move #define and #undef of memmove to just before and after
4239         including <string.h>.
4240
4241         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4242         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4243         and after including <string.h>.  Move declarations of
4244         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4245         to before #include "string/memmove.c".
4246
4247         * include/dirent.h: Declare __getdirentries.
4248
4249         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4250         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4251
4252 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4253
4254         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4255         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4256         * sysdeps/i386/configure: Regenerated.
4257         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4258         STABS_CURRENT_FILE, and STABS_FUN.
4259         (END): Remove call to STABS_FUN_END.
4260         (STABS_CURRENT_FILE1): Delete.
4261         (STABS_CURRENT_FILE): Likewise.
4262         (STABS_FUN): Likewise.
4263         (STABS_FUN_END): Likewise.
4264         (STABS_FUN2): Likewise.
4265         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4266         * sysdeps/x86_64/configure: Regenerated.
4267
4268 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4269
4270         * elf/dl-open.c: Include <atomic.h>.
4271         * elf/dl-lookup.c: Likewise.
4272
4273 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4274
4275         * sysdeps/unix/sysv/linux/kernel-features.h
4276         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4277         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4278         unconditionally.
4279         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4280         unconditionally.
4281         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4282         condition on __ASSUME_CLONE_THREAD_FLAGS.
4283
4284 2012-08-14  Andreas Jaeger  <aj@suse.de>
4285
4286         * sysdeps/i386/fpu/libm-test-ulps: Update.
4287
4288 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4289
4290         * include/atomic.h (atomic_exchange_and_add): Split into ...
4291         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4292         New atomic macros.
4293
4294 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4295
4296         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4297
4298 2012-08-13  Jeff Law <law@redhat.com>
4299
4300         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4301         null byte in the output string.
4302
4303 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4304
4305         * sysdeps/unix/sysv/linux/kernel-features.h
4306         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4307         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4308         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4309         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4310         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4311         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4312         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4313
4314 2012-08-09  Jeff Law <law@redhat.com>
4315
4316         [BZ #13939]
4317         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4318         When avoid_arena is set, don't retry in the that arena.  Pick the
4319         next one, whatever it might be.
4320         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4321         (arena_lock): Pass in new parameter to arena_get2.
4322         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4323         arena_get2.
4324         (__libc_malloc): Unify retrying after main arena failure with
4325         __libc_memalign version.
4326         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4327
4328 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4329
4330         [BZ #14166]
4331         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4332         to __redirect_strstr.
4333         (__strstr_sse42): Use typeof __redirect_strstr.
4334         (__strstr_ia32): Likewise.
4335         (__libc_strstr): New prototype.
4336         (strstr): Renamed to ...
4337         (__libc_strstr): This.
4338         (strstr): New strong alias of __libc_strstr.
4339         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4340         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4341         __redirect_time.
4342         Include <time.h>.
4343         (__libc_time): New prototype.
4344         (time_ifunc): Replace time with __libc_time.
4345         (time): New strong alias and hidden definition of __libc_time.
4346         (__GI_time): Remove strong alias.
4347         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4348         Include <stddef.h>.
4349         (memmove): Redefined to __redirect_memmove.
4350         (__memmove_sse2): Use typeof __redirect_memmove.
4351         (__memmove_ssse3): Likewise.
4352         (__memmove_ssse3_back): Likewise.
4353         (__libc_memmove): New prototype.
4354         (memmove): Renamed to ...
4355         (__libc_memmove): This.
4356         (memmove): New strong alias of __libc_memmove.
4357
4358 2012-08-08  Mark Salter  <msalter@redhat.com>
4359
4360         * elf/elf.h
4361         (R_MN10300_TLS_GD): Define.
4362         (R_MN10300_TLS_LD): Likewise.
4363         (R_MN10300_TLS_LDO): Likewise.
4364         (R_MN10300_TLS_GOTIE): Likewise.
4365         (R_MN10300_TLS_IE): Likewise.
4366         (R_MN10300_TLS_LE): Likewise.
4367         (R_MN10300_TLS_DTPMOD): Likewise.
4368         (R_MN10300_TLS_DTPOFF): Likewise.
4369         (R_MN10300_TLS_TPOFF): Likewise.
4370         (R_MN10300_SYM_DIFF): Likewise.
4371         (R_MN10300_ALIGN): Likewise.
4372         (R_MN10300_NUM): Update.
4373
4374 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4375
4376         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4377         Remove.
4378
4379 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4380
4381         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4382
4383         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4384         sysdeps/unix -> sysdeps/posix move.
4385         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4386
4387 2012-08-07      Allan McRae     <allan@archlinux.org>
4388
4389         [BZ #14303]
4390         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4391         (SUNOS_CPP): Likewise.
4392         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4393         not found.
4394         (open_input): Call CPP using execvp.
4395
4396 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4397
4398         * sysdeps/unix/sysv/linux/kernel-features.h
4399         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4400         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4401         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4402         (__ASSUME_WAITID_SYSCALL): Likewise.
4403         * sysdeps/unix/sysv/linux/dl-execstack.c
4404         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4405         code unconditional.
4406         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4407         conditional code.
4408         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4409         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4410         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4411         code.
4412         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4413         unconditional.
4414         [__ASSUME_WAITID_SYSCALL]: Likewise.
4415         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4416
4417 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4418
4419         * sysdeps/unix/closedir.c: Renamed to ...
4420         * sysdeps/posix/closedir.c: ... here.
4421         * sysdeps/unix/dirfd.c: Renamed to ...
4422         * sysdeps/posix/dirfd.c: ... here.
4423         * sysdeps/unix/dirstream.h: Renamed to ...
4424         * sysdeps/posix/dirstream.h: ... here.
4425         * sysdeps/unix/fdopendir.c: Renamed to ...
4426         * sysdeps/posix/fdopendir.c: ... here.
4427         * sysdeps/unix/opendir.c: Renamed to ...
4428         * sysdeps/posix/opendir.c: ... here.
4429         * sysdeps/unix/readdir.c: Renamed to ...
4430         * sysdeps/posix/readdir.c: ... here.
4431         * sysdeps/unix/readdir_r.c: Renamed to ...
4432         * sysdeps/posix/readdir_r.c: ... here.
4433         * sysdeps/unix/rewinddir.c: Renamed to ...
4434         * sysdeps/posix/rewinddir.c: ... here.
4435         * sysdeps/unix/seekdir.c: Renamed to ...
4436         * sysdeps/posix/seekdir.c: ... here.
4437         * sysdeps/unix/telldir.c: Renamed to ...
4438         * sysdeps/posix/telldir.c: ... here.
4439         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4440         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4441         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4442         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4443
4444         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4445         * bits/fcntl.h: ... here.
4446
4447         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4448         not 0.
4449         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4450         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4451         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4452         (struct flock): Move l_start, l_len to the beginning.
4453         Use __pid_t for l_pid.
4454         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4455         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4456         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4457         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4458         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4459         [__USE_LARGEFILE64] (struct flock64): New type.
4460         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4461
4462         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4463         * bits/dirent.h: ... here.
4464
4465         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4466         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4467
4468 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4469
4470         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4471         Change from 2.6.0 to 2.6.16.
4472         * sysdeps/unix/sysv/linux/configure: Regenerated.
4473         * sysdeps/unix/sysv/linux/kernel-features.h
4474         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4475         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4476         version.
4477         (__ASSUME_UTIMES): Likewise.
4478         (__ASSUME_CLONE_STOPPED): Remove.
4479         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4480         architectures, not kernel version.
4481         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4482         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4483         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4484         (__ASSUME_WAITID_SYSCALL): Likewise.
4485         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4486         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4487         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4488         refer to older versions.
4489
4490 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4491
4492         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4493         Define alphasort64 as an alias.
4494         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4495         Define versionsort64 as an alias.
4496         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4497         Define scandir64 as an alias.
4498         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4499         Define scandirat64 as an alias.
4500         * dirent/alphasort64.c (alphasort64):
4501         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4502         * dirent/versionsort64.c: Likewise.
4503         * dirent/scandir64.c: Likewise.
4504         * dirent/scandirat64.c: Likewise.
4505         * sysdeps/wordsize-64/alphasort.c: File removed.
4506         * sysdeps/wordsize-64/alphasort64.c: File removed.
4507         * sysdeps/wordsize-64/scandir.c: File removed.
4508         * sysdeps/wordsize-64/scandir64.c: File removed.
4509         * sysdeps/wordsize-64/scandirat.c: File removed.
4510         * sysdeps/wordsize-64/scandirat64.c: File removed.
4511         * sysdeps/wordsize-64/versionsort.c: File removed.
4512         * sysdeps/wordsize-64/versionsort64.c: File removed.
4513         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4514         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4515         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4516         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4517         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4518         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4519         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4520         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4521
4522         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4523         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4524         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4525         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4526         [defined __arch64__ || defined __sparcv9]
4527         (__INO_T_MATCHES_INO64_T): New macro.
4528         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4529         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4530         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4531         * sysdeps/unix/sysv/linux/bits/dirent.h
4532         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4533         (_DIRENT_MATCHES_DIRENT64): New macro.
4534
4535         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4536         Define lockf64 as an alias.
4537         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4538         Define fseeko64 as an alias.
4539         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4540         Define ftello64 as an alias.
4541         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4542         Define _IO_fgetpos64 and fgetpos64 as aliases.
4543         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4544         Define _IO_fsetpos64 and fsetpos64 as aliases.
4545         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4546         Conditionalize body on this.
4547         * libio/fseeko64.c: Likewise.
4548         * libio/ftello64.c: Likewise.
4549         * libio/iofgetpos64.c: Likewise.
4550         * libio/iofsetpos64.c: Likewise.
4551         * sysdeps/wordsize-64/lockf.c: File removed.
4552         * sysdeps/wordsize-64/lockf64.c: File removed.
4553         * sysdeps/wordsize-64/fseeko.c: File removed.
4554         * sysdeps/wordsize-64/fseeko64.c: File removed.
4555         * sysdeps/wordsize-64/ftello.c: File removed.
4556         * sysdeps/wordsize-64/ftello64.c: File removed.
4557         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4558         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4559         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4560         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4561         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4562         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4563         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4564         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4565         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4566         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4567         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4568         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4569         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4570         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4571
4572         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4573         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4574         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4575         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4576         [defined __arch64__ || defined __sparcv9]
4577         (__OFF_T_MATCHES_OFF64_T): New macro.
4578         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4579         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4580         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4581         (__OFF_T_MATCHES_OFF64_T): New macro.
4582
4583 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4584
4585         * stdlib/secure-getenv.c (__secure_getenv): Replace
4586         GLIBC_2_16 with GLIBC_2_17.
4587
4588 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4589
4590         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4591         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4592
4593 2012-08-03  David S. Miller  <davem@davemloft.net>
4594
4595         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4596
4597 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4598
4599         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4600         Remove.
4601         (__ASSUME_CORRECT_SI_PID): Likewise.
4602         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4603         (__ASSUME_TMPFS_NAME): Likewise.
4604         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4605         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4606         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4607         (HAVE_AUX_SECURE): Make definition unconditional.
4608         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4609         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4610
4611 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4612
4613         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4614         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4615         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4616         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4617         __eloop_threshold instead of SYMLOOP_MAX.
4618
4619         * sysdeps/generic/eloop-threshold.h: New file.
4620         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4621         of MAXSYMLINKS.
4622         * elf/chroot_canon.c (chroot_canon): Likewise.
4623
4624 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4625
4626         [BZ #13717]
4627         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4628         Change to 2.6.0 everywhere.
4629         * sysdeps/unix/sysv/linux/configure: Regenerated.
4630         * sysdeps/unix/sysv/linux/kernel-features.h
4631         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4632         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4633         kernel versions.
4634         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4635         (__ASSUME_FUTEX_REQUEUE): Remove.
4636         (__ASSUME_STATFS64): Define unconditionally.
4637         (__ASSUME_AT_SECURE): Likewise.
4638         (__ASSUME_CORRECT_SI_PID): Likewise.
4639         (__ASSUME_TGKILL): Define without depending on kernel version for
4640         i386.
4641         (__ASSUME_UTIMES): Likewise.
4642         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4643         kernel version.
4644         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4645         (__ASSUME_TMPFS_NAME): Likewise.
4646         * README: Update reference to Linux kernel versions.
4647
4648 2012-08-02  Marek Polacek  <polacek@redhat.com>
4649
4650         [BZ# 14150]
4651         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4652         libc_cv_asm_type_prefix with %.
4653         * configure: Regenerated.
4654         * include/libc-symbols.h: Remove comment about
4655         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4656         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4657         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4658         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4659         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4660         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4661         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4662         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4663         * elf/tst-unique2mod1.c: Likewise.
4664         * elf/tst-unique1mod2.c: Likewise.
4665         * elf/tst-unique1mod1.c: Likewise.
4666         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4667         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4668         Replace ASM_TYPE_DIRECTIVE with .type.
4669         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4670         * sysdeps/i386/sysdep.h: Likewise.
4671         * sysdeps/x86_64/sysdep.h: Likewise.
4672         * sysdeps/sh/sysdep.h: Likewise.
4673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4674         Do not define ASM_TYPE_DIRECTIVE.
4675         * sysdeps/powerpc/sysdep.h: Likewise.
4676         * sysdeps/powerpc/powerpc32/sysdep.h:
4677         Replace ASM_TYPE_DIRECTIVE with .type.
4678         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4679         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4680         * sysdeps/i386/fpu/e_powf.S: Likewise.
4681         * sysdeps/i386/fpu/e_expl.S: Likewise.
4682         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4683         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4684         * sysdeps/i386/fpu/e_pow.S: Likewise.
4685         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4686         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4687         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4688         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4689         * sysdeps/i386/fpu/e_log2.S: Likewise.
4690         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4691         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4692         * sysdeps/i386/fpu/e_powl.S: Likewise.
4693         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4694         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4695         * sysdeps/i386/fpu/e_logl.S: Likewise.
4696         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4697         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4698         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4699         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4700         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4701         * sysdeps/i386/fpu/e_log.S: Likewise.
4702         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4703         * sysdeps/i386/fpu/e_logf.S: Likewise.
4704         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4705         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4706         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4707         * sysdeps/i386/fpu/e_log10.S: Likewise.
4708         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4709         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4710         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4711         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4712         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4713         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4714         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4715         * sysdeps/i386/i686/strtok.S: Likewise.
4716         * sysdeps/i386/i386-mcount.S: Likewise.
4717         * sysdeps/i386/strtok.S: Likewise.
4718         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4719         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4720         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4721         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4722         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4723         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4724         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4725         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4726         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4727         * sysdeps/x86_64/_mcount.S: Likewise.
4728         * sysdeps/x86_64/strtok.S: Likewise.
4729         * sysdeps/sh/_mcount.S: Likewise.
4730
4731 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4732
4733         * libio/iofopen.c: Include <fcntl.h>.
4734         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4735         (_IO_fopen64, fopen64): Define as aliases.
4736         * libio/iofopen64.c: Include <fcntl.h>.
4737         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4738         Conditionalize body on this.
4739         * sysdeps/wordsize-64/iofopen.c: File removed.
4740         * sysdeps/wordsize-64/iofopen64.c: File removed.
4741
4742 2012-08-01  Marek Polacek  <polacek@redhat.com>
4743
4744         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4745         Use dlfcn directly instead of a variable.
4746         (binfmt-subdir): Do not define.
4747         (dlfcn): Likewise.
4748
4749 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4750
4751         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4752         Remove all definitions.
4753         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4754         <kernel-features.h>.
4755         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4756         (miss_F_GETOWN_EX): Remove all definitions.
4757         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4758         macro definition.
4759         [!__ASSUME_FCNTL64]: Remove conditional code.
4760         [__ASSUME_FCNTL64]: Make code unconditional.
4761         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4762         <kernel-features.h>.
4763         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4764         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4765         (lockf64) [__NR_fcntl64]: Make code unconditional.
4766         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4767
4768         * sysdeps/unix/sysv/linux/kernel-features.h
4769         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4770         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4771         Make code unconditional.
4772         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4773         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4775         [__NR_vfork]: Make code unconditional.
4776         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4777         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4779         [__NR_vfork]: Make code unconditional.
4780         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4781         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4782
4783 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4784
4785         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4786         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4787
4788         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4789         Define mkstemp64 as an alias.
4790         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4791         Define mkstemps64 as an alias.
4792         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4793         Define mkostemp64 as an alias.
4794         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4795         Define mkostemps64 as an alias.
4796         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4797         Conditionalize body on this.
4798         * misc/mkostemp64.c: Likewise.
4799         * misc/mkostemps64.c: Likewise.
4800         * misc/mkstemps64.c: Likewise.
4801         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4802         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4803         * sysdeps/wordsize-64/mkostemp.c: File removed.
4804         * sysdeps/wordsize-64/mkstemp.c: File removed.
4805         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4806         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4807         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4808         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4809
4810         [BZ #14138]
4811         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4812         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4813         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4814         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4815
4816         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4817         compat_symbol macros from <shlib-compat.h> rather than the underlying
4818         default_symbol_version and symbol_version macros, so that DEFAULT
4819         lines in shlib-versions are respected.
4820         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4821
4822 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4823
4824         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4825         Declare with warn_unused_result.
4826         (setgid, setregid, setegid, setresgid): Likewise.
4827         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4828         Likewise.
4829         * WUR-REPORT: Remove set*id functions.
4830
4831 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4832
4833         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4834
4835 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4836
4837         * include/sys/socket.h (__libc_accept, __libc_accept4):
4838         Add attribute_hidden.
4839         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4840
4841         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4842         use of PTR_MANGLE.
4843         * inet/getnetgrent_r.c (setup): Likewise.
4844
4845         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4846
4847 2012-07-31  David S. Miller  <davem@davemloft.net>
4848
4849         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4850
4851 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4852
4853         [BZ #13629]
4854         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4855         value between 1.0 and 2.0 and smaller part has absolute value less
4856         than 1.0.
4857         * math/s_clog10.c (__clog10): Likewise.
4858         * math/s_clog10f.c (__clog10f): Likewise.
4859         * math/s_clog10l.c (__clog10l): Likewise.
4860         * math/s_clogf.c (__clogf): Likewise.
4861         * math/s_clogl.c (__clogl): Likewise.
4862         * math/libm-test.inc (clog_test): Add more tests.
4863         (clog10_test): Likewise.
4864         * sysdeps/i386/fpu/libm-test-ulps: Update.
4865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4866
4867 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4868
4869         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4870         Exit with zero in case no suitable GID is found, and write a
4871         message to standard error.
4872
4873 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4874
4875         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4876         rather than to 1.
4877         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4878         (MAXPATHLEN): Removed.
4879         (NOGROUP, NODEV): New macros.
4880         (setbit, clrbit, isset, isclr): New macros.
4881         (howmany, roundup, powerof2): New macros.
4882         (DEV_BSIZE): New macro.
4883
4884         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4885         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4886
4887         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4888         definition on [!__NO_LONG_DOUBLE_MATH].
4889
4890         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4891         PTR_MANGLE and PTR_DEMANGLE.
4892
4893         * socket/accept4.c (accept4): Rename to __libc_accept4.
4894         Define accept4 as a weak alias.
4895
4896         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4897         on [_DIRENT_HAVE_D_TYPE].
4898         * io/ftw.c (ftw_dir): Likewise.
4899
4900         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4901
4902         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4903
4904         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4905         Use the BSD numbers rather than the arbitrary ones we had.
4906         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4907         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4908         (SIGXCPU, SIGXFSZ): New macros.
4909         (_NSIG): Now 32.
4910
4911         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4912         initializer on [_LIBC_REENTRANT].
4913
4914         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4915         definitions inside [_POSIX_MAPPED_FILES].
4916
4917         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4918
4919         * dirent/opendir.c: Include <fcntl.h>.
4920
4921         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4922         (__libc_getspecific): Likewise.
4923         (__libc_key_create): Likewise.
4924
4925         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4926         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4927         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4928         (tmpfile64): Define as alias.
4929         * sysdeps/wordsize-64/tmpfile.c: File removed.
4930         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4931         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4932         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4933
4934         * stdio-common/vfscanf.c: Include <stdbool.h>.
4935         * nss/makedb.c: Likewise.
4936         * stdio-common/_i18n_number.h: Likewise.
4937         * argp/argp-help.c: Likewise.
4938         * posix/wordexp.c: Likewise.
4939         * sysdeps/posix/spawni.c: Likewise.
4940         * nss/nss_files/files-initgroups.c: Likewise.
4941         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4942         * nss/nss_files/files-initgroups.c: Likewise.
4943         * nss/nss_db/db-netgrp.c: Likewise.
4944         * nss/nss_db/db-initgroups.c: Likewise.
4945         * io/fchmodat.c: Include <sys/stat.h>.
4946
4947         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4948         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4949
4950         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4951         [HAVE_MMAP].
4952
4953         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4954         Add multiple inclusion protection.
4955
4956 2012-07-27  David S. Miller  <davem@davemloft.net>
4957
4958         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4959
4960 2012-07-27  Gary Benson  <gbenson@redhat.com>
4961
4962         [BZ #14298]
4963         * elf/rtld.c: Include <stap-probe.h>.
4964         (dl_main): Added static probes "init_start" and "init_complete".
4965         * elf/dl-load.c: Include <stap-probe.h>.
4966         (lose): Take new parameter "nsid".
4967         Added static probe "map_failed".
4968         (_dl_map_object_from_fd): Pass namespace id to lose.
4969         Added static probe "map_start".
4970         (open_verify): Pass namespace id to lose.
4971         * elf/dl-open.c: Include <stap-probe.h>.
4972         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4973         and "reloc_complete".
4974         * elf/dl-close.c: Include <stap-probe.h>.
4975         (_dl_close_worker): Added static probes "unmap_start" and
4976         "unmap_complete".
4977         * elf/rtld-debugger-interface.txt: New file documenting the above.
4978
4979 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4980
4981         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4982         rather than a string variable.
4983         * sunrpc/rpc_main.c (h_output): Likewise.
4984         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4985
4986 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4987
4988         * inet/check_native.c: New file.
4989
4990 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4991
4992         [BZ #13629]
4993         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4994         if larger part has absolute value 1.0.
4995         * math/s_clog10.c (__clog10): Likewise.
4996         * math/s_clog10f.c (__clog10f): Likewise.
4997         * math/s_clog10l.c (__clog10l): Likewise.
4998         * math/s_clogf.c (__clogf): Likewise.
4999         * math/s_clogl.c (__clogl): Likewise.
5000         * math/libm-test.inc (clog_test): Add more tests.
5001         (clog10_test): Likewise.
5002         * sysdeps/i386/fpu/libm-test-ulps: Update.
5003         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5004
5005         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
5006         (pltexit): Likewise.
5007         (La_regs): Likewise.
5008         (La_retval): Likewise.
5009         (int_retval): Likewise.
5010         Update #error for removed macros to refer only to definitions in
5011         tst-audit.h.
5012         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
5013         macro.
5014         (pltexit): Likewise.
5015         (La_regs): Likewise.
5016         (La_retval): Likewise.
5017         (int_retval): Likewise.
5018         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
5019         macro.
5020         (pltexit): Likewise.
5021         (La_regs): Likewise.
5022         (La_retval): Likewise.
5023         (int_retval): Likewise.
5024         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
5025         macro.
5026         (pltexit): Likewise.
5027         (La_regs): Likewise.
5028         (La_retval): Likewise.
5029         (int_retval): Likewise.
5030         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
5031         macro.
5032         (pltexit): Likewise.
5033         (La_regs): Likewise.
5034         (La_retval): Likewise.
5035         (int_retval): Likewise.
5036         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
5037         macro.
5038         (pltexit): Likewise.
5039         (La_regs): Likewise.
5040         (La_retval): Likewise.
5041         (int_retval): Likewise.
5042         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
5043         macro.
5044         (pltexit): Likewise.
5045         (La_regs): Likewise.
5046         (La_retval): Likewise.
5047         (int_retval): Likewise.
5048         * sysdeps/generic/tst-audit.h: Update comment to refer only to
5049         macro definitions in tst-audit.h.
5050         * sysdeps/i386/tst-audit.h: New file.
5051         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
5052         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
5053         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
5054         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
5055         * sysdeps/sh/tst-audit.h: Likewise.
5056         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
5057         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
5058         * sysdeps/x86_64/tst-audit.h: Likewise.
5059
5060 2012-07-26  Andreas Jaeger  <aj@suse.de>
5061
5062         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
5063         ptrace.
5064
5065         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
5066         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
5067         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
5068         PTRACE_O_MASK.
5069         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
5070         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
5071         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
5072
5073         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
5074         value.
5075
5076         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
5077         _sigsys.
5078         (si_call_addr, si_syscall, si_arch): Define new macro.
5079         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
5080         _sigsys.
5081         (si_call_addr, si_syscall, si_arch): Define new marcro.
5082         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
5083         _sigsys.
5084         (si_call_addr, si_syscall, si_arch): Define new macro.
5085         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
5086         _sigsys.
5087         (si_call_addr, si_syscall, si_arch): Define new macro.
5088
5089 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5090
5091         [BZ #13717]
5092         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5093         Change to 2.4.21 where previously 2.4.1.
5094         * sysdeps/unix/sysv/linux/configure: Regenerated.
5095         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
5096         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5097         Linux kernel version.
5098         (__ASSUME_STD_AUXV): Remove.
5099         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5100         kernel version.
5101         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5102         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5103         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5104         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5105         (__ASSUME_NETLINK_SUPPORT): Likewise.
5106         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5107         (__no_netlink_support): Remove conditional definition.
5108         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5109         Remove.
5110         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5111         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5112         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5113         (if_nameindex_ioctl): Remove.
5114         (if_nameindex_netlink): Do not handle __no_netlink_support.
5115         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5116         code.
5117         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5118         Remove conditional code.
5119         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5120         code.
5121         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5122         unconditional.
5123         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5124         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5125         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5126         Remove.
5127         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5128         [!__ASSUME_STD_AUXV]: Remove conditional code.
5129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5130         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5131         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5132         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5133         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5134         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5135         code.
5136         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5138         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5139         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5140         conditional code.
5141         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5143         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5144         code.
5145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5146         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5147         conditional code.
5148         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5149         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5150         code unconditional.
5151         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5152         conditional code.
5153         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5154         unconditional.
5155         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5156         conditional code.
5157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5158         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5159         unconditional.
5160         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5161         conditional code.
5162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5163         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5164         code unconditional.
5165         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5166         conditional code.
5167         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5168         unconditional.
5169         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5170         conditional code.
5171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5172         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5173         code unconditional.
5174         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5175         conditional code.
5176         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5177         unconditional.
5178         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5179         conditional code.
5180
5181 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5182
5183         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5184         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5185         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5186         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5187         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5188         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5189         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5190         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5191         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5192         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5193         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5194         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5195         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5196         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5197         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5198         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5199         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5200         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5201         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5202         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5203         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5204         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5205         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5206
5207 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5208
5209         * Versions.def: Add GLIBC_2.17.
5210         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5211         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5212         Introduce __libc_secure_getenv.
5213         * stdlib/Versions (2.17): Add secure_getenv
5214         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5215         * stdlib/secure-getenv.c: Rename __secure_getenv to
5216         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5217         symbol __secure_getenv for GLIBC_2.0.
5218         * stdlib/tst-secure-getenv.c: New.
5219         * stdlib/Makefile (tests): Add testcase.
5220         * manual/startup.texi (Environment Access): Document
5221         secure_getenv.
5222         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5223         __libc_secure_getenv.
5224         * inet/ruserpass.c (ruserpass): Likewise.
5225         * malloc/mtrace.c (mtrace): Likewise.
5226         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5227         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5228         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5229         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5230         HAVE_SECURE_GETENV.
5231         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5232         __secure_getenv to __libc_secure_getenv.
5233         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5234         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5235         Likewise.
5236         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5237         Likewise.
5238         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5239         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5240         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5241         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5242         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5243         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5244         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5245
5246 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5247
5248         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5249         (struct La_i86_retval): Likewise.
5250         (struct La_x86_64_regs): Likewise.
5251         (struct La_x86_64_retval): Likewise.
5252         (struct La_x32_regs): Likewise.
5253         (struct La_x32_retval): Likewise.
5254         (struct La_ppc32_regs): Likewise.
5255         (struct La_ppc32_retval): Likewise.
5256         (struct La_ppc64_regs): Likewise.
5257         (struct La_ppc64_retval): Likewise.
5258         (struct La_sh_regs): Likewise.
5259         (struct La_sh_retval): Likewise.
5260         (struct La_s390_32_regs): Likewise.
5261         (struct La_s390_32_retval): Likewise.
5262         (struct La_s390_64_regs): Likewise.
5263         (struct La_s390_64_retval): Likewise.
5264         (struct La_sparc32_regs): Likewise.
5265         (struct La_sparc32_retval): Likewise.
5266         (struct La_sparc64_regs): Likewise.
5267         (struct La_sparc64_retval): Likewise.
5268         (struct audit_ifaces): Remove architecture-specific pltenter and
5269         pltexit members.
5270         * sysdeps/i386/ldsodefs.h: New file.
5271         * sysdeps/powerpc/ldsodefs.h: Likewise.
5272         * sysdeps/s390/ldsodefs.h: Likewise.
5273         * sysdeps/sh/ldsodefs.h: Likewise.
5274         * sysdeps/sparc/ldsodefs.h: Likewise.
5275         * sysdeps/x86_64/ldsodefs.h: Likewise.
5276
5277 2012-07-25  Marek Polacek  <polacek@redhat.com>
5278
5279         [BZ #6808]
5280         * math/libm-test.inc (yn_test): Add another test.
5281         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5282         to ERANGE when the result is +-Inf.
5283         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5284         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5285         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5286         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5287
5288 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5289
5290         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5291         equal to 0.
5292         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5293         clock_t.
5294         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5295
5296 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5297
5298         * configure.in <sysdeps resolving>: Correct printing
5299         Implies_before.
5300         * configure: Regenerate.
5301
5302 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5303
5304         * math/w_ilogb.c: Include <limits.h>.
5305         * math/w_ilogbl.c: Likewise.
5306
5307 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5308
5309         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5310         va_copy.  Document allowing for unavailable va_copy only as
5311         pre-C99 compatibility.
5312         * manual/string.texi (Copying and Concatenation): Use va_copy
5313         instead of __va_copy in concat example.
5314
5315 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5316
5317         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5318         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5319         it if not null.
5320
5321         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5322         with O_NOLINK passed to __file_name_lookup.
5323
5324         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5325         with O_NOLINK passed to __file_name_lookup.
5326
5327         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5328         negative N or less than NGIDS.
5329
5330         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5331         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5332         enough.  Use memcpy instead of strncpy.
5333
5334 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5335
5336         * elf/Makefile (check-data): Remove.
5337         (localplt.data): New vpath directive.
5338         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5339         instead of $(check-data).
5340         * scripts/data/localplt-generic.data: Move to ...
5341         * sysdeps/generic/localplt.data: ... here.
5342         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5343         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5344         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5346         ... here.
5347         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5349         ... here.
5350         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5351         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5352         ... here.
5353         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5354         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5355         ... here.
5356         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5357         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5358         ... here.
5359         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5360         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5361         ... here.
5362
5363 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5364
5365         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5366         PPC32 and PPC64 files.
5367         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5368         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5369
5370 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5371
5372         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5373         __makecontext_ret to ...
5374         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5375         ... here and call exit if uc_link is NULL.  New file.
5376         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5377         __makecontext_ret.S.
5378         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5379         __makecontext_ret to ...
5380         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5381         ... here and call exit if uc_link is NULL.  New file.
5382         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5383         __makecontext_ret.S.
5384
5385 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5386
5387         * elf/elf.h (R_390_IRELATIVE): New definition.
5388         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5389         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5390         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5391         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5392         (elf_machine_lazy_rel): Likewise.
5393         * sysdeps/s390/dl-irel.h: New file.
5394         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5395         * sysdeps/s390/s390-64/memset.S: New asm code.
5396         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5397         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5398         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5399         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5400         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5401         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5402         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5403         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5404         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5405         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5406         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5407         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5408         * sysdeps/s390/s390-32/memset.S: New asm code.
5409         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5410
5411 2012-07-17  Marek Polacek  <polacek@redhat.com>
5412
5413         [BZ #14349]
5414         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5415         * sysdeps/s390/s390-64/configure.in: Likewise.
5416         * sysdeps/sparc/configure.in: Likewise.
5417         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5418         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5419         * sysdeps/i386/configure.in: Likewise.
5420         * sysdeps/x86_64/configure.in: Likewise.
5421         * sysdeps/sh/configure.in: Likewise.
5422         * sysdeps/s390/s390-32/configure: Regenerated.
5423         * sysdeps/s390/s390-64/configure: Likewise.
5424         * sysdeps/x86_64/configure: Likewise.
5425         * sysdeps/sh/configure: Likewise.
5426         * sysdeps/powerpc/powerpc64/configure: Likewise.
5427         * sysdeps/powerpc/powerpc32/configure: Likewise.
5428         * sysdeps/sparc/configure: Likwise.
5429         * sysdeps/i386/configure: Likewise.
5430
5431         * elf/dl-open.c: Comment fixes.
5432
5433 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5434
5435         * Makefile [CXX] (check-data): Remove.
5436         [CXX] (c++-types.data): New vpath directive.
5437         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5438         vpath.  Do not allow for C++ type data being missing.
5439         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5440         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5441         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5442         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5443         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5444         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5445         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5447         ... here.
5448         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5450         ... here.
5451         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5452         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5453         ... here.
5454         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5455         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5456         ... here.
5457         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5458         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5459         ... here.
5460         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5461         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5462         ... here.
5463         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5464         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5465         ... here.
5466         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5467         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5468
5469         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5470         definitions to architecture-specific files.
5471         (TLS_IE): Likewise.
5472         (TLS_LD): Likewise.
5473         (TLS_GD): Likewise.
5474         * sysdeps/i386/tls-macros.h: New file.
5475         * sysdeps/powerpc/tls-macros.h: Likewise.
5476         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5477         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5478         * sysdeps/sh/tls-macros.h: Likewise.
5479         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5480         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5481         * sysdeps/x86_64/tls-macros.h: Likewise.
5482
5483 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5484
5485         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5486         zero value for regular exit case.
5487
5488         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5489         (__start_context): Preserve zero value for regular exit case.
5490
5491 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5492             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5493
5494         * manual/setjmp.texi (setcontext): Clarify normal process
5495         termination when uc_link is the null pointer.
5496         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5497         exit call.
5498
5499 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5500
5501         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5502         preprocessor.  Test for each exception mask separately.
5503
5504 2012-07-16  Andreas Jaeger  <aj@suse.de>
5505
5506         * po/ru.po: Update from translation team.
5507
5508 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5509
5510         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5511         equal to 0.
5512         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5513         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5514         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5515         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5516         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5517
5518 2012-07-13  Andreas Jaeger  <aj@suse.de>
5519
5520         * po/fr.po: Update from translation team.
5521
5522 2012-07-12  Marek Polacek  <polacek@redhat.com>
5523
5524         [BZ #14173]
5525         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5526         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5527         loop condition.
5528
5529 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5530
5531         [BZ #13717]
5532         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5533         Change to 2.4.1 where previously 2.4.0.
5534         * sysdeps/unix/sysv/linux/configure: Regenerated.
5535         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5536         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5537         version.
5538         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5539         (__ASSUME_AT_CLKTCK): Remove.
5540         (__ASSUME_AT_PAGESIZE): Likewise.
5541         (__ASSUME_AT_XID): Likewise.
5542         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5543         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5544         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5545         unconditionally.
5546         (HAVE_AUX_PAGESIZE): Likewise.
5547         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5548         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5549         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5550
5551 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5552
5553         [BZ #14307]
5554         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5555         the temporary buffer used to invoke __gethostbyname2_r,
5556         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5557         host_data / struct gaih_addrtuple.
5558         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5559         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5560         header file nss/nsswitch.h.
5561         * nss/nsswitch.h (global scope): Add definition of implementation
5562         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5563         resolv/nss_dns/dns-host.c).
5564
5565 2012-07-11  Andreas Jaeger  <aj@suse.de>
5566
5567         * po/fr.po: Update from translation team.
5568
5569         * po/sv.po: Update from translation team
5570         * po/fr.po: Another update from translation team.
5571
5572 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5573
5574         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5575         for subnormals or multiply small sinh result by itself.
5576         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5578
5579 2012-07-11  David S. Miller  <davem@davemloft.net>
5580
5581         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5582
5583 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5584
5585         [BZ #14347]
5586         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5587         (INTERNAL_MARK): Shift it here.
5588
5589 2012-07-10  Marek Polacek  <polacek@redhat.com>
5590
5591         [BZ #14151]
5592         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5593         libc_cv_asm_global_directive with .globl.
5594         * configure: Regenerated.
5595         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5596         with .globl.
5597         * sysdeps/i386/configure: Regenerated.
5598         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5599         with .globl.
5600         * sysdeps/x86_64/configure: Regenerated.
5601         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5602         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5603         * elf/tst-unique2mod2.c: Likewise.
5604         * elf/tst-unique2mod1.c: Likewise.
5605         * elf/tst-unique1mod2.c: Likewise.
5606         * elf/tst-unique1mod1.c: Likewise.
5607         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5608         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5609         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5610         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5611         * sysdeps/mach/sysdep.h: Likewise.
5612         * sysdeps/i386/sysdep.h: Likewise.
5613         * sysdeps/i386/i386-mcount.S: Likewise.
5614         * sysdeps/x86_64/_mcount.S: Likewise.
5615         * sysdeps/x86_64/sysdep.h: Likewise.
5616         * sysdeps/sh/_mcount.S: Likewise.
5617         * sysdeps/sh/sysdep.h: Likewise.
5618         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5619         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5620         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5621         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5622         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5623         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5624         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5625         * locale/localeinfo.h: Likewise.
5626         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5627         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5628
5629 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5630
5631         [BZ #14336]
5632         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5633         system".
5634         * manual/message.texi (The Uniforum approach): Likewise.
5635         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5636         (glibc iconv Implementation): Likewise.
5637
5638 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5639
5640         [BZ #14337]
5641         * math/s_clog.c (__clog): Avoid scaling a value down where that
5642         could result in underflow.
5643         * math/s_clog10.c (__clog10): Likewise.
5644         * math/s_clog10f.c (__clog10f): Likewise.
5645         * math/s_clog10l.c (__clog10l): Likewise.
5646         * math/s_clogf.c (__clogf): Likewise.
5647         * math/s_clogl.c (__clogl): Likewise.
5648         * math/libm-test.inc (clog_test): Add more tests.
5649         (clog10_test): Likewise.
5650         * sysdeps/i386/fpu/libm-test-ulps: Update.
5651         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5652
5653 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5654
5655         [BZ #14283]
5656         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5657         by 7 not 8 to examine high bit of fractional part.
5658
5659         [BZ #14042]
5660         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5661         for call to __mcount_internal.
5662         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5663         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5664         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5665
5666 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5667
5668         [BZ #14154]
5669         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5670         approximation for values within 0x1p-13f of an odd multiple of
5671         pi/4.
5672         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5673         exception.  Add more tests.
5674         * sysdeps/i386/fpu/libm-test-ulps: Update.
5675
5676         [BZ #6778]
5677         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5678         inputs and return -1 for them.  Do not check for +Inf in case not
5679         reachable for +Inf.
5680         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5681         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5682         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5683         and return -1 for them.  Do not check for +Inf in case not
5684         reachable for +Inf.
5685         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5686         define.
5687         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5688         and return -1 for them.  Do not check for +Inf in case not
5689         reachable for +Inf.
5690         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5691         spurious underflow.
5692         * sysdeps/i386/fpu/libm-test-ulps: Update.
5693         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5694
5695 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5696
5697         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5698
5699 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5700
5701         [BZ #14157]
5702         [BZ #14331]
5703         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5704         could result in spurious underflow.  Scale down values above
5705         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5706         * math/s_csqrtf.c (__csqrtf): Likewise.
5707         * math/s_csqrtl.c (__csqrtl): Likewise.
5708         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5709         spurious underflow.
5710         * sysdeps/i386/fpu/libm-test-ulps: Update.
5711         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5712
5713 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5714
5715         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5716         xopen-msg.sed.
5717         * catgets/xopen-msg.awk: New file.
5718         * catgets/xopen-msg.sed: Removed.
5719
5720         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5721         po2text.sed.
5722         * intl/po2test.awk: New file.
5723         * intl/po2test.sed: Removed.
5724
5725 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5726
5727         [BZ #14328]
5728         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5729         or multiply small sinh result by itself.
5730         * math/s_ctanf.c (__ctanf): Likewise.
5731         * math/s_ctanh.c (__ctanh): Likewise.
5732         * math/s_ctanhf.c (__ctanhf): Likewise.
5733         * math/s_ctanhl.c (__ctanhl): Likewise.
5734         * math/s_ctanl.c (__ctanl): Likewise.
5735         * math/libm-test.inc (ctan_test_tonearest): New function.
5736         (ctan_test_towardzero): Likewise.
5737         (ctan_test_downward): Likewise.
5738         (ctan_test_upward): Likewise.
5739         (ctanh_test_tonearest): Likewise.
5740         (ctanh_test_towardzero): Likewise.
5741         (ctanh_test_downward): Likewise.
5742         (ctanh_test_upward): Likewise.
5743         (main): Call these new functions.
5744         * sysdeps/i386/fpu/libm-test-ulps: Update.
5745         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5746
5747 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5748
5749         * .gitignore: Delete /ports entry.
5750
5751 2012-07-03  Andreas Jaeger  <aj@suse.de>
5752
5753         * po/bg.po: Update from translation team.
5754         * po/cs.po: Likewise.
5755         * po/de.po: Likewise.
5756         * po/hr.po: Likewise.
5757         * po/nl.pl: Likewise.
5758         * po/pl.po: Likewise.
5759         * po/vi.po: Likewise.
5760
5761 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5762
5763         * Makeconfig [!+link] (+link-before-libc): New variable.
5764         [!+link] (+link-after-libc): Likewise.
5765         [!+link] (+link-tests): Likewise.
5766         [!+link] (+link): Define in terms of $(+link-before-libc) and
5767         $(+link-after-libc).
5768         [!+link-static] (+link-static-before-libc): New variable.
5769         [!+link-static] (+link-static-after-libc): Likewise.
5770         [!+link-static] (+link-static-tests): Likewise.
5771         [!+link-static] (+link-static): Define in terms of
5772         $(+link-static-before-libc) and $(+link-static-after-libc).
5773         [build-shared] (link-libc-before-gnulib): New variable.
5774         [build-shared] (link-libc-tests): Likewise.
5775         [build-shared] (link-libc): Define in terms of
5776         $(link-libc-before-gnulib).
5777         [!build-shared] (link-libc-tests): New variable.
5778         (link-libc-static-tests): New variable.
5779         [!gnulib] (gnulib-arch): New variable.
5780         [!gnulib] (gnulib-tests): Likewise.
5781         [!gnulib] (static-gnulib-arch): Likewise.
5782         [!gnulib] (static-gnulib-tests): Likewise.
5783         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5784         Define with "=" instead of ":=".
5785         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5786         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5787         * Rules (binaries-all-notests): New variable.
5788         (binaries-all-tests): Likewise.
5789         (binaries-static-notests): Likewise.
5790         (binaries-static-tests): Likewise.
5791         (binaries-all): Define using $(binaries-all-notests) and
5792         $(binaries-all-tests).
5793         (binaries-static): Define using $(binaries-static-notests) and
5794         $(binaries-static-tests).
5795         (binaries-shared-tests): New variable.
5796         (binaries-shared-notests): Likewise.
5797         (binaries-shared): Remove variable.
5798         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5799         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5800         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5801         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5802         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5803         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5804         * elf/Makefile (sln-modules): New variable.
5805         (extra-objs): Add $(sln-modules:=.o).
5806         (ldconfig-modules): Add static-stubs.
5807         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5808         * elf/static-stubs.c: New file.
5809
5810         [BZ #14283]
5811         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5812         by 7 not 8 to examine high bit of fractional part.  Use volatile
5813         variables when splitting into final array of floats if
5814         __FLT_EVAL_METHOD__ != 0.
5815         * math/libm-test.inc (cos_test): Add another test.
5816         (sin_test): Likewise.
5817         * sysdeps/i386/fpu/libm-test-ulps: Update.
5818
5819         [BZ #14273]
5820         * math/libm-test.inc (cosh_test): Add more tests.
5821
5822         * version.h (RELEASE): Set to "development".
5823         (VERSION): Set to "2.16.90".
5824
5825 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5826
5827         * NEWS: Update copyright. Remove last-updated date.
5828         Mention math library bug fixes and timezone data changes.
5829         * README: Mention GNU/Hurd, x32, and HPPA support status.
5830
5831 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5832
5833         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5834
5835 2012-06-27  Andreas Jaeger  <aj@suse.de>
5836
5837         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5838
5839 2012-06-25  Andreas Jaeger  <aj@suse.de>
5840
5841         * sysdeps/s390/fpu/libm-test-ulps: Update.
5842
5843 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5844             Thomas Schwinge  <thomas@codesourcery.com>
5845
5846         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5847         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5848         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5849         fanotify_mark.
5850
5851 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5852
5853         * sysdeps/mach/start.c: Remove file.
5854         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5855         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5856         * sysdeps/sh/init-first.c: Likewise.
5857
5858         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5859         registers for frame unwinding purposes, add CFI directives.
5860         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5861         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5862         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5863         Likewise.
5864
5865         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5866         __fortify_fail returning.
5867         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5868
5869         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5870         sysdeps/sh/____longjmp_chk.S.
5871         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5872         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5873         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5874         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5875
5876         * sysdeps/sh/abort-instr.h: New file.
5877         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5878         process in case exit returns.
5879
5880         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5881         initialize the GOT register before use.
5882
5883         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5884         calculation of ARGC > 4.
5885
5886         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5887         meaningful names to some local labels.
5888
5889 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5890             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5891
5892         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5893         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5894         (__arch_compare_and_exchange_val_16_acq): Likewise.
5895         (__arch_compare_and_exchange_val_32_acq): Likewise.
5896         (atomic_exchange_and_add): Fix gUSA sequence.
5897         (atomic_add): Likewise.
5898         (atomic_add_negative): Likewise.
5899         (atomic_add_zero): Likewise.
5900         (atomic_bit_test_set): Likewise.
5901
5902 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5903
5904         [BZ #13579]
5905         * include/link.h (struct link_map): Add l_free_initfini.
5906         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5907         l_initfini.
5908         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5909         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5910         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5911         set.
5912
5913 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5914
5915         * configure.in: Use AC_LANG_SOURCE.
5916         * configure: Regenerate.
5917
5918 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5919
5920         * configure.in (libc_cv_localstatedir): New substituted variable.
5921         * configure: Regenerated.
5922         * config.make.in (localstatedir): New variable, substituted from
5923         libc_cv_localstatedir.
5924         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5925         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5926         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5927         * sysdeps/gnu/configure: Regenerated.
5928
5929 2012-06-21  Jeff Law  <law@redhat.com>
5930
5931         [BZ #14277]
5932         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5933         free.  Simplify list management for _LIBC case.
5934
5935 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5936
5937         [BZ #14273]
5938         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5939         Clear sign bit of 64-bit integer value before comparing against
5940         overflow value.
5941
5942         * sysdeps/mach/configure: Regenerated.
5943
5944 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5945
5946         [BZ #14278]
5947         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5948
5949 2012-06-21  Jeff Law  <law@redhat.com>
5950
5951         [BZ #13882]
5952         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5953         uint16_t for elements in the "seen" array to avoid char overflows.
5954         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5955         * elf/dl-open.c (dl_open_worker): Likewise.
5956
5957 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5958
5959         * scripts/list-sources.sh: Scan PORTS for translations.
5960         * po/libc.pot: Regenerated.
5961
5962 2012-06-21  Andreas Jaeger  <aj@suse.de>
5963
5964         [BZ #12194]
5965         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5966         warning.
5967         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5968         * bits/byteswap-16.h (__bswap_16): Likewise.
5969         * bits/byteswap.h (__bswap_constant_16): Likewise.
5970
5971 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5972
5973         [BZ #14117]
5974         * sysdeps/i386/fpu_control.h: Removed.
5975         * sysdeps/x86_64/fpu_control.h: Moved to ...
5976         * sysdeps/x86/fpu_control.h: Here.
5977
5978         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5979         (_FPU_SETCW): Likewise.
5980
5981 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5982
5983         [BZ #14117]
5984         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5985         * sysdeps/x86/fpu/bits/mathinline.h: This.
5986         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5987
5988         [BZ #14050]
5989         [BZ #14117]
5990         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5991         functions if __x86_64__ is defined.
5992
5993 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5994
5995         * string/endian.h: Add !__ASSEMBLER__ condition for including
5996         conversion interfaces.
5997
5998 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5999
6000         [BZ #14241]
6001         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
6002         of ABS(x) in calculating zero to negative powers other than odd
6003         integers.
6004         * math/libm-test.inc (pow_test): Add more tests.
6005
6006 2012-06-15  Andreas Jaeger  <aj@suse.de>
6007
6008         * manual/contrib.texi (Contributors): Update entry of Liubov
6009         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
6010         Machado Filho.
6011
6012 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
6013
6014         * string/string.h: Add __wur to GNU version of strerror_r.
6015
6016 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
6017
6018         [BZ #14229]
6019         * string/Makefile (tests): Add tst-strtok_r.
6020         * string/tst-strtok_r.c: New file.
6021         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
6022         RAX_LP/RDX_LP on SAVE_PTR.
6023
6024 2012-06-14  Roland McGrath  <roland@hack.frob.com>
6025
6026         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
6027
6028 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
6029
6030         * libm_test.inc (csqrt_test): Allow more spurious underflow
6031         exceptions.
6032         (j0_test): Likewise.
6033         (j1_test): Likewise.
6034         (y0_test): Likewise.
6035         (y1_test): Likewise.
6036
6037 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
6038
6039         * po/Makefile (libc.pot): Use UTF-8 charset.
6040
6041 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
6042
6043         [BZ #14210]
6044         Suppress sign-conversion warning from FD_SET.
6045         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
6046         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
6047         not unsigned long int.
6048         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
6049
6050 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
6051
6052         [BZ #14050]
6053         [BZ #14117]
6054         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
6055         __extern_always_inline instead of __extern_inline.
6056         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
6057         (__signbit): Likewise.
6058         (__signbitl): Support C++ namespace.
6059         (lrintf): New inline function.
6060         (lrint): Likewise.
6061         (llrintf): Likewise.
6062         (llrint): Likewise.
6063         (fmaxf): Likewise.
6064         (fmax): Likewise.
6065         (fminf): Likewise.
6066         (fmin): Likewise.
6067         (rint): Likewise.
6068         (rintf): Likewise.
6069         (ceil): Likewise.
6070         (ceilf): Likewise.
6071         (floor): Likewise.
6072         (floorf): Likewise.
6073         (nearbyint): Likewise.
6074         (nearbyintf): Likewise.
6075
6076 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
6077
6078         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
6079         non-default versions.
6080
6081 2012-06-11  Roland McGrath  <roland@hack.frob.com>
6082
6083         [BZ #14218]
6084         * manual/argp.texi (Argp): Reword argp_parse description slightly.
6085
6086 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
6087
6088         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
6089         (FE_UPWARD, FE_DOWNWARD): Don't define.
6090         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
6091         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6092
6093         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
6094         reading it.
6095         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6096         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6097
6098 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6099
6100         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6101         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6102         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6103         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6104
6105 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
6106
6107         [BZ #14117]
6108         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6109         * sysdeps/i386/fpu/Implies: New file.
6110         * sysdeps/x86_64/fpu/Implies: Likewise.
6111         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6112         * sysdeps/x86/fpu/bits/fenv.h: This.
6113
6114         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6115         __SSE_MATH__.
6116
6117 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6118
6119         [BZ #14134]
6120         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6121         character 0xffff that matches the last element of the
6122         conversion table.
6123
6124 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6125
6126         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6127         fmodl commit.
6128
6129 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6130
6131         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6132         values higher than 25.6283.
6133
6134 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6135
6136         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6137         subnormal exponent extraction and add some __builtin_expect.
6138         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6139         Fix for subnormal mantissa calculation.
6140
6141 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6142
6143         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6144         cpu2 is -1 and errno is not ENOSYS.
6145
6146 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6147
6148         [BZ #14117]
6149         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6150         * sysdeps/x86/bits/string.h: This.
6151         * sysdeps/x86_64/bits/string.h: Removed.
6152
6153         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6154         if not compiling for x86-64, but compiling for >= i486.
6155
6156         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6157         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6158
6159         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6160         New macro from Linux kernel 3.4.0.
6161         (FP_XSTATE_MAGIC2): Likewise.
6162         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6163         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6164         (struct _fpx_sw_bytes): New struct.
6165         (struct _xsave_hdr): Likewise.
6166         (struct _ymmh_state): Likewise.
6167         (struct _xstate): Likewise.
6168
6169         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6170         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6171         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6172         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6173         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6174         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6175
6176         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6177         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6178         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6179         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6180         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6181         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6182
6183 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6184
6185         [BZ #13743]
6186         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6187         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6188         (sysdep_headers): Include sys/platform/ppc.h.
6189         * sysdeps/powerpc/test-gettimebase.c: Test for
6190         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6191         * manual/Makefile (appendices): Include platform.texi.
6192         * manual/contrib.texi (Contributors): Update @node pointers.
6193         * manual/maint.texi (Maintenance): Likewise.
6194         (Platform): New node.
6195         * manual/platform.texi: New file.  Document the new features.
6196
6197 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6198             Jakub Jelinek  <jakub@redhat.com>
6199
6200         [BZ #14188]
6201         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6202         where __builtin_expect is unavailable.
6203
6204 2012-06-03  David S. Miller  <davem@davemloft.net>
6205
6206         * stdlib/longlong.h: Updated from GCC.
6207
6208 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6209
6210         [BZ #14042]
6211         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6212         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6213         __mcount_internal.
6214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6215         (GLIBC_2.16): Likewise.
6216
6217 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6218
6219         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6220
6221 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6222
6223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6224         (default-abi): New variable.
6225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6226         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6227         variable.
6228         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6229         Likewise.
6230         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6231         Likewise.
6232         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6233         Likewise.
6234
6235         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6236         definition.  Document in comment.
6237
6238 2012-06-01  David S. Miller  <davem@davemloft.net>
6239
6240         * stdlib/longlong.h: Updated from GCC.
6241
6242 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6243
6244         [BZ #14117]
6245         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6246         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6247         sys/debugreg.h sys/io.h here.
6248         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6249         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6250         sys/io.h.
6251         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6252         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6253         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6254         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6255         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6256         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6257
6258         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6259         Define only if __x86_64__ is defined.
6260
6261 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6262
6263         [BZ #14048]
6264         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6265         Use int64_t for variable i.
6266         * math/libm-test.inc (fmod_test): Add more tests.
6267
6268         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6269         z computation is not scheduled after fetestexcept.
6270         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6271         Use math_force_eval instead of asm to ensure calculation scheduled
6272         before exception test.
6273         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6274         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6275
6276 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6277
6278         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6279         computation is not scheduled after fetestexcept.
6280
6281 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6282
6283         [BZ #14117]
6284         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6285         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6286
6287 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6288
6289         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6290         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6291
6292 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6293
6294         [BZ #14117]
6295         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6296         <bits/wordsize.h>.
6297         (__WCHAR_MIN): Support __WORDSIZE == 64.
6298         (__WCHAR_MAX): Likewise.
6299
6300         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6301         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6302
6303         [BZ #14183]
6304         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6305         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6306
6307         [BZ #14117]
6308         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6309         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6310
6311         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6312         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6313
6314         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6315         Defined to 1 if __x86_64__ isn't defined.
6316         (_STAT_VER_LINUX_OLD): New.
6317         (st_atime): Remove duplicate.
6318         (st_mtime): Likewise.
6319         (st_ctime): Likewise.
6320
6321 2012-05-31  David S. Miller  <davem@davemloft.net>
6322
6323         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6324         entries.
6325
6326 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6327
6328         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6329         gen-libm-test.pl.
6330
6331         [BZ #14132]
6332         * elf/dl-reloc.c: Include <_itoa.h>.
6333         (_dl_reloc_bad_type): Remove use of INTUSE.
6334         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6335         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6336         * stdio-common/psiginfo.c (psiginfo): Likewise.
6337         * stdio-common/psignal.c (psignal): Likewise.
6338         * string/strsignal.c (strsignal): Likewise.
6339         * include/signal.h (_sys_siglist): Declare hidden proto.
6340         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6341         INTVARDEF with libc_hidden_data_def.
6342         * stdio-common/itoa-udigits.c: Likewise.
6343         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6344         (_itoa_lower_digits_internal): Remove declaration.
6345         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6346         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6347         (_sys_sigabbrev_internal): Remove aliases.
6348         (_sys_siglist): Define hidden alias.
6349
6350 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6351
6352         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6353         bits/sysctl.h.
6354
6355 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6356
6357         [BZ #14117]
6358         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6359         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6360
6361         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6362         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6363         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6364         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6365         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6366         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6367
6368         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6369         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6370         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6371
6372         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6373         with __addr.
6374         (insw): Likewise.
6375         (insl): Likewise.
6376         (outsb): Likewise.
6377         (outsw): Likewise.
6378         (outsl): Likewise.
6379
6380         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6381         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6382         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6383
6384         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6385         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6386         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6387         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6388         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6389         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6390
6391         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6392         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6393
6394         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6395         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6396
6397         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6398         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6399         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6400
6401         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6402         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6403         to ...
6404         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6405
6406         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6407         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6408         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6409
6410         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6411         for x86-64.
6412         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6413
6414 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6415
6416         * math/math.h (M_El): Use two more decimal places.
6417         (M_LOG2El): Likewise.
6418         (M_LOG10El): Likewise.
6419         (M_LN2l): Likewise.
6420         (M_LN10l): Likewise.
6421         (M_PIl): Likewise.
6422         (M_PI_2l): Likewise.
6423         (M_PI_4l): Likewise.
6424         (M_1_PIl): Likewise.
6425         (M_2_PIl): Likewise.
6426         (M_2_SQRTPIl): Likewise.
6427         (M_SQRT2l): Likewise.
6428         (M_SQRT1_2l): Likewise.
6429
6430 2012-05-31  David S. Miller  <davem@davemloft.net>
6431
6432         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6433         values between float registers.
6434         * sysdeps/sparc/sparc64/memset.S: Likewise.
6435         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6436
6437 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6438
6439         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6440         -D_FORTIFY_SOURCE=1.
6441         (CPPFLAGS-tst-longjmp_chk.c): Define.
6442         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6443         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6444         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6445         CFLAGS-tst-wchar-h.c.
6446
6447 2012-05-31  Marek Polacek  <polacek@redhat.com>
6448
6449         [BZ #14132]
6450         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6451         __endmntent_internal): Remove declaration.
6452         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6453         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6454         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6455
6456 2012-05-30  David S. Miller  <davem@davemloft.net>
6457
6458         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6459         (___Q_simulate_exceptions): Use real FP ops rather than writing
6460         into the %fsr.
6461         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6462         Likewise.
6463
6464 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6465
6466         [BZ #14117]
6467         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6468         * sysdeps/x86/bits/xtitypes.h: This.
6469
6470         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6471         * sysdeps/x86/bits/wordsize.h: This.
6472
6473         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6474         * sysdeps/x86/bits/huge_vall.h: This.
6475
6476         * sysdeps/i386/bits/select.h: Removed.
6477         * sysdeps/x86_64/bits/select.h: Renamed to ...
6478         * sysdeps/x86/bits/select.h: This.
6479
6480         * sysdeps/i386/bits/setjmp.h: Removed.
6481         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6482         * sysdeps/x86/bits/setjmp.h: This.
6483
6484         * sysdeps/i386/bits/mathdef.h: Removed.
6485         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6486         * sysdeps/x86/bits/mathdef.h: This.
6487
6488 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6489
6490         [BZ #14132]
6491         * include/sys/socket.h (__connect_internal)
6492         (__libc_sa_len_internal): Remove declaration.
6493         (__connect, __libc_sa_len): Declare hidden_proto.
6494         (SA_LEN): Remove use of INTUSE.
6495         * socket/connect.c: Add libc_hidden_def.
6496         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6497         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6498         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6499         alias.
6500         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6501         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6502         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6503         of adding _internal alias.
6504
6505 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6506
6507         [BZ #14117]
6508         * sysdeps/i386/bits/link.h: Removed.
6509         * sysdeps/i386/bits/linkmap.h: Likewise.
6510         * sysdeps/x86_64/bits/link.h: Renamed to ...
6511         * sysdeps/x86/bits/link.h: This.
6512         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6513         * sysdeps/x86/bits/linkmap.h: This.
6514
6515         * sysdeps/i386/bits/endian.h: Removed.
6516         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6517         * sysdeps/x86/bits/endian.h: This.
6518
6519         * sysdeps/i386/bits/byteswap.h: Removed.
6520         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6521         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6522         * sysdeps/x86/bits/byteswap.h: This.
6523         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6524         * sysdeps/x86/bits/byteswap-16.h: This.
6525         * sysdeps/i386/Implies: Add x86.
6526         * sysdeps/x86_64/Implies: Likewise.
6527
6528 2012-05-30  David S. Miller  <davem@davemloft.net>
6529
6530         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6531         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6532         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6533         (FP_TRAPPING_EXCEPTIONS): Define.
6534         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6535         (FP_TRAPPING_EXCEPTIONS): Define.
6536         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6537         subnormals only when inexact has been signalled or underflow
6538         exceptions are enabled.
6539         (_FP_PACK_CANONICAL): Likewise.
6540
6541 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6542
6543         [BZ #14183]
6544         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6545         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6546
6547 2012-05-30  Richard Henderson  <rth@twiddle.net>
6548
6549         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6550         with #ifndef NOT_IN_libc.
6551
6552         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6553         marked to avoid plt entry.
6554
6555 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6556
6557         [BZ #14112]
6558         * Makeconfig (default-abi): New macro.
6559         (abi-includes): Likewise.
6560         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6561         $(abi-$(default-abi)-lib-soname) for soname if defined.
6562         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6563         abi-variants.
6564         * Makefile (installed-stubs): Likewise.
6565         * include/stubs-biarch.h: Removed.
6566         * scripts/lib-names.awk: Only handle one library at a time.
6567         * scripts/soversions.awk: Remove WORDSIZE support.
6568         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6569         entries.
6570         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6571         Removed.
6572         (syscall-list-default-condition): Likewise.
6573         (syscall-list-default-condition): Likewise.
6574         (syscall-list-includes): Likewise.
6575         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6576         syscall-list-* with abi-*.  Handle undefined abi-variants.
6577         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6578         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6579         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6580         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6581         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6582         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6583         Removed.
6584         (syscall-list-32-options): Likewise.
6585         (syscall-list-32-condition): Likewise.
6586         (syscall-list-64-options): Likewise.
6587         (syscall-list-64-condition): Likewise.
6588         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6589         macro.
6590         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6591         Renamed to ...
6592         (abi-*): This.
6593         (abi-64-ld-soname): New macro.
6594         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6595         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6596         Renamed to ...
6597         (abi-*): This.
6598         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6599         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6600
6601 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6602
6603         * sysdeps/unix/sysv/linux/kernel-features.h
6604         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6605         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6606         include <kernel-features.h>.
6607         [!__NR_ftruncate64]: Remove conditional code.
6608         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6609         [__NR_ftruncate64]: Make code unconditional.
6610         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6611         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6612         include <kernel-features.h>.
6613         [!__NR_ftruncate64]: Remove conditional code.
6614         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6615         [__NR_ftruncate64]: Make code unconditional.
6616         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6618         include <kernel-features.h>.
6619         [!__NR_ftruncate64]: Remove conditional code.
6620         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6621         [__NR_ftruncate64]: Make code unconditional.
6622         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6624         include <kernel-features.h>.
6625         [!__NR_ftruncate64]: Remove conditional code.
6626         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6627         [__NR_ftruncate64]: Make code unconditional.
6628         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6629
6630         * configure.in (libc_cv_fpie): Weaken to a compile test using
6631         LIBC_TRY_CC_OPTION.
6632         * configure: Regenerated.
6633
6634 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6635
6636         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6637         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6638         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6639         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6640         Refreshed.
6641         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6642         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6643         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6644         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6645         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6646         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6647         Refreshed.
6648
6649 2012-05-27  David S. Miller  <davem@davemloft.net>
6650
6651         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6652         (___Q_zero): New.
6653         (__Q_simulate_exceptions): Return void.  Change to simulate
6654         exceptions by writing into the %fsr.
6655         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6656         (__Qp_handle_exceptions): Likewise.
6657         (numbers): Delete.
6658         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6659         __Qp_handle_exceptions.
6660         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6661         __Qp_handle_exceptions.
6662         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6663         as unused and give dummy FP_RND_NEAREST initializer.
6664         (FP_INHIBIT_RESULTS): Define.
6665         (___Q_simulate_exceptions): Update declaration.
6666         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6667         formatting.
6668         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6669         as unused and give dummy FP_RND_NEAREST initializer.
6670         (__Qp_handle_exceptions): Update declaration.
6671         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6672         formatting.
6673
6674 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6675
6676         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6677         the temporary FPU control word.
6678         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6679         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6680         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6681         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6682         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6683         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6684         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6685         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6686         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6687         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6688         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6689
6690 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6691
6692         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6693         fields.
6694
6695 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6696
6697         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6698         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6699         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6700         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6701         Likewise.
6702         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6703         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6704         Likewise.
6705
6706 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6707
6708         * po/h.po: Update from translation team.
6709
6710 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6711
6712         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6713
6714         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6715         handling of denormals.
6716         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6717         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6718         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6719         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6720         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6721         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6722         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6723         Likewise.
6724
6725 2012-05-26  Marek Polacek  <polacek@redhat.com>
6726
6727         [BZ #14152]
6728         * math/libm-test.inc (fma_test): Don't always expect underflow
6729         exception.
6730
6731 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6732
6733         [BZ #12416]
6734         * elf/tst-execstack.c: Include stackinfo.h.
6735         (do_test): Adjust test case to ensure that pthread_getattr_np
6736         behaviour remains the same after marking stack executable.
6737
6738 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6739
6740         * sysdeps/unix/sysv/linux/kernel-features.h
6741         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6742         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6743         kernel-features.h.
6744         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6745         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6746         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6747         kernel-features.h.
6748         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6749         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6750
6751 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6752
6753         * configure.in: Define the default includes to being none.
6754         * configure: Regenerated.
6755
6756 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6757
6758         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6759         * sysdeps/x86_64/setjmp.S: Likewise.
6760         * sysdeps/i386/bsd-setjmp.S: Likewise.
6761         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6762         * sysdeps/i386/setjmp.S: Likewise.
6763         * sysdeps/i386/__longjmp.S: Likewise.
6764         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6765         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6766
6767         * include/stap-probe.h: New file.
6768         * configure.in: Handle --enable-systemtap.
6769         * configure: Regenerated.
6770         * config.h.in (USE_STAP_PROBE): New #undef.
6771         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6772         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6773         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6774
6775 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6776
6777         [BZ #13717]
6778         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6779         to 2.4.0 where earlier.
6780         * sysdeps/unix/sysv/linux/configure: Regenerated.
6781         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6782         <kernel-features.h>.
6783         [__ASSUME_32BITUIDS]: Make code unconditional.
6784         [!__ASSUME_32BITUIDS]: Remove conditional code.
6785         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6786         <kernel-features.h>.
6787         [__ASSUME_32BITUIDS]: Make code unconditional.
6788         [!__ASSUME_32BITUIDS]: Remove conditional code.
6789         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6790         [__ASSUME_32BITUIDS]: Make code unconditional.
6791         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6792         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6793         <kernel-features.h>.
6794         [__ASSUME_32BITUIDS]: Make code unconditional.
6795         [!__ASSUME_32BITUIDS]: Remove conditional code.
6796         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6797         <kernel-features.h>.
6798         [__ASSUME_32BITUIDS]: Make code unconditional.
6799         [!__ASSUME_32BITUIDS]: Remove conditional code.
6800         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6801         <kernel-features.h>.
6802         [__ASSUME_32BITUIDS]: Make code unconditional.
6803         [!__ASSUME_32BITUIDS]: Remove conditional code.
6804         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6805         <kernel-features.h>.
6806         [__ASSUME_32BITUIDS]: Make code unconditional.
6807         [!__ASSUME_32BITUIDS]: Remove conditional code.
6808         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6809         <kernel-features.h>.
6810         [__ASSUME_32BITUIDS]: Make code unconditional.
6811         [!__ASSUME_32BITUIDS]: Remove conditional code.
6812         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
6813         <kernel-features.h>.
6814         [__ASSUME_32BITUIDS]: Make code unconditional.
6815         [!__ASSUME_32BITUIDS]: Remove conditional code.
6816         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
6817         <kernel-features.h>.
6818         [__ASSUME_32BITUIDS]: Make code unconditional.
6819         [!__ASSUME_32BITUIDS]: Remove conditional code.
6820         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
6821         <kernel-features.h>.
6822         [__ASSUME_32BITUIDS]: Make code unconditional.
6823         [!__ASSUME_32BITUIDS]: Remove conditional code.
6824         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
6825         <kernel-features.h>.
6826         [__ASSUME_32BITUIDS]: Make code unconditional.
6827         [!__ASSUME_32BITUIDS]: Remove conditional code.
6828         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
6829         <kernel-features.h>.
6830         [__ASSUME_32BITUIDS]: Make code unconditional.
6831         [!__ASSUME_32BITUIDS]: Remove conditional code.
6832         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
6833         <kernel-features.h>.
6834         [__NR_setresgid] (__setresgid): Do not declare.
6835         [__ASSUME_32BITUIDS]: Make code unconditional.
6836         [!__ASSUME_32BITUIDS]: Remove conditional code.
6837         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6838         <kernel-features.h>.
6839         [__NR_setresuid] (__setresuid): Do not declare.
6840         [__ASSUME_32BITUIDS]: Make code unconditional.
6841         [!__ASSUME_32BITUIDS]: Remove conditional code.
6842         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6843         <kernel-features.h>.
6844         [__ASSUME_32BITUIDS]: Make code unconditional.
6845         [!__ASSUME_32BITUIDS]: Remove conditional code.
6846         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6847         <kernel-features.h>.
6848         [__ASSUME_32BITUIDS]: Make code unconditional.
6849         [!__ASSUME_32BITUIDS]: Remove conditional code.
6850         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6851         <kernel-features.h>.
6852         [__ASSUME_32BITUIDS]: Make code unconditional.
6853         [!__ASSUME_32BITUIDS]: Remove conditional code.
6854         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6855         <kernel-features.h>.
6856         [__ASSUME_32BITUIDS]: Make code unconditional.
6857         [!__ASSUME_32BITUIDS]: Remove conditional code.
6858         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6859         <kernel-features.h>.
6860         [__ASSUME_32BITUIDS]: Make code unconditional.
6861         [!__ASSUME_32BITUIDS]: Remove conditional code.
6862         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
6863         <kernel-features.h>.
6864         [__ASSUME_32BITUIDS]: Make code unconditional.
6865         [!__ASSUME_32BITUIDS]: Remove conditional code.
6866         * sysdeps/unix/sysv/linux/i386/setresuid.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/i386/setreuid.c: Do not include
6871         <kernel-features.h>.
6872         [__ASSUME_32BITUIDS]: Make code unconditional.
6873         [!__ASSUME_32BITUIDS]: Remove conditional code.
6874         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
6875         <kernel-features.h>.
6876         [__ASSUME_32BITUIDS]: Make code unconditional.
6877         [!__ASSUME_32BITUIDS]: Remove conditional code.
6878         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
6879         <kernel-features.h>.
6880         [__ASSUME_32BITUIDS]: Make code unconditional.
6881         [!__ASSUME_32BITUIDS]: Remove conditional code.
6882         * sysdeps/unix/sysv/linux/kernel-features.h
6883         (__ASSUME_SETRESUID_SYSCALL): Remove.
6884         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6885         (__ASSUME_32BITUIDS): Likewise.
6886         (__ASSUME_LDT_WORKS): Likewise.
6887         (__ASSUME_O_DIRECTORY): Likewise.
6888         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6889         architecture but not kernel version.
6890         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6891         (__ASSUME_MMAP2_SYSCALL): Likewise.
6892         (__ASSUME_STAT64_SYSCALL): Likewise.
6893         (__ASSUME_IPC64): Likewise.
6894         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6895         <kernel-features.h>.
6896         [__ASSUME_32BITUIDS]: Make code unconditional.
6897         [!__ASSUME_32BITUIDS]: Remove conditional code.
6898         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6899         <kernel-features.h>.
6900         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6901         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6902         132096]: Remove conditional code.
6903         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6904         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6905         <kernel-features.h>.
6906         [__ASSUME_32BITUIDS]: Make code unconditional.
6907         [!__ASSUME_32BITUIDS]: Remove conditional code.
6908         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6909         <kernel-features.h>.
6910         [__ASSUME_32BITUIDS]: Make code unconditional.
6911         [!__ASSUME_32BITUIDS]: Remove conditional code.
6912         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6913         <kernel-features.h>.
6914         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6915         unconditional.
6916         (__setresgid): Do not declare.
6917         [__ASSUME_32BITUIDS]: Make code unconditional.
6918         [!__ASSUME_32BITUIDS]: Remove conditional code.
6919         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6920         <kernel-features.h>.
6921         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6922         unconditional.
6923         (__setresuid): Do not declare.
6924         [__ASSUME_32BITUIDS]: Make code unconditional.
6925         [!__ASSUME_32BITUIDS]: Remove conditional code.
6926         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6927         <kernel-features.h>.
6928         [__ASSUME_32BITUIDS]: Make code unconditional.
6929         [!__ASSUME_32BITUIDS]: Remove conditional code.
6930         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6931         <kernel-features.h>.
6932         [__ASSUME_32BITUIDS]: Make code unconditional.
6933         [!__ASSUME_32BITUIDS]: Remove conditional code.
6934
6935 2012-05-25  Richard Henderson  <rth@twiddle.net>
6936
6937         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6938         dl_hwcap to ifunc resolver.
6939         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6940         elf_ifunc_invoke.
6941         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6942         dl_hwcap to ifunc resolver.
6943         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6944
6945 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6946
6947         [BZ #14153]
6948         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6949         for |x| <= 2**-26, not 2**-57.
6950         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6951         exception.
6952
6953 2012-05-24  Jeff Law  <law@redhat.com>
6954
6955         * stdio-common/Makefile (tests): Add bug25.
6956         * stdio-common/bug25.c: New test.
6957
6958 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6959
6960         [BZ #13576]
6961         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6962         multiple of MALLOC_ALIGNMENT in size.
6963         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6964
6965 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6966
6967         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6968         Require >= 256.
6969         (FILENAME_MAX): Use macro-int-constant.
6970         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6971         (_IOFBF): Use macro-int-constant.
6972         (_IOLBF): Likewise.
6973         (_IONBF): Likewise.
6974         (SEEK_CUR): Likewise.
6975         (SEEK_END): Likewise.
6976         (SEEK_SET): Likewise.
6977         (TMP_MAX): Likewise.
6978         (EOF): Use macro-int-constant.  Require < 0.
6979         (NULL): Use macro-constant.  Require == 0.
6980         (stdin): Require type to be FILE *.
6981         (stdout): Likewise.
6982         (stderr): Likewise.
6983         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6984         macro-int-constant.
6985         (EXIT_SUCCESS): Likewise.
6986         (NULL): Use macro-constant.  Require == 0.
6987         (RAND_MAX): Use macro-int-constant.
6988         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6989         [C99-based standards] (strtof): Require function.
6990         [C99-based standards] (strtold): Likewise.
6991         [C99-based standards] (strtoll): Likewise.
6992         [C99-based standards] (strtoull): Likewise.
6993         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6994         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6995         [ISO || ISO99 || ISO11] (math.h): Likewise.
6996         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6997         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6998         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6999
7000 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
7001
7002         [BZ #14132]
7003         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
7004         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
7005         * intl/dgettext.c (DCGETTEXT): Likewise.
7006         * intl/gettext.c (DCGETTEXT): Likewise.
7007         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
7008         * posix/regex_internal.h (gettext): Likewise.
7009         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
7010         Remove declaration.
7011         * include/argz.h (__argz_count_internal)
7012         (__argz_stringify_internal): Remove declaration.
7013         (__argz_count, __argz_stringify): Declare hidden proto.
7014         * intl/dcgettext.c: Remove use of INTDEF.
7015         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
7016         * string/argz-stringify.c: Likewise.
7017         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7018         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7019         Declare hidden proto.
7020         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7021         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7022         Declare hidden proto.
7023         * include/stdio.h (__asprintf_internal): Don't declare.
7024         (__asprintf): Don't define as macro.  Declare hidden proto.
7025         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
7026         (__fsetlocking): Declare hidden proto.
7027         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
7028         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
7029         hidden proto.
7030         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
7031         (_IO_setlinebuf): Remove use of INTUSE.
7032         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
7033         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
7034         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
7035         Remove declaration.
7036         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
7037         (_IO_do_flush): Remove use of INTUSE.
7038         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
7039         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
7040         (_IO_adjust_column, _IO_least_wmarker)
7041         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
7042         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
7043         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
7044         (_IO_default_doallocate, _IO_wdefault_doallocate)
7045         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
7046         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
7047         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
7048         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
7049         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
7050         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
7051         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
7052         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
7053         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
7054         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
7055         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
7056         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
7057         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
7058         proto.
7059         (_IO_flush_all_internal, _IO_adjust_column_internal)
7060         (_IO_default_uflow_internal, _IO_default_finish_internal)
7061         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
7062         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
7063         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
7064         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
7065         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
7066         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
7067         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
7068         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
7069         (_IO_file_close_internal, _IO_file_close_it_internal)
7070         (_IO_file_underflow_internal, _IO_file_overflow_internal)
7071         (_IO_file_init_internal, _IO_file_attach_internal)
7072         (_IO_file_fopen_internal, _IO_file_read_internal)
7073         (_IO_file_sync_internal, _IO_file_seek_internal)
7074         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
7075         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
7076         (_IO_str_underflow_internal, _IO_str_overflow_internal)
7077         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
7078         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
7079         (_IO_list_all_internal, _IO_link_in_internal)
7080         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
7081         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
7082         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
7083         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
7084         (_IO_do_write_internal, _IO_padn_internal)
7085         (_IO_getline_info_internal, _IO_getline_internal)
7086         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
7087         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
7088         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
7089         (_IO_vfscanf_internal, _IO_vfprintf_internal)
7090         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
7091         (_IO_init_internal, _IO_un_link_internal): Don't declare.
7092         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
7093         with libc_hidden_ver, remove use of INTUSE.
7094         * libio/genops.c: Likewise.
7095         * libio/freopen.c: Likewise.
7096         * libio/freopen64.c: Likewise.
7097         * libio/iofclose.c: Likewise.
7098         * libio/iofdopen.c: Likewise.
7099         * libio/iofflush.c: Likewise.
7100         * libio/iofflush_u.c: Likewise.
7101         * libio/iofgets.c: Likewise.
7102         * libio/iofgets_u.c: Likewise.
7103         * libio/iofopen.c: Likewise.
7104         * libio/iofopncook.c: Likewise.
7105         * libio/iofread.c: Likewise.
7106         * libio/iofread_u.c: Likewise.
7107         * libio/ioftell.c: Likewise.
7108         * libio/iofwrite.c: Likewise.
7109         * libio/iogetline.c: Likewise.
7110         * libio/iogets.c: Likewise.
7111         * libio/iogetwline.c: Likewise.
7112         * libio/iopadn.c: Likewise.
7113         * libio/iopopen.c: Likewise.
7114         * libio/ioseekoff.c: Likewise.
7115         * libio/ioseekpos.c: Likewise.
7116         * libio/iosetbuffer.c: Likewise.
7117         * libio/iosetvbuf.c: Likewise.
7118         * libio/ioungetc.c: Likewise.
7119         * libio/ioungetwc.c: Likewise.
7120         * libio/iovdprintf.c: Likewise.
7121         * libio/iovsprintf.c: Likewise.
7122         * libio/iovsscanf.c: Likewise.
7123         * libio/memstream.c: Likewise.
7124         * libio/obprintf.c: Likewise.
7125         * libio/oldfileops.c: Likewise.
7126         * libio/oldiofclose.c: Likewise.
7127         * libio/oldiofdopen.c: Likewise.
7128         * libio/oldiofopen.c: Likewise.
7129         * libio/oldiopopen.c: Likewise.
7130         * libio/oldstdfiles.c: Likewise.
7131         * libio/putc.c: Likewise.
7132         * libio/setbuf.c: Likewise.
7133         * libio/setlinebuf.c: Likewise.
7134         * libio/stdfiles.c: Likewise.
7135         * libio/strops.c: Likewise.
7136         * libio/vasprintf.c: Likewise.
7137         * libio/vscanf.c: Likewise.
7138         * libio/vsnprintf.c: Likewise.
7139         * libio/vswprintf.c: Likewise.
7140         * libio/wfiledoalloc.c: Likewise.
7141         * libio/wfileops.c: Likewise.
7142         * libio/wgenops.c: Likewise.
7143         * libio/wmemstream.c: Likewise.
7144         * libio/wstrops.c: Likewise.
7145         * libio/__fpurge.c: Likewise.
7146         * libio/__fsetlocking.c: Likewise.
7147         * assert/assert.c: Likewise.
7148         * debug/fgets_chk.c: Likewise.
7149         * debug/fgets_u_chk.c: Likewise.
7150         * debug/fread_chk.c: Likewise.
7151         * debug/fread_u_chk.c: Likewise.
7152         * debug/gets_chk.c: Likewise.
7153         * debug/obprintf_chk.c: Likewise.
7154         * debug/vasprintf_chk.c: Likewise.
7155         * debug/vdprintf_chk.c: Likewise.
7156         * debug/vsnprintf_chk.c: Likewise.
7157         * debug/vsprintf_chk.c: Likewise.
7158         * malloc/mtrace.c: Likewise.
7159         * misc/error.c: Likewise.
7160         * misc/syslog.c: Likewise.
7161         * stdio-common/asprintf.c: Likewise.
7162         * stdio-common/fxprintf.c: Likewise.
7163         * stdio-common/getw.c: Likewise.
7164         * stdio-common/isoc99_fscanf.c: Likewise.
7165         * stdio-common/isoc99_scanf.c: Likewise.
7166         * stdio-common/isoc99_vfscanf.c: Likewise.
7167         * stdio-common/isoc99_vscanf.c: Likewise.
7168         * stdio-common/isoc99_vsscanf.c: Likewise.
7169         * stdio-common/printf-prs.c: Likewise.
7170         * stdio-common/printf_fp.c: Likewise.
7171         * stdio-common/printf_fphex.c: Likewise.
7172         * stdio-common/printf_size.c: Likewise.
7173         * stdio-common/putw.c: Likewise.
7174         * stdio-common/scanf.c: Likewise.
7175         * stdio-common/sprintf.c: Likewise.
7176         * stdio-common/tmpfile.c: Likewise.
7177         * stdio-common/vfprintf.c: Likewise.
7178         * stdio-common/vfscanf.c: Likewise.
7179         * stdlib/strfmon_l.c: Likewise.
7180         * sunrpc/openchild.c: Likewise.
7181         * sunrpc/xdr_stdio.c: Likewise.
7182         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7183         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7184
7185 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7186
7187         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7188
7189         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7190         in the third column, to generate for the shared library an IFUNC
7191         that uses _dl_vdso_vsym.
7192         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7193         * Makeconfig (object-suffixes-noshared): New variable.
7194
7195         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7196         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7197         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7198         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7199
7200         [BZ #14132]
7201         * include/sys/time.h (__gettimeofday): Remove macro.
7202         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7203         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7204         Remove INTDEF.
7205         (__gettimeofday): Add libc_hidden_def.
7206         (gettimeofday): Add libc_hidden_weak.
7207         * sysdeps/mach/gettimeofday.c: Likewise.
7208         * sysdeps/posix/gettimeofday.c: Likewise.
7209         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7210         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7211         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7212         (__gettimeofday_internal): Remove strong_alias.
7213         (__gettimeofday): Add libc_hidden_def.
7214         (gettimeofday): Add libc_hidden_weak.
7215         * sysdeps/unix/syscalls.list (gettimeofday):
7216         Remove __gettimeofday_internal alias.
7217
7218 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7219             H.J. Lu  <hongjiu.lu@intel.com>
7220
7221         [BZ #12495]
7222         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7223         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7224         (largebin_index_32_big): New.
7225         (largebin_index): Use it for 16-byte alignment.
7226         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7227         correction with front_misalign.
7228
7229 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7230
7231         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7232         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7233         Likewise.
7234         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7235         Likewise.
7236         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7237         Likewise.
7238         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7239         Likewise.
7240         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7241         Likewise.
7242         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7243         Likewise.
7244         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7245         Likewise.
7246         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7247         Likewise.
7248         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7249         Likewise.
7250         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7251         Likewise.
7252         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7253         Likewise.
7254         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7255         Likewise.
7256
7257         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7258         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7259
7260 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7261
7262         [BZ #10846]
7263         [BZ #14036]
7264         * math/libm-test.inc (exp_test): Add test from bug 14036.
7265         (pow_test): Add test from bug 10846.
7266
7267         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7268         and other flags.
7269         (special_function): Do not include flags in test name.
7270         (parse_args): Likewise.
7271         * sysdeps/i386/fpu/libm-test-ulps: Update.
7272         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7273         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7274         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7276
7277         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7278         exceptions.
7279         * math/libm-test.inc ("Philosophy"): Update comment about
7280         exception testing.
7281         (UNDERFLOW_EXCEPTION): New macro.
7282         (UNDERFLOW_EXCEPTION_OK): Likewise.
7283         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7284         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7285         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7286         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7287         (INVALID_EXCEPTION_OK): Update value.
7288         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7289         (OVERFLOW_EXCEPTION_OK): Likewise.
7290         (IGNORE_ZERO_INF_SIGN): Likewise.
7291         (test_exceptions): Handle underflow exceptions.
7292         (acos_test): Update for underflow exception expectations.
7293         (cexp_test): Likewise.
7294         (clog_test): Likewise.
7295         (clog10_test): Likewise.
7296         (csqrt_test): Likewise.
7297         (ctan_test): Likewise.
7298         (ctanh_test): Likewise.
7299         (exp_test): Likewise.
7300         (exp10_test): Likewise.
7301         (exp2_test): Likewise.
7302         (expm1_test): Likewise.
7303         (fma_test): Likewise.
7304         (j0_test): Likewise.
7305         (jn_test): Likewise.
7306         (nexttoward_test): Likewise.
7307         (pow_test): Likewise.
7308         (scalbn_test): Likewise.
7309         (scalbln_test): Likewise.
7310         (tan_test): Likewise.
7311         (y1_test): Likewise.
7312         * sysdeps/i386/fpu/libm-test-ulps: Update.
7313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7314
7315 2012-05-23  David S. Miller  <davem@davemloft.net>
7316
7317         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7318         (__libc_sigaction): Remove unused local variables.
7319
7320 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7321
7322         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7323
7324 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7325
7326         mktime: avoid signed integer overflow
7327         * time/mktime.c (__mktime_internal): Do not mishandle the case
7328         where diff == INT_MIN.
7329
7330         mktime: simplify computation of average
7331         * time/mktime.c (ranged_convert): Use new time_t_avg function
7332         instead of rolling our own (probably-slower) code.
7333
7334         mktime: do not assume signed right shift propagates sign bit
7335         * time/mktime.c (isdst_differ): New static function.
7336         (__mktime_internal): No need to normalize tm_isdst now.
7337         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7338         tm_isdst values.
7339
7340         mktime: merge another wrapv change from gnulib
7341         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7342         from some compilers.
7343
7344         mktime: remove incorrect attempt at unusual arithmetics
7345         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7346         The code didn't really work on such machines anyway.
7347         (TYPE_MINIMUM): Assume two's complement.
7348         (twos_complement_arithmetic): Verify that long_int and time_t
7349         are two's complement (or unsigned, in the latter case).
7350
7351         mktime: check signed shifts on long_int and time_t, too
7352         * time/mktime.c (SHR): Check that shifts work as desired
7353         on the types long_int and time_t too, as SHR is used on
7354         such types.
7355
7356         mktime: do not assume 'long' is wide enough
7357         * time/mktime.c (verify): Move decl up.
7358         (long_int): New type.
7359         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7360         to remove assumption in the code that 'long' is wide enough to
7361         store year values.  This assumption is not true on x32 and on
7362         some non-glibc platforms.
7363
7364         mktime: merge wrapv change from gnulib
7365         * time/mktime.c (WRAPV): New macro.
7366         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7367         (guess_time_tm, __mktime_internal): Do not assume that signed
7368         integer overflow wraps around; modern compilers generate code
7369         where this assumption is no longer valid.
7370
7371 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7372
7373         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7374         Replace "jmp L(pseudo_end)" with "ret".
7375         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7376         Likewise.
7377
7378 2012-05-23  Andreas Jaeger  <aj@suse.de>
7379
7380         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7381         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7382
7383 2012-05-23  Andreas Jaeger  <aj@suse.de>
7384             Maximilian Attems  <max@stro.at>
7385
7386         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7387         New macros.
7388
7389 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7390
7391         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7392         code so that pseudo_end is just ret and the stack pointer is
7393         correct also for static library in error case.
7394
7395 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7396
7397         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7398         move to syscalls.list.
7399         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7401         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7403
7404         * manual/install.texi (Running make install): Do not mention Linux
7405         kernel version for which pt_chown is not needed.
7406         (Linux): Do not mention problems with nscd with 2.0 kernels.
7407         * INSTALL: Regenerated.
7408
7409 2012-05-23  Andreas Jaeger  <aj@suse.de>
7410
7411         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7412         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7413         macro.
7414         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7415         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7416         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7417         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7418         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7419         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7420         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7421         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7422         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7423         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7424         * sysdeps/unix/sysv/linux/bits/in.h
7425         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7426
7427 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7428
7429         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7430         (PREPARE_VERSION): Just use assert instead, it will be elided
7431         under [NDEBUG] anyway.
7432
7433 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7434
7435         * sysdeps/unix/sysv/linux/Makefile: Include
7436         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7437         (sysdep_routines): Remove sysctl.
7438         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7439         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7440         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7441         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7442         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7443
7444 2012-05-22  Andreas Jaeger  <aj@suse.de>
7445
7446         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7447         that pseudo_end is just ret and the stack pointer is correct also
7448         for static library in error case.
7449
7450 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7451
7452         [BZ #14122]
7453         * nss/nsswitch.c (defconfig_entries): New variable.
7454         (__nss_database_lookup): Don't leak defconfig entries.
7455         (nss_parse_service_list): Don't leak on error paths.
7456         (free_database_entries): New function.
7457         (free_defconfig): New function.
7458         (free_mem): Move common code to free_database_entries.
7459
7460 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7461
7462         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7463         Add arch_prctl.
7464         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7465
7466         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7467         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7468         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7469         New macro.
7470         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7471         (INTERNAL_SYSCALL_TYPES): Likewise.
7472         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7473         (LOAD_REGS_TYPES_[1-6]): Likewise.
7474         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7475         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7476
7477 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7478
7479         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7480         copysignl for GLIBC_2_0.
7481         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7482         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7483         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7484         logbl for GLIBC_2_0.
7485         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7486         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7487
7488 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7489
7490         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7491         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7492
7493         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7494         Use "neg %eax".
7495
7496         * time/mktime.c: Update copyright years.
7497
7498 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7499
7500         mktime: merge comment-quoting-style change from gnulib
7501         * time/mktime.c: Quote 'like this' in comments.
7502         The GNU coding standards suggest that we no longer quote `like this',
7503         as "`" and "'" are typically rendered asymmetrically nowadays.
7504         The typical gnulib style is to quote 'like this' when quoting
7505         code, and "like this" when quoting English.
7506
7507         * time/mktime.c (compile-command): Add "-I.".
7508
7509         mktime: merge mktime-internal.h change from gnulib
7510         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7511
7512         mktime: merge time_r change from gnulib
7513         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7514
7515         mktime: merge DEBUG change from gnulib
7516         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7517         case system <time.h> has a #define.
7518
7519         mktime: merge <sys/types.h> change from gnulib
7520         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7521         since <time.t> is now guaranteed to define time_t.
7522
7523         mktime: merge HAVE_CONFIG_H change from gnulib
7524         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7525
7526 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7527
7528         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7529         Use "neg %eax".
7530
7531         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7532         __rlim_t cast.
7533         (struct rusage): Use anonymous union to pad each field to
7534         __syscall_slong_t.
7535
7536 2012-05-21  David S. Miller  <davem@davemloft.net>
7537
7538         * Makefules (o-iterator): Remove .s cases.
7539         (compile-command.s): Delete.
7540         (COMPILE.s): Delete.
7541         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7542
7543 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7544
7545         * configure.in (libc_cv_predef_stack_protector): Only consider
7546         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7547         * configure: Regenerated.
7548
7549 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7550
7551         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7552         New macro.  Use R*LP on int and pointer.
7553         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7554         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7555         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7556         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7557
7558         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7559         [__WORDSIZE_TIME64_COMPAT32] instead of
7560         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7561         (struct utmp): Likewise.
7562         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7563         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7564         Renamed to ...
7565         (__WORDSIZE_TIME64_COMPAT32): This.
7566         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7567         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7568         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7569         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7570         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7571         (__WORDSIZE_TIME64_COMPAT32): New macro.
7572
7573 2012-05-21  Andreas Jaeger  <aj@suse.de>
7574
7575         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7576         only if [SHARED]. Add prototype for __wcschr_ia32.
7577
7578 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7579
7580         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7581         of %rbp unmolested in the jmp_buf while mangling the low bits.
7582         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7583         unmolested high bits of %rbp while demangling the low bits.
7584         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7585
7586 2012-05-21  Andreas Jaeger  <aj@suse.de>
7587
7588         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7589         * sunrpc/svc_simple.c: Use it for registerrpc.
7590         * sunrpc/xcrypt.c: Use it for passwd2des.
7591
7592         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7593
7594 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7595
7596         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7597         Don't define if [__SYSCALL_WORDSIZE != 32].
7598         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7599         New macro.
7600
7601 2012-05-21  Bruno Haible  <bruno@clisp.org>
7602             Andreas Jaeger  <aj@suse.de>
7603
7604         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7605         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7606         inptr and inend for must_buffer_ch.
7607         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7608         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7609         * stdio-common/Makefile (tests): Remove bug15.
7610         (bug15-ENV): Remove macro.
7611         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7612         anymore.
7613
7614 2012-05-19  Andreas Jaeger  <aj@suse.de>
7615             Roland McGrath  <roland@hack.frob.com>
7616
7617         * manual/contrib.texi: Completely rewritten. It contains now an
7618         alphabetical list of contributors and their contributions.
7619
7620 2012-05-21  Richard Henderson  <rth@twiddle.net>
7621
7622         * misc/getauxval.c (__getauxval): Use unsigned long int.
7623         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7624         (getauxval): Use unsigned long int.
7625
7626 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7627
7628         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7629
7630 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7631
7632         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7633         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7634         __alignof__ (long double).
7635
7636 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7637
7638         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7639
7640 2012-05-20  Richard Henderson  <rth@twiddle.net>
7641
7642         * misc/getauxval.c: New file.
7643         * misc/sys/auxv.h: New file.
7644         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7645         (routines): Add getauxval.
7646         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7647         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7648         * elf/dl-sysdep.c (_dl_auxv): Remove.
7649         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7650         * elf/dl-support.c (_dl_auxv): New variable.
7651         (_dl_aux_init): Initialize it.
7652         * manual/startup.texi (Auxiliary Vector): New node.
7653         * sysdeps/generic/bits/hwcap.h: New file.
7654         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7655         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7656         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7657         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7658         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7659         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7661         Update.
7662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7664         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7665         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7666         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7667         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7668         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7669         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7670
7671 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7672
7673         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7674
7675 2012-05-19  David S. Miller  <davem@davemloft.net>
7676
7677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7678
7679 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7680
7681         [BZ #14123]
7682         * math/s_ccosh.c: Include <float.h>
7683         (__ccosh): Avoid internal overflow calculating sinh and cosh
7684         values before multiplying by sin and cos values.
7685         * math/s_ccoshf.c: Likewise.
7686         * math/s_ccoshl.c: Likewise.
7687         * math/s_csin.c: Likewise.
7688         * math/s_csinf.c: Likewise.
7689         * math/s_csinl.c: Likewise.
7690         * math/s_csinh.c: Likewise.
7691         * math/s_csinhf.c: Likewise.
7692         * math/s_csinhl.c: Likewise.
7693         * math/libm-test.inc (ccos_test): Add more tests.
7694         (ccosh_test): Likewise.
7695         (csin_test): Likewise.
7696         (csinh_test): Likewise.
7697         * sysdeps/i386/fpu/libm-test-ulps: Update.
7698         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7699
7700 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7701
7702         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7703         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7704
7705         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7706
7707 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7708
7709         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7710         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7711         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7712         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7713         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7714         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7715         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7716         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7717         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7718         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7719         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7720         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7721         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7722         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7723         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7724         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7725         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7726         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7727         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7728         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7729         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7730         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7731         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7732         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7733         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7734         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7735         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7736         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7737         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7738         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7739         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7740
7741 2012-05-18  Andreas Jaeger  <aj@suse.de>
7742
7743         * csu/.gitignore: Delete.
7744
7745 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7746
7747         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7748         (timex): Use __syscall_slong_t.
7749
7750 2012-05-18  Andreas Jaeger  <aj@suse.de>
7751             Carlos O'Donell  <carlos_odonell@mentor.com>
7752
7753         * manual/install.texi (Configuring and compiling): Update
7754         description about files modified in the source directory.
7755         * INSTALL: Regenerated.
7756
7757 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7758
7759         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7760         value.  Use "or" to set return value to -1.
7761         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7762         negate return value.
7763
7764 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7765
7766         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7767         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7768         failure if the compiler has Graphite support disabled.
7769         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7770         Likewise.
7771         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7772         CFLAGS-memmove.c): Likewise.
7773         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7774         Likewise.
7775
7776 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7777
7778         * sysdeps/x86_64/x32/_itoa.h: New file.
7779
7780         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7781         getdents system call only if kernel and user dirents have the
7782         same d_ino and d_off.
7783
7784         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7785         LLONG_MAX != LONG_MAX.
7786         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7787         (_fitoa_word): Likewise.
7788
7789         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7790         years.
7791         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7792         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7793         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7794
7795         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7796         include <bits/wordsize.h>.  Check __x86_64__ instead of
7797         __WORDSIZE.
7798         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7799         if __x86_64__ is defined.  Use anonymous union on fpstate.
7800
7801         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7802         anonymous union.
7803
7804 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7805
7806         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7807         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7808         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7809         Refer to _rtld_local_ro instead of _rtld_global_ro.
7810         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7811         Likewise.
7812         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7813         Likewise.
7814         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7815         Likewise.
7816         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7817         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7818         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7819
7820         * sysdeps/powerpc/powerpc32/dl-machine.c
7821         (__elf_machine_runtime_setup) [PROF]: Don't reference
7822         _dl_prof_resolve.
7823
7824 2012-05-18  Andreas Jaeger  <aj@suse.de>
7825
7826         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7827         function only available for GCCs before 3.4 since GCC 3.4
7828         introduced a builtin.
7829         (lrint): Likewise.
7830         (llrintf): Likewise.
7831         (llrint): Likewise.
7832         (fmaxf): Likewise.
7833         (fmax): Likewise.
7834         (fminf): Likewise.
7835         (fmin): Likewise.
7836         (rint): Likewise.
7837         (rintf): Likewise.
7838         (nearbyint): Likewise.
7839         (nearbyintf): Likewise.
7840         (ceil): Likewise.
7841         (ceilf): Likewise.
7842         (floor): Likewise.
7843         (floorf): Likewise.
7844
7845 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7846
7847         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7848         on both fields and cast pointer to __syscall_ulong_t.
7849
7850         * bits/types.h (__fsword_t): New type.
7851         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7852         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7853         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7854         (__FSWORD_T_TYPE): Likewise.
7855         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7856         (__FSWORD_T_TYPE): Likewise.
7857         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7858         (__FSWORD_T_TYPE): Likewise.
7859         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7860         (__FSWORD_T_TYPE): Likewise.
7861         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7862         __SWORD_TYPE with __fsword_t.
7863         (statfs64): Likewise.
7864
7865 2012-05-17  David S. Miller  <davem@davemloft.net>
7866
7867         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7868
7869 2012-05-17  Andreas Jaeger  <aj@suse.de>
7870
7871         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7872         warning.
7873
7874 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7875
7876         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7877
7878 2012-05-17  Andreas Jaeger  <aj@suse.de>
7879
7880         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7881         when it is used.
7882
7883 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7884
7885         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7886
7887 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7888
7889         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7890         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7891
7892 2012-05-17  Andreas Jaeger  <aj@suse.de>
7893             Carlos O'Donell  <carlos_odonell@mentor.com>
7894
7895         [BZ #14059]
7896         * sysdeps/x86_64/multiarch/init-arch.h
7897         (bit_YMM_Usable): Rename to...
7898         (bit_AVX_Usable): ... this.
7899         (bit_FMA4_Usable): New macro.
7900         (bit_XMM_state): New macro.
7901         (bit_YMM_state): New macro.
7902         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7903         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7904         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7905         (CPUID_OSXSAVE): New macro.
7906         (CPUID_AVX): New macro.
7907         (CPUID_FMA4): New macro.
7908         (index_YMM_Usable): Rename to...
7909         (index_AVX_Usable): ... this.
7910         (HAS_AVX): Use HAS_ARCH_FEATURE.
7911         (HAS_FMA4): Likewise.
7912         (HAS_YMM_USABLE): Remove.
7913         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7914         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7915         are present.
7916         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7917         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7918         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7919         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7920         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7921
7922 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7923
7924         * math/libm-test.c: Support platforms without multiple rounding modes.
7925         * math/bug-nextafter.c: Support platforms without FP exceptions.
7926         * math/bug-nexttoward.c: Likewise.
7927         * math/test-fenv.c: Likewise.
7928         * math/test-misc.c: Likewise.
7929         * stdlib/bug-getcontext.c: Likewise.
7930
7931 2012-05-17  Andreas Jaeger  <aj@suse.de>
7932
7933         * manual/examples/search.c (critter_cmp): Change signature to
7934         avoid warnings.
7935         * manual/string.texi (Collation Functions): Likewise.
7936
7937 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7938
7939         * bits/types.h: Fold copyright years.
7940         * bits/typesizes.h: Likewise.
7941         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7942         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7943         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7944         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7945         * time/time.h: Likewise.
7946
7947 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7948
7949         [BZ #208]
7950         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7951         in instead of returning them.  Return void.
7952         (__libc_mallinfo): Accumulate over all arenas.
7953         (__malloc_stats): Adjust for change in int_mallinfo interface.
7954
7955 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7956
7957         [BZ #10375]
7958         * configure.in (NM): Add AC_CHECK_TOOL for it.
7959         (libc_extra_cflags): New substituted variable.
7960         Check for -fstack-protector being used implicitly.
7961         * configure: Regenerated.
7962         * config.make.in (config-extra-cflags): New variable,
7963         gets @libc_extra_cflags@.
7964         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7965
7966         [BZ #10375]
7967         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7968         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7969         * configure: Regenerated.
7970         * config.make.in (CPPUNDEFS): New substituted variable.
7971         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7972         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7973         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7974
7975 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7976
7977         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7978         (mq_attr): Use __syscall_slong_t.
7979
7980 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7981
7982         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7983         Check __x86_64__ instead of __WORDSIZE.
7984         (_STAT_VER_LINUX): Likewise.
7985         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7986         __syscall_ulong_t and __syscall_slong_t.
7987         (stat64): Likewise.
7988
7989 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7990
7991         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7992
7993 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7994
7995         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7996
7997 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7998
7999         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
8000         __syscall_ulong_t.
8001
8002         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
8003         include <bits/wordsize.h>.  Check __x86_64__ instead of
8004         __WORDSIZE.
8005         (greg_t): Use "__extension__ long long int" if __x86_64__ is
8006         defined.
8007         (mcontext_t): Replace "unsigned long" with "unsigned long long".
8008
8009         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
8010         include <bits/wordsize.h>.  Check __x86_64__ instead of
8011         __WORDSIZE.
8012         (user_regs_struct): Use "__extension__ unsigned long long"
8013         instead of "unsigned long" if __x86_64__ is defined.
8014         (user): Likewise.  Pad after pointer field if __ILP32__ is
8015         defined.
8016
8017 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
8018
8019         * configure.in (makeinfo): Require version 4.5 or later.  Allow
8020         versions 5 to 9.
8021         * configure: Regenerated.
8022         * manual/install.texi (texinfo): Increase version requirement to
8023         4.5 or later.
8024         * INSTALL: Regenerated.
8025
8026         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
8027
8028 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8029
8030         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
8031
8032         * sysdeps/x86_64/x32/ffs.c: New file.
8033
8034         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
8035         __syscall_ulong_t.
8036         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
8037         defined.  Use __syscall_ulong_t.
8038         (shminfo): Use __syscall_ulong_t.
8039         (shm_info): Likewise.
8040
8041         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
8042         __syscall_ulong_t.
8043
8044         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
8045         <bits/wordsize.h>.
8046         (msgqnum_t): Use __syscall_ulong_t.
8047         (msglen_t): Likewise.
8048         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
8049         __syscall_ulong_t.
8050
8051         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
8052         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8053
8054         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
8055
8056         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
8057         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
8058
8059         * sysvipc/sys/msg.h (msgbuf): Replace long int with
8060         __syscall_slong_t.
8061
8062         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
8063         include <bits/wordsize.h>.  Check __x86_64__ instead of
8064         __WORDSIZE.
8065
8066         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
8067         "unsigned long long int" if __x86_64__ is defined.
8068         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
8069
8070         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
8071         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8072         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
8073
8074         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
8075         <stdint.h>.
8076         (GET_PC): Cast to uintptr_t first.
8077         (GET_FRAME): Likewise.
8078         (GET_STACK): Likewise.
8079
8080         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
8081         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
8082         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
8083         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
8084         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
8085         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
8086         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
8087         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
8088         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8089         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
8090         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
8091         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
8092         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8093         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
8094         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
8095         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
8096         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8097         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8098         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8099         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8100         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8101         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8102         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8103         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8104         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8105         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8106         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8107         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8108         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8109
8110 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8111
8112         * Makerules (+depfiles): Also collect depfiles from .oS in
8113         $(extra-objs).
8114         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8115         .oS, $(libnldbl-routines)).
8116
8117         * Makerules (native-compile-mkdep-flags): Define.
8118         * sunrpc/Makefile (extra-objs): Add $(addprefix
8119         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8120         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8121         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8122         calling $(make-target-directory).
8123
8124 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8125
8126         * bits/types.h (__snseconds_t): Removed.
8127         * time/time.h (struct timespec): Replace __snseconds_t with
8128         __syscall_slong_t.
8129         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8130         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8131         Likewise.
8132         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8133         (__SNSECONDS_T_TYPE): Likewise.
8134         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8135         (__SNSECONDS_T_TYPE): Likewise.
8136         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8137         (__SNSECONDS_T_TYPE): Likewise.
8138
8139 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8140
8141         * sysdeps/mach/hurd/bits/typesizes.h
8142         (__SYSCALL_SLONG_TYPE): New macro.
8143         (__SYSCALL_ULONG_TYPE): Likewise.
8144
8145 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8146
8147         * bits/types.h (__syscall_slong_t): New type.
8148         (__syscall_ulong_t): Likewise.
8149
8150         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8151         (__SYSCALL_ULONG_TYPE): Likewise.
8152         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8153         (__SYSCALL_SLONG_TYPE): Likewise.
8154         (__SYSCALL_ULONG_TYPE): Likewise.
8155         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8156         (__SYSCALL_SLONG_TYPE): Likewise.
8157         (__SYSCALL_ULONG_TYPE): Likewise.
8158         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8159         (__SYSCALL_SLONG_TYPE): Likewise.
8160         (__SYSCALL_ULONG_TYPE): Likewise.
8161
8162 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8163
8164         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8165         Add sigaltstack-offsets.sym.
8166         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8167         <sigaltstack-offsets.h>.
8168         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8169         longjmp_msg pointer.
8170         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8171         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8172         signal stack.
8173         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8174
8175 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8176
8177         * elf/stackguard-macros.h: Remove file.
8178         * sysdeps/generic/stackguard-macros.h: New file.
8179         * sysdeps/i386/stackguard-macros.h: Likewise.
8180         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8181         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8182         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8183         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8184         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8185         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8186         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8187         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8188         <elf/stackguard-macros.h>.
8189
8190         [BZ #14109]
8191         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8192         __aligned__ in attribute.
8193         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8194         (gregset_t): Likewise.
8195
8196 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8197
8198         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8199         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8200         * sysdeps/x86_64/x32/Implies-after: New file.
8201
8202 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8203
8204         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8205         and access return value for _dl_profile_fixup.  Use R10_LP to
8206         load frame size.
8207
8208 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8209
8210         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8211
8212 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8213
8214         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8215         * sysdeps/x86_64/x32/sysdep.h: New file.
8216
8217 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8218
8219         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8220         * sysdeps/x86_64/setjmp.S: Likewise.
8221
8222 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8223
8224         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8225         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8226         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8227         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8228         remove unused global constant.
8229
8230 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8231
8232         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8233         include of <not-cancel.h>.
8234
8235 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8236
8237         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8238
8239 2012-05-15  Jeff Law  <law@redhat.com>
8240             Andreas Jaeger  <aj@suse.de>
8241
8242         [BZ #13594]
8243         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8244         out from...
8245         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8246         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8247         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8248         code changing __hst_map_handle.map.
8249
8250 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8251
8252         * configure.in (sysnames): Look for Implies-before and Implies-after
8253         files.
8254         * configure: Regenerated.
8255
8256 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8257
8258         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8259         8-byte data alignment with LP_SIZE alignment.
8260
8261 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8262
8263         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8264         into R10_LP.
8265
8266 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8267
8268         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8269
8270 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8271
8272         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8273         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8274         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8275         Likewise.
8276         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8277
8278 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8279
8280         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8281         (stackinfo_sub_sp): Likewise.
8282
8283 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8284
8285         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8286         RAX_LP.
8287
8288 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8289
8290         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8291         into R*_LP.
8292
8293 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8294
8295         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8296         sizes into R*_LP.
8297
8298 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8299
8300         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8301
8302 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8303
8304         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8305         into R11_LP and load __x86_64_shared_cache_size_half into
8306         R8_LP.
8307
8308 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8309
8310         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8311         R8_LP.
8312
8313 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8314
8315         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8316         logb for POWER7.
8317         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8318         logbf for POWER7.
8319         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8320         logbl for POWER7.
8321         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8322         powerpc32/power7/fpu/s_logb.c via #include.
8323         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8324         powerpc32/power7/fpu/s_logbf.c via #include.
8325         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8326         powerpc32/power7/fpu/s_logbl.c via #include.
8327
8328 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8329
8330         * README.libm: Remove file.
8331
8332 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8333
8334         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8335         count for x32.  Use R*_LP and omit operand-size suffix.
8336
8337 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8338
8339         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8340         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8341         * sysdeps/x86_64/x32/shlib-versions: New file.
8342
8343 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8344
8345         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8346         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8347         Use _dl_fatal_printf instead.
8348
8349 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8350
8351         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8352         set if not set by the user.  Do not allow for being unset.
8353         * sysdeps/unix/sysv/linux/configure: Regenerated.
8354
8355 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8356
8357         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8358         the `q' suffix from lea and replace .quad with ASM_ADDR.
8359
8360 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8361
8362         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8363         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8364         instead of $17.
8365         (PTR_DEMANGLE): Likewise.
8366
8367 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8368
8369         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8370         (LP_OP): Likewise.
8371         (ASM_ADDR): Likewise.
8372         (RAX_LP): Likewise.
8373         (RBP_LP): Likewise.
8374         (RBX_LP): Likewise.
8375         (RCX_LP): Likewise.
8376         (RDI_LP): Likewise.
8377         (RSI_LP): Likewise.
8378         (RSP_LP): Likewise.
8379         (R8_LP): Likewise.
8380         (R9_LP): Likewise.
8381         (R10_LP): Likewise.
8382         (R10_LP): Likewise.
8383         (R11_LP): Likewise.
8384         (R12_LP): Likewise.
8385         (R13_LP): Likewise.
8386         (R14_LP): Likewise.
8387         (R15_LP): Likewise.
8388
8389 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8390
8391         * sysdeps/x86_64/x32/dl-machine.h: New file.
8392
8393 2012-05-14  Andreas Jaeger  <aj@suse.de>
8394
8395         * manual/Makefile (subdir): Remove export of subdir.
8396         (all): Remove target.
8397         (.PHONY): Remove all from list.
8398         (mkinstalldirs): Remove.
8399         (.PHONY): Remove installdirs from list.
8400         ($(inst_infodir)/libc.info): Use make-target-directory.
8401         (installdirs): Remove.
8402         (subdir_%): Remove.
8403         (glibc-targets): Remove.
8404         (lib): Remove.
8405         (stubs): Remove.
8406         ($(objpfx)stubs ../po/manual.pot): Remove.
8407         ($(objpfx)stamp%): Remove.
8408         (make-target-directory): Remove.
8409         (subdir_install): Remove.
8410         (routines): Remove.
8411         (aux): Remove.
8412         (sources): Remove.
8413         (objects): Remove.
8414         (headers): Remove.
8415
8416         [BZ #13750]
8417         * manual/.gitignore: Remove, it's not needed anymore.
8418         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8419         all files in it.
8420         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8421         directory.
8422         (texis): Renamed to $(objpfx)texis.
8423         (texis-path): New, contains path to generated files.
8424         (chapters.%): Use texis-path for complete path, add extra argument
8425         libc-texinfo.sh.
8426         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8427         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8428         (summary,texi, stamp-summary): Use complete path of
8429         files. Generate files in build dir.
8430         (dir-add.texi): Build in build dir.
8431         (libm-err.texi,stamp-libm-err): Likewise.
8432         (version.texi, stamp-version): Likewise.
8433         (.%c.texi): Likewise.
8434         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8435         (mostlyclean): Remove target.
8436         (realclean): Remove target.
8437         (generated): Add new variable with contents from mostlyclean and
8438         realclean, remove entries duplicated in common-mostlyclean, add
8439         stamp-libm-err and stamp-version.
8440         (generated-dirs): Add libc directory.
8441         ($(inst_infodir)/libc.info): Install files from build dir.
8442
8443         * manual/install.texi (Configuring and compiling): Adjust since
8444         the info files are not part of the tar ball anymore.
8445
8446 2012-05-14  Andreas Jaeger  <aj@suse.de>
8447
8448         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8449         variable.
8450
8451 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8452
8453         [BZ #13717]
8454         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8455         to 2.2.0 where earlier.
8456         * sysdeps/unix/sysv/linux/configure: Regenerated.
8457         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8458         Remove conditional code.
8459         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8460         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8461         Remove conditional code.
8462         [!__NR_lchown]: Likewise.
8463         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8464         [__NR_lchown]: Likewise.
8465         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8466         comment referencing __ASSUME_LCHOWN_SYSCALL.
8467         * sysdeps/unix/sysv/linux/i386/sigaction.c
8468         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8469         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8470         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8471         Remove conditional code.
8472         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8473         (__protocol_available): Remove #if 0 code.
8474         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8475         conditional code.
8476         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8477         * sysdeps/unix/sysv/linux/kernel-features.h
8478         (__ASSUME_GETCWD_SYSCALL): Don't define.
8479         (__ASSUME_REALTIME_SIGNALS): Likewise.
8480         (__ASSUME_PREAD_SYSCALL): Likewise.
8481         (__ASSUME_PWRITE_SYSCALL): Likewise.
8482         (__ASSUME_POLL_SYSCALL): Likewise.
8483         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8484         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8485         non-SPARC.
8486         (__ASSUME_SIOCGIFNAME): Don't define.
8487         (__ASSUME_MSG_NOSIGNAL): Likewise.
8488         (__ASSUME_SENDFILE): Define unconditionally.
8489         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8490         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8491         conditional code.
8492         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8493         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8494         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8495         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8496         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8497         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8498         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8499         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8500         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8501         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8502         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8503         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8504         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8506         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8507         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8508         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8509         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8510         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8512         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8513         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8515         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8516         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8518         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8519         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8521         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8522         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8523         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8524         Remove conditional code.
8525         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8526         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8527         Remove conditional code.
8528         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8529         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8530         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8531         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8532         Remove conditional code.
8533         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8534         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8535         Remove conditional code.
8536         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8537         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8538         Remove conditional code.
8539         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8540         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8541         Remove conditional code.
8542         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8543         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8544         Remove conditional code.
8545         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8546         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8547         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8548         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8549         * sysdeps/unix/sysv/linux/sigaction.c
8550         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8551         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8552         * sysdeps/unix/sysv/linux/sigpending.c
8553         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8554         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8555         * sysdeps/unix/sysv/linux/sigprocmask.c
8556         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8557         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8558         * sysdeps/unix/sysv/linux/sigsuspend.c
8559         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8560         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8561         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8562         (__libc_missing_rt_sigs): Remove.
8563         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8564         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8565         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8566         Remove conditional code.
8567         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8568         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8569         return 1.
8570         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8571         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8572         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8573         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8574
8575 2012-05-14  Andreas Jaeger  <aj@suse.de>
8576
8577         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8578         it's not used in glibc.
8579         (__coshm1): Likewise.
8580         (__acosh1p): Likewise.
8581         (__sgn): Likewise.
8582
8583         * manual/string.texi (Copying and Concatenation): Add missing
8584         variable in concat example.
8585         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8586
8587 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8588
8589         [BZ #14103]
8590         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8591         __builtin_clzl with __builtin_clzll.
8592
8593 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8594
8595         [BZ #14104]
8596         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8597         libc_freeres_ptr.
8598
8599 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8600
8601         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8602         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8603         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8604         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8605
8606 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8607
8608         * NEWS: Update ia64 info.
8609
8610 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8611
8612         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8613         used as bcopy.
8614
8615 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8616
8617         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8618         * sysdeps/unix/syscalls.list (dup3): Likewise.
8619         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8620         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8621
8622 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8623
8624         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8625         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8626
8627 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8628
8629         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8630         thread pointer.
8631         (TLS_IE): Use mov/add instead of movq/addq to load thread
8632         pointer.
8633         (TLS_GD_PREFIX): New.
8634         (TLS_GD): Use it.
8635
8636 2012-05-11  David S. Miller  <davem@davemloft.net>
8637
8638         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8639         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8640         (_FPU_SETCW): Likewise.
8641
8642 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8643
8644         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8645         is 32-byte aligned.
8646
8647 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8648
8649         [BZ #11837]
8650         * iconvdata/gb18030.c: Update tables.
8651         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8652         characters specially.
8653         (BODY for TO_LOOP): Add encoding of missing ranges.
8654
8655 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8656
8657         [BZ #13673]
8658         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8659         * sysdeps/mach/hurd/dup3.c: Likewise.
8660         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8661         * sysdeps/powerpc/memmove.c:: Likewise.
8662
8663 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8664
8665         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8666         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8667
8668 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8669
8670         * elf/elf.h (R_X86_64_RELATIVE64): New.
8671         (R_X86_64_NUM): Updated.
8672         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8673         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8674         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8675         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8676         tst-quad1pie tst-quad2pie
8677         (modules-names): Add tst-quadmod1 tst-quadmod2.
8678         ($(objpfx)tst-quad1): New dependency.
8679         ($(objpfx)tst-quad2): Likewise.
8680         ($(objpfx)tst-quad1pie): Likewise.
8681         ($(objpfx)tst-quad2pie): Likewise.
8682         * sysdeps/x86_64/tst-quad1.c: New file.
8683         * sysdeps/x86_64/tst-quad1pie.c: New file.
8684         * sysdeps/x86_64/tst-quad2.c: Likewise.
8685         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8686         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8687         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8688         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8689         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8690
8691 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8692
8693         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8694         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8695         * streams/stropts.h (t_scalar_t): Define type.
8696
8697         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8698         (_PATH_PRESERVE): Set to "/var/lib".
8699         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8700
8701         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8702         instead of int.
8703
8704         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8705         if __dir_mkfile succeeded.
8706
8707         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8708         checking for _hurd_dtablesize.  Unlock it right after having
8709         finished _hurd_dtable allocation.
8710
8711 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8712
8713         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8714         * sysdeps/mach/hurd/configure: Regenerated.
8715         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8716         special-casing to...
8717         * sysdeps/gnu/configure.in: ... this new file.
8718         * sysdeps/unix/sysv/linux/configure: Regenerated.
8719         * sysdeps/gnu/configure: New generated file.
8720
8721         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8722         for Linux: use nsec instead of usec, as well as:
8723         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8724         members of type struct timespec.
8725         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8726         New macros.
8727         (struct stat64): Likewise.
8728         (_STATBUF_ST_NSEC): New macro.
8729         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8730
8731         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8732         __strtoul_internal rather than strtoul.
8733
8734 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8735
8736         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8737         and reject them.
8738
8739 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8740
8741         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8742         which preserves existing values.
8743         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8744
8745 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8746
8747         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8748         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8749         greater than FD_SETSIZE.
8750
8751 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8752
8753         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8754         allocated, call __vm_protect to finish enabling the existing space, and
8755         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8756         allocate the remainder.
8757
8758 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8759
8760         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8761         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8762
8763 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8764
8765         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8766         sysdeps/mach/hurd/readlink.c.
8767
8768         * posix/tst-sysconf.c (posix_options): Only use
8769         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8770         _POSIX_SYNCHRONIZED_IO when they are defined
8771         * sysdeps/mach/hurd/bits/posix_opt.h:
8772         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8773         (_XOPEN_REALTIME): Undefine macro.
8774         (_XOPEN_REALTIME_THREADS): Undefine macro.
8775         (_XOPEN_SHM): Undefine macro.
8776         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8777         macro to -1.
8778         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8779         macro to -1.
8780         (_POSIX_ASYNC_IO): Undefine macro.
8781         (_POSIX_PRIORITIZED_IO): Undefine macro.
8782         (_POSIX_SPIN_LOCKS): Define macro to -1.
8783
8784         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8785         SA_NODEFER, SA_RESETHAND.
8786         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8787         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8788         F_DUPFD_CLOEXEC.
8789
8790 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8791
8792         * elf/Makefile (pldd-modules): Define unconditionally.
8793
8794 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8795
8796         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8797
8798 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8799
8800         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8801         Return ENOENT when name is empty.
8802         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8803
8804 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8805
8806         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8807
8808         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8809
8810 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8811
8812         Fix mlock in all cases except non-readable pages.
8813         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8814         instead of VM_PROT_ALL as parameter to __vm_wire function.
8815
8816         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8817         (__mkdir): When path is `/', just fail with EEXIST.
8818         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8819
8820 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8821
8822         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8823         <sys/uio.h> (for writev).
8824         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8825         and <sys/param.h> (for MIN).
8826
8827 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8828
8829         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8830         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8831         if interrupted.
8832
8833 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8834
8835         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8836         Depend on against $(link-rpcuserlibs).
8837
8838 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8839
8840         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8841         (__libc_stack_end): Do not use attribute_relro.
8842         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8843         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8844         to libthread-provided value.
8845         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8846         attribute_relro.
8847
8848 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8849
8850         [BZ #3748]
8851         * bits/libc-lock.h (__libc_once_get): New macro.
8852         * sysdeps/mach/bits/libc-lock.h: Likewise.
8853         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8854         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8855         instead of using implementation details.
8856
8857         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8858         * libio/freopen.c: Likewise.
8859         * libio/freopen64.c: Likewise.
8860         * misc/syslog.c: Likewise.
8861         * nscd/connections.c: Likewise.
8862         * nscd/netgroupcache.c: Likewise.
8863         * sysdeps/posix/getcwd.c: Likewise.
8864
8865 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8866
8867         * math/w_ilogbf.c: Add #include <limits.h>.
8868
8869 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8870
8871         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8872         path instead of returning without unlocking.
8873
8874         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8875         immediate-write ioctls.
8876         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8877
8878 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8879
8880         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8881         __builtin_frame_address instead of making assumptions about the
8882         location of the return address relative to DATA.  Force early load of
8883         the return address.
8884         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8885         __builtin_frame_address.
8886
8887         dup3 for GNU Hurd.
8888         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8889         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8890         implement dup3 and do some further code clean-ups.
8891         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8892         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8893
8894 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8895
8896         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8897
8898         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8899         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8900         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8901         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8902         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8903         d->port.lock.
8904
8905         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8906         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8907         when handler == SIG_ERR, not when handler != SIG_ERR.
8908
8909 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8910
8911         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8912         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8913         definitions.
8914
8915         accept4 for GNU Hurd.
8916         * include/sys/socket.h (__libc_accept4): New prototype.
8917         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8918         to implement __libc_accept4.
8919         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8920         __libc_accept4.
8921         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8922
8923         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8924         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8925         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8926         signal-defines.sym.
8927
8928 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8929
8930         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8931
8932 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8933
8934         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8935         assertion on O_CLOEXEC flag.
8936         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8937         * hurd/intern-fd.c: Likewise.
8938         * hurd/port2fd.c: Likewise.
8939
8940 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8941
8942         [BZ #3906]
8943         * bits/in.h (IPV6_PKTINFO): Define new macro.
8944         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8945
8946 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8947
8948         [BZ #13954]
8949         [BZ #13955]
8950         [BZ #13956]
8951         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8952         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8953         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8954         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8955         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8956         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8957         * math/libm-test.inc (logb_test) : Additional logb tests.
8958
8959 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8960             Andreas Jaeger  <aj@suse.de>
8961
8962         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8963         * configure: Regenerated.
8964         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8965         * config.make.in (link-obsolete-rpc): New substituted variable.
8966         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8967         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8968         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8969         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8970         so that libc.a contains the symbols.
8971         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8972         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8973         * sunrpc/auth_none.c: Likewise.
8974         * sunrpc/auth_unix.c: Likewise.
8975         * sunrpc/authdes_prot.c: Likewise.
8976         * sunrpc/authuxprot.c: Likewise.
8977         * sunrpc/clnt_gen.c: Likewise.
8978         * sunrpc/clnt_perr.c: Likewise.
8979         * sunrpc/clnt_raw.c: Likewise.
8980         * sunrpc/clnt_simp.c: Likewise.
8981         * sunrpc/clnt_tcp.c: Likewise.
8982         * sunrpc/clnt_udp.c: Likewise.
8983         * sunrpc/clnt_unix.c: Likewise.
8984         * sunrpc/des_crypt.c: Likewise.
8985         * sunrpc/des_soft.c: Likewise.
8986         * sunrpc/get_myaddr.c: Likewise.
8987         * sunrpc/key_call.c: Likewise.
8988         * sunrpc/key_prot.c: Likewise.
8989         * sunrpc/netname.c: Likewise.
8990         * sunrpc/pm_getmaps.c: Likewise.
8991         * sunrpc/pm_getport.c: Likewise.
8992         * sunrpc/pmap_clnt.c: Likewise.
8993         * sunrpc/pmap_prot.c: Likewise.
8994         * sunrpc/pmap_prot2.c: Likewise.
8995         * sunrpc/pmap_rmt.c: Likewise.
8996         * sunrpc/publickey.c: Likewise.
8997         * sunrpc/rpc_cmsg.c: Likewise.
8998         * sunrpc/rpc_common.c: Likewise.
8999         * sunrpc/rpc_dtable.c: Likewise.
9000         * sunrpc/rpc_prot.c: Likewise.
9001         * sunrpc/rpc_thread.c: Likewise.
9002         * sunrpc/rtime.c: Likewise.
9003         * sunrpc/svc.c: Likewise.
9004         * sunrpc/svc_auth.c: Likewise.
9005         * sunrpc/svc_raw.c: Likewise.
9006         * sunrpc/svc_run.c: Likewise.
9007         * sunrpc/svc_tcp.c: Likewise.
9008         * sunrpc/svc_udp.c: Likewise.
9009         * sunrpc/svc_unix.c: Likewise.
9010         * sunrpc/svcauth_des.c: Likewise.
9011         * sunrpc/xcrypt.c: Likewise.
9012         * sunrpc/xdr.c: Likewise.
9013         * sunrpc/xdr_array.c: Likewise.
9014         * sunrpc/xdr_float.c: Likewise.
9015         * sunrpc/xdr_intXX_t.c: Likewise.
9016         * sunrpc/xdr_mem.c: Likewise.
9017         * sunrpc/xdr_rec.c: Likewise.
9018         * sunrpc/xdr_ref.c: Likewise.
9019         * sunrpc/xdr_sizeof.c: Likewise.
9020         * sunrpc/xdr_stdio.c: Likewise.
9021
9022 2012-05-10  Roland McGrath  <roland@hack.frob.com>
9023
9024         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
9025         change.  Update copyright years.
9026
9027 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9028
9029         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
9030
9031 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
9032             Joseph Myers  <joseph@codesourcery.com>
9033             Paul Pluzhnikov  <ppluzhnikov@google.com>
9034
9035         [BZ #14012]
9036         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
9037         requiring rpcgen.
9038         [cross-compiling] (extra-libs): Likewise.
9039         [cross-compiling] (extra-libs-others): Likewise.
9040         [cross-compiling] (librpcsvc-routines): Likewise.
9041         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
9042         [cross-compiling] (omit-deps): Likewise.
9043         (sunrpc-CPPFLAGS): New variable.
9044         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
9045         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
9046         (cross-rpcgen-objs): New variable.
9047         (extra-objs): Append $(cross-rpcgen-objs).
9048         ($(cross-rpcgen-objs)): New rule.
9049         ($(objpfx)cross-rpcgen): Likewise.
9050         (rpcgen-cmd): Define to use $(built-program-file).  Expand
9051         comment.
9052         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
9053         ($(objpfx)x%.stmp): Likewise.
9054         * sunrpc/proto.h [IS_IN_build] (_): Define.
9055         [IS_IN_build] (_libc_intl_domainname): Likewise.
9056
9057 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9058
9059         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
9060         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
9061         and R_X86_64_TPOFF64.
9062
9063 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9064
9065         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
9066         sysdeps/unix/sysv/syscalls.list.
9067         (stime): Likewise.
9068         (utime): Likewise.
9069         * sysdeps/unix/sysv/syscalls.list: Remove file.
9070
9071 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
9072
9073         [BZ #3440]
9074         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
9075         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
9076         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
9077         (__LC_IDENTIFICATION): Make these macros useful in #if
9078         expressions, as required by C99.
9079
9080 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
9081
9082         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
9083         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
9084         after this.
9085
9086 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9087
9088         * stdlib/longlong.h: Updated from GCC.
9089
9090 2012-05-09  Andreas Jaeger  <aj@suse.de>
9091
9092         * nscd/nscd.c (run_modes): Make named enum, reorder so that
9093         default is first entry.
9094         (run_mode): Set type.
9095         (main): Remove informal message about syslog.
9096         (options): Fix typo.
9097
9098         [BZ #14053]
9099         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9100         to asm.
9101         (lrint): Likewise.
9102         (llrintf): Likewise.
9103         (llrint): Likewise.
9104         (rint): Likewise.
9105         (rintf): Likewise.
9106         (nearbyint): Likewise.
9107         (nearbyintf): Likewise.
9108
9109 2012-05-09  Andreas Jaeger  <aj@suse.de>
9110             Pedro Alves  <palves@redhat.com>
9111
9112         * nscd/nscd.c (run_mode): Use enum.
9113         (main): Cleanup coding style issue.
9114
9115 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9116             Andreas Jaeger  <aj@suse.de>
9117
9118         * nscd/nscd.c (go_background): Replaced with...
9119         (run_mode): ... this.
9120         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9121         (options): Add -F --foreground.
9122         (main): Implement it.
9123         (parse_opt): Parse it.
9124
9125 2012-05-09  Andreas Jaeger  <aj@suse.de>
9126
9127         [BZ #14083]
9128         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9129         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9130         -Wconversion warning.
9131         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9132         Likewise.
9133
9134 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9135
9136         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9137         == 0.
9138         (LC_ALL): Use macro-int-constant.
9139         (LC_COLLATE): Likewise.
9140         (LC_CTYPE): Likewise.
9141         (LC_MESSAGES): Likewise.
9142         (LC_MONETARY): Likewise.
9143         (LC_NUMERIC): Likewise.
9144         (LC_TIME): Likewise.
9145         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9146         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9147         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9148         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9149         Specify type.
9150         [C99-based standards] (float_t): Expect type.
9151         [C99-based standards] (double_t): Expect type.
9152         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9153         type.
9154         [C99-based standards] (HUGE_VALL): Likewise.
9155         [C99-based standards] (INFINITY): Likewise.
9156         [C99-based standards] (NAN): Likewise.
9157         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9158         [C99-based standards] (FP_NAN): Likewise.
9159         [C99-based standards] (FP_NORMAL): Likewise.
9160         [C99-based standards] (FP_SUBNORMAL): Likewise.
9161         [C99-based standards] (FP_ZERO): Likewise.
9162         [C99-based standards] (FP_FAST_FMA): Use
9163         optional-macro-int-constant.  Specify type.  Require == 1.
9164         [C99-based standards] (FP_FAST_FMAF): Likewise.
9165         [C99-based standards] (FP_FAST_FMAL): Likewise.
9166         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9167         [C99-based standards] (FP_ILOGBNAN): Likewise.
9168         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9169         Specify type.
9170         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9171         [C99-based standards] (math_errhandling): Specify type.
9172         [ISO99 || ISO11] (signgam): Do not allow.
9173         [non-C99-based standards] (copysignf): Do not allow.
9174         [non-C99-based standards] (exp2f): Likewise.
9175         [non-C99-based standards] (log2f): Likewise.
9176         [non-C99-based standards] (modff): Allow.
9177         [non-C99-based standards] (erff): Do not allow.
9178         [non-C99-based standards] (erfcf): Likewise.
9179         [non-C99-based standards] (gammaf): Likewise.
9180         [non-C99-based standards] (hypotf): Likewise.
9181         [non-C99-based standards] (j0f): Likewise.
9182         [non-C99-based standards] (j1f): Likewise.
9183         [non-C99-based standards] (jnf): Likewise.
9184         [non-C99-based standards] (lgammaf): Likewise.
9185         [non-C99-based standards] (tgammaf): Likewise.
9186         [non-C99-based standards] (y0f): Likewise.
9187         [non-C99-based standards] (y1f): Likewise.
9188         [non-C99-based standards] (ynf): Likewise.
9189         [non-C99-based standards] (isnanf): Likewise.
9190         [non-C99-based standards] (acoshf): Likewise.
9191         [non-C99-based standards] (asinhf): Likewise.
9192         [non-C99-based standards] (atanhf): Likewise.
9193         [non-C99-based standards] (cbrtf): Likewise.
9194         [non-C99-based standards] (expm1f): Likewise.
9195         [non-C99-based standards] (ilogbf): Likewise.
9196         [non-C99-based standards] (log1pf): Likewise.
9197         [non-C99-based standards] (logbf): Likewise.
9198         [non-C99-based standards] (nextafterf): Likewise.
9199         [non-C99-based standards] (remainderf): Likewise.
9200         [non-C99-based standards] (rintf): Likewise.
9201         [non-C99-based standards] (scalbf): Likewise.
9202         [non-C99-based standards] (copysignl): Likewise.
9203         [non-C99-based standards] (exp2l): Likewise.
9204         [non-C99-based standards] (log2l): Likewise.
9205         [non-C99-based standards] (modfl): Allow.
9206         [non-C99-based standards] (erfl): Do not allow.
9207         [non-C99-based standards] (erfcl): Likewise.
9208         [non-C99-based standards] (gammal): Likewise.
9209         [non-C99-based standards] (hypotl): Likewise.
9210         [non-C99-based standards] (j0l): Likewise.
9211         [non-C99-based standards] (j1l): Likewise.
9212         [non-C99-based standards] (jnl): Likewise.
9213         [non-C99-based standards] (lgammal): Likewise.
9214         [non-C99-based standards] (tgammal): Likewise.
9215         [non-C99-based standards] (y0l): Likewise.
9216         [non-C99-based standards] (y1l): Likewise.
9217         [non-C99-based standards] (ynl): Likewise.
9218         [non-C99-based standards] (isnanl): Likewise.
9219         [non-C99-based standards] (acoshl): Likewise.
9220         [non-C99-based standards] (asinhl): Likewise.
9221         [non-C99-based standards] (atanhl): Likewise.
9222         [non-C99-based standards] (cbrtl): Likewise.
9223         [non-C99-based standards] (expm1l): Likewise.
9224         [non-C99-based standards] (ilogbl): Likewise.
9225         [non-C99-based standards] (log1pl): Likewise.
9226         [non-C99-based standards] (logbl): Likewise.
9227         [non-C99-based standards] (nextafterl): Likewise.
9228         [non-C99-based standards] (remainderl): Likewise.
9229         [non-C99-based standards] (rintl): Likewise.
9230         [non-C99-based standards] (scalbl): Likewise.
9231         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9232         [non-C99-based standards] (FP_*): Do not allow.
9233         [C99-based standards] (FP_*): Change to
9234         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9235         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9236         allow.
9237         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9238         (SIG_ERR): Likewise.
9239         [X/Open-based standards] (SIG_HOLD): Likewise.
9240         (SIG_IGN): Likewise.
9241         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9242         positive value.
9243         (SIGFPE): Likewise.
9244         (SIGILL): Likewise.
9245         (SIGINT): Likewise.
9246         (SIGSEGV): Likewise.
9247         (SIGTER): Likewise.
9248         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9249         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9250         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9251         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9252         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9253         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9254         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9255         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9256         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9257         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9258         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9259         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9260         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9261         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9262         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9263         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9264         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9265         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9266         [X/Open-based standards] (SIGTRAP): Likewise.
9267         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9268         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9269         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9270         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9271         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9272         allow.
9273
9274 2012-05-08  Ian Wienand  <ianw@vmware.com>
9275
9276         [BZ #14080]
9277         * time/tzset.c (__tzset_parse_tz): Update default rules for
9278         daylight time changes in the Energy Policy Act of 2005.
9279
9280 2012-05-09  Andreas Jaeger  <aj@suse.de>
9281
9282         [BZ #13983]
9283         * elf/ldconfig.c (parse_conf): Change string to make clear that
9284         ldconfig only issued a warning if ld.so.conf does not exist.
9285
9286 2012-05-08  David S. Miller  <davem@davemloft.net>
9287
9288         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9289         movxtod instead of popping the value on the stack.
9290
9291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9292
9293 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9294
9295         * config.h.in: Add HAVE_ARM_PCS_VFP.
9296
9297 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9298
9299         [BZ #13979]
9300         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9301         checking but the checks are disabled for any reason.
9302
9303 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9304
9305         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9306         and ELF64_R_TYPE with ELFW(R_TYPE).
9307
9308 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9309
9310         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9311         (ulimit): Likewise.
9312
9313         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9314         (settimeofday): Likewise.
9315
9316 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9317
9318         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9319         a struct th_u2 inside the union, and move tu_block/tu_code into
9320         a new th_u3 union of tu_block/tu_code inside of that.  Move
9321         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9322         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9323         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9324         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9325         (th_stuff): Change to th_u1.tu_stuff.
9326         (th_data): Define.
9327         (th_msg): Change to th_u1.th_u2.tu_data.
9328
9329 2012-05-07  David S. Miller  <davem@davemloft.net>
9330
9331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9332
9333         [BZ #14074]
9334         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9335         (SETUP_PIC_REG): Use it.
9336         (SETUP_PIC_REG_LEAF): Use it.
9337
9338 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9339
9340         [BZ #13885]
9341         [BZ #13923]
9342         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9343         USE_AS_EXPM1L.
9344         (EXPL_FINITE): Likewise.
9345         (FLDLOG): Likewise.
9346         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9347         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9348         e_expl.S.
9349         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9350         USE_AS_EXPM1L.
9351         (EXPL_FINITE): Likewise.
9352         (FLDLOG): Likewise.
9353         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9354         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9355         e_expl.S.
9356         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9357         test of -max_value argument for long double.
9358         * sysdeps/i386/fpu/libm-test-ulps: Update.
9359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9360
9361 2012-05-06  David S. Miller  <davem@davemloft.net>
9362
9363         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9364         quad soft-float symbols whose references which are compiler
9365         generated.
9366         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9367
9368 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9369
9370         [BZ #13884]
9371         [BZ #13914]
9372         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9373         USE_AS_EXP10L.
9374         (EXPL_FINITE): Likewise.
9375         (FLDLOG): Likewise.
9376         (c0): Likewise.
9377         (c1): Likewise.
9378         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9379         Adjust comments for base varying.
9380         (__expl_finite): Change alias to EXPL_FINITE.
9381         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9382         e_expl.S.
9383         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9384         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9385         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9386         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9387         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9388         USE_AS_EXP10L.
9389         (EXPL_FINITE): Likewise.
9390         (FLDLOG): Likewise.
9391         (c0): Likewise.
9392         (c1): Likewise.
9393         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9394         Adjust comments for base varying.
9395         (__expl_finite): Change alias to EXPL_FINITE.
9396         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9397         tests for bugs.
9398         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9399
9400         [BZ #14064]
9401         * math/libm-test.inc (check_float_internal): Correct ulp
9402         calculation for subnormal expected results.
9403
9404 2012-05-06  Andreas Jaeger  <aj@suse.de>
9405
9406         * Makeconfig (+math-flags): New, set to -frounding-math.
9407         (+cflags): Add +math-flags so that all of glibc gets compiled with
9408         it.
9409
9410         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9411
9412 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9413
9414         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9415         Disable one test.
9416
9417         [BZ #13787]
9418         [BZ #13922]
9419         [BZ #14036]
9420         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9421         (__ieee754_expl): Allow for and saturate large arguments.
9422         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9423         (u_threshold): Likewise.
9424         (__exp): Call __ieee754_exp before checking for overflow and
9425         underflow.
9426         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9427         (u_threshold): Likewise.
9428         (__expf): Call __ieee754_expf before checking for overflow and
9429         underflow.
9430         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9431         (u_threshold): Likewise.
9432         (__expl): Call __ieee754_expl before checking for overflow and
9433         underflow.
9434         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9435         (__ieee754_expl): Allow for and saturate large arguments.
9436         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9437         missing overflow exception on overflow.
9438         (expm1_test): Do not allow missing overflow exception on overflow.
9439
9440         * sysdeps/i386/fpu/e_expl.c: Move to ...
9441         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9442         rather than using inline asm.
9443         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9444         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9445         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9446
9447         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9448         (nice): Likewise.
9449         (poll): Likewise.
9450         (signal): Likewise.
9451         (time): Likewise.
9452         (times): Likewise.
9453
9454 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9455
9456         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9457         sysdeps/unix/common/syscalls.list.
9458         (fchmod): Likewise.
9459         (fchown): Likewise.
9460         (ftruncate): Likewise.
9461         (getrusage): Likewise.
9462         (gettimeofday): Likewise.
9463         (setpgid): Likewise.
9464         (setregid): Likewise.
9465         (setreuid): Likewise.
9466         (sigaction): Likewise.
9467         (truncate): Likewise.
9468         (vhangup): Likewise.
9469         * sysdeps/unix/common/syscalls.list: Remove file.
9470         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9471         * sysdeps/unix/sysv/linux/Implies: Likewise.
9472
9473 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9474
9475         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9476         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9477         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9478         Moved to ...
9479         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9480         Here.
9481         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9482         to ...
9483         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9484         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9485         to ...
9486         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9487         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9488         to ...
9489         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9490         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9491         to ...
9492         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9493         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9494         to ...
9495         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9496         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9497         to ...
9498         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9499         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9500         to ...
9501         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9502         Here.
9503         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9504         to ...
9505         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9506         Here.
9507         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9508         to ...
9509         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9510         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9511         Moved to ...
9512         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9513         Here.
9514         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9515         to ...
9516         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9517
9518 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9519
9520         * sysdeps/unix/common/bits/dirent.h: Remove file.
9521         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9522
9523         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9524         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9525         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9526         * sysdeps/unix/bsd/isatty.c: Likewise.
9527         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9528         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9529         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9530
9531 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9532
9533         [BZ #13563]
9534         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9535         long double comparison inaccuracies.
9536         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9537         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9538
9539 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9540
9541         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9542         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9543
9544 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9545
9546         [BZ #14049]
9547         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9548         nonzero digits before rounding a hex value.
9549         * stdlib/tst-strtod.c (tests): Add another test.
9550
9551 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9552
9553         * sysdeps/s390/fpu/libm-test-ulps: Update.
9554
9555 2012-05-03  Andreas Jaeger  <aj@suse.de>
9556
9557         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9558         does not get optimized out.
9559         (malloc_opt_barrier): New.
9560
9561 2012-05-03  Andreas Jaeger  <aj@suse.de>
9562             Roland McGrath  <roland@hack.frob.com>
9563
9564         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9565         intermediate file deletion.
9566         (generated): Add .symlist files.
9567
9568 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9569
9570         [BZ #13775]
9571         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9572         Redirect under this condition.
9573         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9574         [__USE_GNU] (__dprintf_chk): Not under this condition.
9575         [__USE_GNU] (__vdprintf_chk): Likewise.
9576         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9577         under this condition.
9578         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9579         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9580         [__USE_XOPEN2K8] (vdprintf): Likewise.
9581         [__USE_GNU] (__dprintf_chk): Not under this condition.
9582         [__USE_GNU] (__vdprintf_chk): Likewise.
9583         [__USE_GNU] (dprintf): Likewise.
9584         [__USE_GNU] (vdprintf): Likewise.
9585
9586 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9587
9588         * elf/Makefile (common-generated): Set this instead of generated for
9589         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9590         $(all-built-dso)-derived lists.
9591
9592 2012-05-03  Andreas Jaeger  <aj@suse.de>
9593
9594         * sysdeps/i386/fpu/libm-test-ulps: Update.
9595
9596         * FAQ: Removed.
9597         * FAQ.in: Likewise.
9598         * scripts/gen-FAQ.pl: Likewise.
9599         * manual/install.texi (Installation): Point to online location of
9600         FAQ.
9601         * Makefile (files-for-dist): Remove FAQ.
9602         (FAQ): Remove.
9603
9604 2012-05-02  Allan McRae  <allan@archlinux.org>
9605
9606         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9607         (LDFLAGS-reldepmod5.so): Likewise.
9608         (LDFLAGS-reldep6mod1.so): Likewise.
9609         (LDFLAGS-reldep6mod4.so): Likewise.
9610         (LDFLAGS-reldep8mod3.so): Likewise.
9611         (LDFLAGS-unload4mod1.so): Likewise.
9612         (LDFLAGS-unload4mod2.so): Likewise.
9613         (LDFLAGS-tst-initorder): Likewise.
9614         (LDFLAGS-tst-initordera2.so): Likewise.
9615         (LDFLAGS-tst-initordera3.so): Likewise.
9616         (LDFLAGS-tst-initordera4.so): Likewise.
9617         (LDFLAGS-tst-initorderb2.so): Likewise.
9618         (LDFLAGS-noload): Likewise.
9619         (LDFLAGS-next): Likewise.
9620         (LDFLAGS-order2mod1.so): Likewise.
9621         (LDFLAGS-order2mod2.so): Likewise.
9622         (LDFLAGS-tst-initorder2): Likewise.
9623         (LDFLAGS-tst-initorder2a.so): Likewise.
9624         (LDFLAGS-tst-initorder2b.so): Likewise.
9625         (LDFLAGS-tst-initorder2c.so): Likewise.
9626         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9627
9628 2012-05-02  David S. Miller  <davem@davemloft.net>
9629
9630         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9631
9632 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9633
9634         [BZ #14055]
9635         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9636
9637 2012-05-02  Andreas Jaeger  <aj@suse.de>
9638
9639         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9640         since we manipulate rounding mode.
9641         (CPPFLAGS-test-idouble.c): Likewise.
9642         (CPPFLAGS-test-ifloat.c): Likewise.
9643         (CFLAGS-test-ldouble.c): Likewise.
9644         (CFLAGS-test-double.c): Likewise.
9645         (CFLAGS-test-float.c): Likewise.
9646         (CFLAGS-test-misc.c): Likewise.
9647         (CFLAGS-test-test-fenv.c): Likewise.
9648
9649 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9650
9651         [BZ #2550]
9652         [BZ #2570]
9653         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9654         comparisons to determine direction to adjust input.
9655
9656 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9657
9658         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9659         output to the target.
9660
9661         * scripts/localplt.awk: New file.
9662         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9663         (check-localplt-CFLAGS): Variable removed.
9664         ($(all-built-dso:=.jmprel)): New static pattern rule.
9665         (generated): Add those targets.
9666         (localplt-built-dso): New variable.
9667         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9668
9669         * elf/check-localplt.c: File removed.
9670
9671         * scripts/check-execstack.awk: New file.
9672         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9673         (check-execstack-CFLAGS): Variable removed.
9674         ($(objpfx)check-execstack.h): Target removed.
9675         ($(objpfx)execstack-default): New target.
9676         (generated): Add that instead of check-execstack.h.
9677         ($(all-built-dso:=.phdr)): New static pattern rule.
9678         (generated): Add those targets.
9679         * elf/check-execstack.c: File removed.
9680
9681         * scripts/check-textrel.awk: New file.
9682         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9683         (check-textrel-CFLAGS): Variable removed.
9684         (all-built-dso): Use := to define.o
9685         ($(all-built-dso:=.dyn)): New static pattern rule.
9686         (generated): Add those targets.
9687         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9688         * config.make.in (READELF): New substituted variable.
9689         * elf/check-textrel.c: File removed.
9690
9691 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9692
9693         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9694         allow.
9695         * conform/data/ctype.h-data [C99-based standards] (isblank):
9696         Expect function.
9697         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9698         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9699         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9700         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9701         Specify type.  Require positive value.
9702         (EILSEQ): Likewise.
9703         (ERANGE): Likewise.
9704         [ISO || POSIX] (EILSEQ): Do not expect.
9705         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9706         Specify type.  Require positive value.
9707         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9708         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9709         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9710         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9711         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9712         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9713         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9714         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9715         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9716         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9717         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9718         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9719         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9720         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9721         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9722         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9723         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9724         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9725         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9726         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9727         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9728         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9729         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9730         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9731         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9732         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9733         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9734         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9735         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9736         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9737         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9738         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9739         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9740         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9741         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9742         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9743         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9744         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9745         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9746         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9747         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9748         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9749         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9750         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9751         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9752         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9753         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9754         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9755         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9756         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9757         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9758         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9759         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9760         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9761         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9762         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9763         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9764         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9765         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9766         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9767         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9768         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9769         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9770         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9771         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9772         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9773         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9774         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9775         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9776         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9777         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9778         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9779         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9780         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9781         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9782         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9783         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9784         Require >= 2.
9785         (FLT_ROUNDS): Expect as macro, not constant.
9786         (FLT_MANT_DIG): Use macro-int-constant.
9787         (DBL_MANT_DIG): Likewise.
9788         (LDBL_MANT_DIG): Likewise.
9789         (FLT_DIG): Likewise.
9790         (DBL_DIG): Likewise.
9791         (LDBL_DIG): Likewise.
9792         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9793         (DBL_MIN_EXP): Likewise.
9794         (LDBL_MIN_EXP): Likewise.
9795         (FLT_MAX_EXP): Use macro-int-constant.
9796         (DBL_MAX_EXP): Likewise.
9797         (LDBL_MAX_EXP): Likewise.
9798         (FLT_MAX_10_EXP): Likewise.
9799         (DBL_MAX_10_EXP): Likewise.
9800         (LDBL_MAX_10_EXP): Likewise.
9801         (FLT_MAX): Use macro-constant.
9802         (DBL_MAX): Likewise.
9803         (LDBL_MAX): Likewise.
9804         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9805         (DBL_EPSILON): Likewise.
9806         (LDBL_EPSILON): Likewise.
9807         (FLT_MIN): Likewise.
9808         (DBL_MIN): Likewise.
9809         (LDBL_MIN): Likewise.
9810         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9811         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9812         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9813         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9814         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9815         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9816         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9817         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9818         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9819         [ISO11] (FLT_TRUE_MIN): Likewise.
9820         [ISO11] (LDBL_TRUE_MIN): Likewise.
9821         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9822         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9823         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9824         (SCHAR_MAX): Likewise.
9825         (UCHAR_MAX): Likewise.
9826         (CHAR_MIN): Likewise.
9827         (CHAR_MAX): Likewise.
9828         (MB_LEN_MAX): Use macro-int-constant.
9829         (SHRT_MIN): Use macro-int-constant.  Specify type.
9830         (SHRT_MAX): Likewise.
9831         (USHRT_MAX): Likewise.
9832         (INT_MAX): Likewise.
9833         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9834         bound negative.
9835         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9836         bound with "U".
9837         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9838         bound with "L".
9839         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9840         bound negative.  Suffix upper bound with "L".
9841         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9842         bound with "UL".
9843         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9844         Specify type.
9845         [C99-based standards] (LLONG_MAX): Likewise.
9846         [C99-based standards] (ULLONG_MAX): Likewise.
9847         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9848         == 0.
9849         [ISO11] (max_align_t): Require type.
9850         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9851
9852         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9853         from $CFLAGS, without defining away __attribute__ calls.
9854         (checknamespace): Use $CFLAGS_namespace.
9855
9856         * conform/conformtest.pl (@keywords): Only include C99 keywords
9857         for standards based on C99 or C11.
9858
9859         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9860         Disable tests.
9861         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9862         UNIX98]: Likewise.
9863
9864         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9865         usability of symbols in #if.
9866
9867         * conform/conformtest.pl: If macro or constant types start
9868         "promoted:", expect the symbol to be of the following type
9869         promoted by the integer promotions.
9870
9871         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9872         in one place.  Also handle "macro-constant".
9873
9874         * conform/conformtest.pl: Only accept expected macro values with
9875         "==".  Parse all "macro" lines in one place.
9876         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9877
9878         * conform/conformtest.pl: Handle braced types on "constant" lines
9879         instead of handling "typed-constant".
9880         * conform/data/signal.h-data: Use "constant" instead of
9881         "typed-constant".
9882
9883         * conform/conformtest.pl: Handle "optional-" at start of lines in
9884         one place rather than duplicating several cases.  Handle each
9885         format of "macro" line with initial "optional-".
9886
9887         * conform/conformtest.pl: Only accept expected constant or
9888         optional-constant values with "==".  Parse all "constant" lines in
9889         one place.  Parse all "optional-constant" lines in one place.
9890         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9891         * conform/data/fmtmsg.h-data: Likewise.
9892         * conform/data/netinet/in.h-data: Likewise.
9893         * conform/data/tar.h-data: Likewise.
9894         * conform/data/limits.h-data: Use "==" form on "constant" and
9895         "optional-constant" lines.
9896
9897         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9898         Use -std=c99 for XOPEN2K.
9899         (@knownproblems): Remove.
9900         (newtoken): Don't check %isknown.
9901
9902         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9903         Do not expect macro.
9904         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9914         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9915         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9916         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9917         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9918         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9919         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9920         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9921         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9922         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9925         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9926         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9934         [XPG3] (acosh): Likewise.
9935         [XPG3] (asinh): Likewise.
9936         [XPG3] (atanh): Likewise.
9937         [XPG3] (cbrt): Likewise.
9938         [XPG3] (expm1): Likewise.
9939         [XPG3] (ilogb): Likewise.
9940         [XPG3] (log1p): Likewise.
9941         [XPG3] (logb): Likewise.
9942         [XPG3] (nextafter): Likewise.
9943         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9944         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9945         [XPG3] (remainder): Likewise.
9946         [XPG3] (rint): Likewise.
9947         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9948         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9949         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9950         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9951         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9952         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9953         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9954         [UNIX98 || XOPEN2K] (scalb): Expect.
9955         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9956         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9957         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9958         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9959         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9960         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9961         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9962         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9963         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9964         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9965         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9966         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9967         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9968         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9969         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9970         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9971         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9972         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9973         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9974         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9975         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9976         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9977         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9978         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9979         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9980         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9981         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9982         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9983         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9984         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9985         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9986         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9987         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9988         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9989         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9990         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9991         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9992         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9993         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9994         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9995         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9996         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9997         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9998         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9999         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
10000         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
10001         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
10002         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
10003         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
10004         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
10005         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
10006         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
10007         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
10008         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
10009         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
10010         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
10011         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
10012         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
10013         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
10014         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
10015         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
10016         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
10017         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
10018         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
10019         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
10020         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
10021         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
10022         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
10023         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
10024         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
10025         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
10026         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
10027         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
10028         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
10029         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
10030         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
10031         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
10032         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
10033         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
10034         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
10035         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
10036         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
10037         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
10038         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
10039         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
10040         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
10041         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
10042         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
10043         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
10044         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
10045         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
10046         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
10047         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
10048         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
10049         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
10050         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
10051         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
10052         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
10053         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
10054         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
10055         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
10056         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
10057         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
10058         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
10059         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
10060         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
10061         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
10062         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
10063         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
10064         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
10065         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
10066         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
10067         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
10068         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
10069         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
10070         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
10071         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
10072         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
10073         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
10074         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
10075         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
10076         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
10077         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
10078         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
10079         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
10080         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
10081         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
10082         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
10083         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
10084         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
10085         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
10086         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
10087         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
10088         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
10089         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
10090         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
10091         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
10092
10093         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
10094         _XOPEN_SOURCE_EXTENDED for XPG4.
10095
10096         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10097
10098         * Makeconfig (localtime): Remove variable.
10099         (inst_localtime-file): Likewise.
10100
10101 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10102
10103         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10104         Update.
10105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10106         Update.
10107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10108         Update.
10109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10110         Update.
10111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10112         Update.
10113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10114         Update.
10115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10116         Update.
10117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10118         Update.
10119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10120         Update.
10121
10122 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10123
10124         [BZ #2550]
10125         [BZ #2570]
10126         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10127         comparisons to determine direction to adjust input.
10128         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10129         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10130         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10131         Likewise.
10132         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10133         Likewise.
10134         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10135         Likewise.
10136         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10137         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10138         Likewise.
10139         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10140         Likewise.
10141         * math/libm-test.inc (nexttoward_test): Add more tests.
10142
10143 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10144
10145         [BZ #14040]
10146         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10147         in version GLIBC_2.1, not GLIBC_2.0.
10148         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10149         Likewise.
10150
10151 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10152
10153         [BZ #13942]
10154         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10155         (1 - x) * (1 + x).
10156         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10157         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10158         * math/libm-test.inc (acos_test): Add more tests.
10159         (asin_test): Likewise.
10160         * sysdeps/i386/fpu/libm-test-ulps: Update.
10161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10162
10163         [BZ #14034]
10164         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10165         of square root.
10166         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10167         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10168         * math/libm-test.inc (acos_test_tonearest): New function.
10169         (acos_test_towardzero): Likewise.
10170         (acos_test_downward): Likewise.
10171         (acos_test_upward): Likewise.
10172         (asin_test_tonearest): Likewise.
10173         (asin_test_towardzero): Likewise.
10174         (asin_test_downward): Likewise.
10175         (asin_test_upward): Likewise.
10176         (main): Call the new functions.
10177         * sysdeps/i386/fpu/libm-test-ulps: Update.
10178         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10179
10180         [BZ #13884]
10181         [BZ #13924]
10182         * math/e_exp10.c: Include <float.h>.
10183         (__ieee754_exp10): Handle underflow here rather than multiplying
10184         large negative argument by M_LN10.
10185         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10186         of __ieee754_expf.
10187         * math/e_exp10l.c: Include <float.h>.
10188         (__ieee754_exp10l): Handle underflow here rather than multiplying
10189         large negative argument by M_LN10l.
10190         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10191         spurious overflow exception on underflow.
10192
10193 2012-04-29  Marek Polacek  <polacek@redhat.com>
10194
10195         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10196         (__fortify_function): New macro.
10197         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10198         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10199         __extern_always_inline.
10200         * libio/bits/stdio2.h: Likewise.
10201         * libio/bits/stdio.h: Likewise.
10202         * string/string.h: Likewise.
10203         * string/bits/string3.h: Likewise.
10204         * include/stdio.h: Likewise.
10205         * stdlib/bits/stdlib.h: Likewise.
10206         * stdlib/stdlib.h: Likewise.
10207         * rt/bits/mqueue2.h: Likewise.
10208         * rt/mqueue.h: Likewise.
10209         * posix/bits/unistd.h: Likewise.
10210         * posix/unistd.h: Likewise.
10211         * io/bits/poll2.h: Likewise.
10212         * io/bits/fcntl2.h: Likewise.
10213         * io/fcntl.h: Likewise.
10214         * io/sys/poll.h: Likewise.
10215         * misc/bits/syslog.h: Likewise.
10216         * misc/bits/syslog-ldbl.h: Likewise.
10217         * misc/sys/syslog.h: Likewise.
10218         * socket/bits/socket2.h: Likewise.
10219         * socket/sys/socket.h: Likewise.
10220         * debug/tst-chk1.c: Likewise.
10221         * wcsmbs/bits/wchar2.h: Likewise.
10222         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10223         * wcsmbs/wchar.h: Likewise.
10224
10225 2012-04-29  Andreas Jaeger  <aj@suse.de>
10226
10227         * Makerules (tests): Remove enable-check-abi protection.
10228         (check-abi-warn): Remove.
10229         (check-abi-%): Remove check-abi-warn usage.
10230
10231         * configure.in: Remove check-abi configure option.
10232         * configure: Regenerated.
10233         * config.make.in (enable-check-abi): Remove.
10234
10235 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10236
10237         [BZ #14033]
10238         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10239         double functions to double *_finite functions.
10240
10241         [BZ #13941]
10242         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10243         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10244         LDBL_MIN_EXP.
10245         * stdio-common/Makefile (tests): Add tst-sprintf3.
10246         * stdio-common/tst-sprintf3.c: New file.
10247
10248         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10249         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10250
10251 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10252
10253         * conform/conformtest.pl: Remove duplicate typed-constant
10254         handling.
10255
10256 2012-04-28  David S. Miller  <davem@davemloft.net>
10257
10258         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10259         (check-abi-%): Remove AWK script prerequisite and explicit
10260         abilist directory.
10261         (check-abi): Rewrite to just diff the symlist with the abilist.
10262         (config-tls, config-abi-config): Delete, no longer used.
10263         (update-abi-%): Remove AWK script and explicit abilist directory.
10264         (update-abi): Rewrite to simply compare and conditionally copy the
10265         symlist and the sysdep abilist file.  Remove update-abi-config
10266         checks.
10267         * abilist/ld.abilist: Remove.
10268         * abilist/libBrokenLocale.abilist: Remove.
10269         * abilist/libanl.abilist: Remove.
10270         * abilist/libcrypt.abilist: Remove.
10271         * abilist/libdl.abilist: Remove.
10272         * abilist/librt.abilist: Remove.
10273         * abilist/libthread_db.abilist: Remove.
10274         * abilist/libutil.abilist: Remove.
10275         * scripts/extract-abilist.awk: Remove.
10276         * scripts/merge-abilist.awk: Remove.
10277         * sysdeps/generic/libcidn.abilist: New file.
10278         * sysdeps/generic/libnss_compat.abilist: New file.
10279         * sysdeps/generic/libnss_db.abilist: New file.
10280         * sysdeps/generic/libnss_dns.abilist: New file.
10281         * sysdeps/generic/libnss_files.abilist: New file.
10282         * sysdeps/generic/libnss_hesiod.abilist: New file.
10283         * sysdeps/generic/libnss_nis.abilist: New file.
10284         * sysdeps/generic/libnss_nisplus.abilist: New file.
10285         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10286         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10287         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10288         file.
10289         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10290         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10291         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10292         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10293         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10294         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10295         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10296         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10297         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10298         file.
10299         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10300         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10301         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10302         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10303         file.
10304         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10305         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10306         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10307         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10308         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10309         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10310         file.
10311         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10312         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10313         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10314         file.
10315         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10316         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10317         New file.
10318         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10319         New file.
10320         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10321         New file.
10322         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10323         New file.
10324         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10325         New file.
10326         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10327         New file.
10328         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10329         New file.
10330         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10331         New file.
10332         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10333         New file.
10334         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10335         New file.
10336         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10337         New file.
10338         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10339         New file.
10340         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10341         New file.
10342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10343         file.
10344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10345         New file.
10346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10347         New file.
10348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10349         file.
10350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10351         New file.
10352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10353         New file.
10354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10355         file.
10356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10357         New file.
10358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10359         New file.
10360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10361         New file.
10362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10363         New file.
10364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10365         New file.
10366         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10367         New file.
10368         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10369         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10370         file.
10371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10372         New file.
10373         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10374         file.
10375         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10376         file.
10377         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10378         file.
10379         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10380         file.
10381         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10382         file.
10383         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10384         New file.
10385         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10386         file.
10387         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10388         file.
10389         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10390         New file.
10391         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10392         file.
10393         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10394         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10395         file.
10396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10397         New file.
10398         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10399         file.
10400         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10401         file.
10402         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10403         file.
10404         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10405         file.
10406         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10407         file.
10408         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10409         New file.
10410         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10411         file.
10412         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10413         file.
10414         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10415         New file.
10416         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10417         file.
10418         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10419         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10420         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10421         file.
10422         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10423         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10424         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10425         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10426         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10427         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10428         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10429         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10430         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10431         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10432         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10434         file.
10435         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10436         New file.
10437         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10438         file.
10439         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10440         file.
10441         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10442         file.
10443         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10444         file.
10445         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10446         file.
10447         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10448         New file.
10449         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10450         New file.
10451         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10452         file.
10453         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10454         New file.
10455         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10456         file.
10457         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10458         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10459         file.
10460         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10461         New file.
10462         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10463         file.
10464         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10465         file.
10466         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10467         file.
10468         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10469         file.
10470         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10471         file.
10472         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10473         New file.
10474         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10475         New file.
10476         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10477         file.
10478         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10479         New file.
10480         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10481         file.
10482
10483 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10484
10485         * conform/conformtest.pl: Fix typo in handling typed-constant from
10486         allow-header.
10487
10488 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10489
10490         * README: Cut down references to pre-2.6 Linux kernels and
10491         Linuxthreads.  Update lists of configurations in libc and ports
10492         and sort alphabetically.  Say "or newer" with Linux kernel version
10493         requirements.
10494
10495         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10496
10497 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10498
10499         [BZ #887]
10500         * math/libm-test.inc (logb_test_downward): New test to expose
10501         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10502         rounding mode.
10503
10504 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10505
10506         [BZ #14027]
10507         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10508         to be done.
10509         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10510         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10511
10512 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10513
10514         * sysdeps/unix/i386/brk.S: Remove file.
10515         * sysdeps/unix/i386/dl-brk.S: Likewise.
10516         * sysdeps/unix/i386/pipe.S: Likewise.
10517         * sysdeps/unix/i386/sigreturn.S: Likewise.
10518         * sysdeps/unix/i386/syscall.S: Likewise.
10519         * sysdeps/unix/i386/vfork.S: Likewise.
10520         * sysdeps/unix/i386/wait.S: Likewise.
10521
10522         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10523         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10524
10525         * configure.in (arm*-none*): Do not allow without
10526         --enable-hacker-mode.
10527         (netbsd*): Remove case setting base_os.
10528         (386bsd*): Likewise.
10529         (freebsd*): Likewise.
10530         (bsdi*): Likewise.
10531         (osf*): Likewise.
10532         (sunos*): Likewise.
10533         (ultrix*): Likewise.
10534         (newsos*): Likewise.
10535         (dynix*): Likewise.
10536         (*bsd*): Likewise.
10537         (sysv*): Likewise.
10538         (isc*): Likewise.
10539         (esix*): Likewise.
10540         (sco*): Likewise.
10541         (minix*): Likewise.
10542         (irix4*): Likewise.
10543         (irix6*): Likewise.
10544         (solaris[2-9]*): Likewise.
10545         (none): Likewise.
10546         * configure: Regenerated.
10547
10548 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10549
10550         [BZ #11521]
10551         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10552         overflow or cancellation in calculating denominator.
10553         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10554         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10555         down expression to avoid unexpected rounding in newer GCCs.
10556         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10557
10558 2012-04-26  David S. Miller  <davem@davemloft.net>
10559
10560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10561         long-double compat symbols.
10562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10563         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10566         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10567         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10568         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10569         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10570         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10571         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10572         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10573         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10574         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10575
10576 2012-04-25  David S. Miller  <davem@davemloft.net>
10577
10578         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10579         HWCAP_* values only after the memory barriers have been defined.
10580         (atomic_full_barrier): Define.
10581         (atomic_read_barrier): Define.
10582         (atomic_write_barrier): Define.
10583
10584 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10585
10586         * shlib-versions: Add libgcc_s version information.
10587         * sysdeps/generic/libgcc_s.h: Remove.
10588         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10589         libgcc_s.h.
10590         * sysdeps/gnu/unwind-resume.c: Likewise.
10591         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10592
10593 2012-04-25  David S. Miller  <davem@davemloft.net>
10594
10595         * sysdeps/unix/sparc/brk.S: Delete.
10596         * sysdeps/unix/sparc/dl-brk.S: Delete.
10597         * sysdeps/unix/sparc/pipe.S: Delete.
10598         * sysdeps/unix/sparc/sysdep.S: Delete.
10599         * sysdeps/unix/sparc/sysdep.h: Delete.
10600         * sysdeps/unix/sparc/vfork.S: Delete.
10601         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10602         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10603         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10604         ret_ERRVAL, r0, r1, MOVE): Define.
10605         (JUMPTARGET): Remove.
10606         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10607         sysdeps/unix/sparc/sysdep.h
10608         (ENTRY, END): Remove.
10609         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10610
10611 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10612
10613         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10614         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10615         -DIS_IN_build.
10616
10617         * timezone/README: Update upstream location and email address for
10618         tzcode and tzdata.
10619         * timezone/zdump.c: Update from tzcode 2012b.
10620         * timezone/zic.c: Likewise.
10621
10622         * configure.in (libc_cv_as_needed): Remove test.
10623         * configure: Regenerated.
10624         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10625         conditional definition.
10626         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10627         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10628         * config.make.in (have-as-needed): Remove variable.
10629
10630 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10631             Paul Pluzhnikov  <ppluzhnikov@google.com>
10632
10633         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10634         strings correctly.
10635
10636 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10637
10638         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10639         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10640         * sysdeps/sh/strlen.S: Likewise.
10641
10642 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10643
10644         * sysdeps/unix/fork.S: Remove file.
10645         * sysdeps/unix/i386/fork.S: Likewise.
10646         * sysdeps/unix/sparc/fork.S: Likewise.
10647
10648         * sysdeps/unix/system.c: Remove file.
10649         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10650
10651         * sysdeps/unix/getegid.S: Remove file.
10652         * sysdeps/unix/geteuid.S: Likewise.
10653
10654 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10655
10656         * scripts/check-localplt.awk: New file.
10657         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10658         of diff.
10659         * scripts/data/localplt-generic.data: Add a comment.
10660
10661         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10662         NODE when __dir_mkfile failed.
10663         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10664         Reported by Ludovic Courtès <ludo@gnu.org>.
10665
10666 2012-04-24  Andreas Jaeger  <aj@suse.de>
10667
10668         * Makerules (common-clean): Also remove gen-as-const-headers
10669         files.
10670
10671 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10672
10673         * Makerules (native-compile): Do not change working directory for
10674         build.  Use $(OUTPUT_OPTION) in command.
10675         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10676
10677 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10678
10679         [BZ #13886]
10680         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10681         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10682         * math/libm-test.inc (floor_test): Add more tests.
10683         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10684
10685 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10686
10687         * sysdeps/unix/getdents.c: Remove file.
10688         * sysdeps/unix/sysv/getdents.c: Likewise.
10689         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10690
10691         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10692         sysdeps/unix/mman/syscalls.list.
10693         (mmap): Likewise.
10694         (mprotect): Likewise.
10695         (msync): Likewise.
10696         (munmap): Likewise.
10697         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10698         * sysdeps/unix/mman/syscalls.list: Remove.
10699         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10700
10701         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10702         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10703         * configure: Regenerated.
10704         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10705         $(libgcc_s_suffix).
10706         * config.make.in (libgcc_s_suffix): Remove variable.
10707
10708 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10709
10710         * sysdeps/unix/sysv/gethostname.c: Move to ...
10711         * sysdeps/posix/gethostname.c: ... here.
10712
10713         * sysdeps/unix/execve.S: Remove file.
10714
10715         * sysdeps/unix/_exit.S: Remove file.
10716
10717 2012-04-23  Andreas Jaeger  <aj@suse.de>
10718
10719         [BZ #13739]
10720         * manual/Makefile: Remove make dist support, there's no
10721         need for a stand-alone documentation tar ball.
10722         (TEXI2DVI): Define always, it's not in Makeconfig.
10723         (dist): Removed.
10724         (tar-it): Removed.
10725         (edition): Removed.
10726         (glibc-doc-$(edition).tar): Removed
10727         (%.Z): Removed.
10728         (%.gz): Removed.
10729         (%.uu): Removed.
10730         (ETAGS): Remove, it's in Makeconfig.
10731         (move-if-change): Remove, it's in Makeconfig.
10732
10733 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10734
10735         [BZ #13970]
10736         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10737         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10738         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10739         (strtod_l, strtof_l, strtold_l): Remove __wur.
10740         It is not necessarily an error to ignore strtol's return value.
10741         One can reliably look at the stored endptr to decide whether
10742         the number had valid syntax.
10743
10744 2012-04-21  Andreas Jaeger  <aj@suse.de>
10745
10746         [BZ #13739]
10747         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10748
10749 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10750
10751         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10752         * sysdeps/unix/sysv/Versions: Remove file.
10753
10754 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10755
10756         [BZ #13927]
10757         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10758
10759 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10760
10761         [BZ #7064]
10762         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10763         version from __vm86.
10764
10765 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10766
10767         * sysdeps/unix/common/lxstat.c: Remove file.
10768         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10769
10770         * sysdeps/unix/sysv/Makefile: Remove file.
10771
10772         * sysdeps/unix/sysv/direct.h: Remove file.
10773
10774         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10775         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10776         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10777         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10778         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10779         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10780         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10781
10782         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10783
10784         * sysdeps/unix/xmknod.c: Remove file.
10785         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10786
10787         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10788
10789         * sysdeps/unix/sysv/i386/time.S: Remove file.
10790
10791         * sysdeps/unix/fxstat.c: Remove file.
10792         * sysdeps/unix/xstat.c: Likewise.
10793         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10794
10795         * sysdeps/unix/sysv/sigaction.c: Remove file.
10796
10797         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10798         (sysdep_headers): Remove variable.
10799         [termio.h not in sysdep_headers] (generated): Likewise.
10800         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10801         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10802         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10803         * sysdeps/unix/sysv/tcflow.c: Likewise.
10804         * sysdeps/unix/sysv/tcflush.c: Likewise.
10805         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10806         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10807         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10808         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10809         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10810
10811         * sysdeps/unix/siglist.c: Remove file.
10812
10813         * sysdeps/unix/getppid.S: Remove file.
10814
10815         * sysdeps/unix/mkdir.c: Remove file.
10816         * sysdeps/unix/rmdir.c: Likewise.
10817
10818 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10819
10820         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10821         ERR_MAX value.
10822         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10823         errlist-compat value.
10824
10825 2012-04-18  David S. Miller  <davem@davemloft.net>
10826
10827         * sysdeps/generic/memcopy.h (reg_char): Delete.
10828         * debug/strcat_chk.c: Use char, not reg_char.
10829         * debug/strcpy_chk.c: Likewise.
10830         * debug/strncat_chk.c: Likewise.
10831         * debug/strncpy_chk.c: Likewise.
10832         * string/memchr.c: Likewise.
10833         * string/memrchr.c: Likewise.
10834         * string/rawmemchr.c: Likewise.
10835         * string/strcat.c: Likewise.
10836         * string/strchr.c: Likewise.
10837         * string/strchrnul.c: Likewise.
10838         * string/strcmp.c: Likewise.
10839         * string/strcpy.c: Likewise.
10840         * string/strncat.c: Likewise.
10841         * string/strncmp.c: Likewise.
10842         * string/strncpy.c: Likewise.
10843
10844 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10845
10846         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10847         __builtin_memcopy is called when src and dest ranges are known to not
10848         overlap.
10849
10850 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10851
10852         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10853         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10854         fwd_align_merge macro call.
10855         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10856         bwd_align_merge macro call.
10857         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10858
10859 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10860
10861         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10862         bwd_align_merge macros.
10863         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10864         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10865         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10866
10867 2012-04-18  David S. Miller  <davem@davemloft.net>
10868
10869         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10870
10871 2012-04-18  Andreas Jaeger  <aj@suse.de>
10872
10873         [BZ# 6794]
10874         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10875         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10876         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10877
10878         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10879         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10880         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10881
10882         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10883         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10884         Adjust for changed ldbl-128 files.
10885
10886         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10887         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10888         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10889
10890 2012-04-17  David S. Miller  <davem@davemloft.net>
10891
10892         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10893
10894 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10895
10896         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10897         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10898         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10899         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10900         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10901         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10902
10903 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10904
10905         [BZ #6794]
10906         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10907         * math/libm-test.inc: Add ilogb errno and exception tests.
10908         * math/w_ilogb.c: New file: ilogb wrapper.
10909         * math/w_ilogbf.c: New file: ilogbf wrapper.
10910         * math/w_ilogbl.c: New file: ilogbl wrapper.
10911         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10912         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10913         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10914         exception being thrown with 0.0 as argument.
10915         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10916         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10917         exception being thrown with 0.0 as argument.
10918         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10919         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10920         exception being thrown with 0.0 as argument.
10921         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10922         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10923         exception being thrown with 0.0 as argument.
10924         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10925         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10926         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10927         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10928         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10929         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10930         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10931         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10932         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10933
10934 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10935
10936         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10937         with altivec.
10938
10939 2012-04-16  Marek Polacek  <polacek@redhat.com>
10940
10941         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10942
10943 2012-04-16  Marek Polacek  <polacek@redhat.com>
10944
10945         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10946         operands of fdivp instruction.
10947
10948 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10949
10950         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10951         * elf/tst-auditmod3b.c: Likewise.
10952         * elf/tst-auditmod4b.c: Likewise.
10953         * elf/tst-auditmod5b.c: Likewise.
10954         * elf/tst-auditmod6b.c: Likewise.
10955         * elf/tst-auditmod6c.c: Likewise.
10956         * elf/tst-auditmod7b.c: Likewise.
10957         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10958         * sysdeps/x86_64/preconfigure.in: Likewise.
10959         * sysdeps/x86_64/preconfigure: Regenerated.
10960
10961 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10962
10963         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10964         __ILP32__.
10965
10966 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10967
10968         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10969         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10970
10971 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10972
10973         [BZ #13973]
10974         * locale/iso-639.def: Fix gl language name. Spotted by
10975         Yaron Shahrabani.
10976
10977 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10978
10979         [BZ #2074]
10980         * libio/libio.h (__io_write_fn): Update comment.
10981
10982 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10983
10984         [BZ #2074]
10985         * stdio.texi (Hook Functions): The user provided writer function
10986         is not allowed to return -1.
10987
10988 2012-04-11  David S. Miller  <davem@davemloft.net>
10989
10990         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10991
10992 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10993
10994         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10995         Add a leading slash to rtkaio.
10996
10997 2012-04-11  Jim Meyering  <meyering@redhat.com>
10998
10999         [BZ #11959]
11000         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
11001         It is not necessarily an error to ignore fwrite's return
11002         value.  One can reliably use ferror to test for errors after
11003         the fact.
11004
11005 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11006
11007         * bits/types.h (__snseconds_t): New type.
11008         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
11009
11010         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
11011         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
11012         (__SNSECONDS_T_TYPE): Likewise.
11013         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
11014         (__SNSECONDS_T_TYPE): Likewise.
11015         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
11016         (__SNSECONDS_T_TYPE): Likewise.
11017
11018 2012-04-10  Andreas Jaeger  <aj@suse.de>
11019
11020         [BZ #2636]
11021         * manual/time.texi (Processor Time): Return type of times is
11022         elapsed real time since an arbitrary point in the past.
11023         (CPU Time): Move CLK_TCK from here...
11024         (Processor Time): ...to here.  Correct description.
11025         * manual/conf.texi (Constants for Sysconf): Correct description of
11026         _SC_CLK_TCK.
11027
11028 2012-04-10  David S. Miller  <davem@davemloft.net>
11029
11030         [BZ #13967]
11031         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
11032         where the is a gap between DT_REL(A) and DT_JMPREL.
11033
11034 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11035
11036         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
11037         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11038         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11039
11040 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11041
11042         * elf/dl-support.c (_dl_inhibit_cache): New variable.
11043         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
11044         (dl_main): Handle --inhibit-cache.
11045         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
11046         _dl_inhibit_cache.
11047         * elf/dl-load.c (_dl_map_object): Use it.
11048         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
11049
11050 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11051
11052         [BZ #13872]
11053         * sysdeps/i386/fpu/e_powl.S (p78): New object.
11054         (__ieee754_powl): Saturate large exponents rather than testing for
11055         overflow of y*log2(x).
11056         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11057         * math/libm-test.inc (pow_test): Do not permit spurious overflow
11058         exceptions.
11059
11060         [BZ #11521]
11061         * math/s_ctan.c: Include <float.h>.
11062         (__ctan): Avoid internal overflow or cancellation in calculating
11063         denominator.
11064         * math/s_ctanf.c: Likewise.
11065         * math/s_ctanl.c: Likewise.
11066         * math/s_ctanh.c: Likewise.
11067         * math/s_ctanhf.c: Likewise.
11068         * math/s_ctanhl.c: Likewise.
11069         * math/libm-test.inc (ctan_test): Add more tests.
11070         (ctanh_test): Likewise.
11071         * sysdeps/i386/fpu/libm-test-ulps: Update.
11072         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11073
11074 2012-04-09  Andreas Jaeger  <aj@suse.de>
11075
11076         [BZ #6894]
11077         * manual/filesys.texi (Directory Entries): Mention that d_namlen
11078         is an optional BSD extension.
11079
11080         [BZ #10254]
11081         * manual/stdio.texi (Opening Streams): Document additional fopen
11082         parameters.
11083
11084 2012-04-09  Roland McGrath  <roland@hack.frob.com>
11085
11086         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
11087         %eax without telling the compiler.
11088
11089 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
11090
11091         [BZ # 13963]
11092         * manual/install.texi: Use sourceware.org.
11093
11094 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11095
11096         [BZ #13873]
11097         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11098         (__ieee754_pow): Generate overflow and underflow using huge*huge
11099         and tiny*tiny rather than just returning constant infinity or zero
11100         for large exponents.
11101         * math/libm-test.inc (pow_test): Require overflow exceptions for
11102         applicable cases of large exponents.
11103
11104         [BZ #706]
11105         * sysdeps/i386/fpu/e_pow.S (p10): New object.
11106         (__ieee754_pow): Use iterative multiplication algorithm only for
11107         integer exponents with absolute value below 1024.  Check for odd
11108         integer exponents when using algorithm for real exponents.
11109         * math/libm-test.inc (pow_test): Add more tests.
11110         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11111
11112 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11113
11114         [BZ #13705]
11115         * math/libm-test.inc (exp_test): Do not allow overflow exception
11116         on underflow test.
11117
11118 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11119
11120         [BZ #13705]
11121         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11122         instead of __kernel_standard_f.
11123
11124 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11125
11126         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11127         * sysdeps/x86_64/memset_chk.S: Likewise.
11128
11129 2012-04-08  Andreas Jaeger  <aj@suse.de>
11130
11131         [BZ #10153]
11132         * manual/startup.texi (Environment Access): Describe return value
11133         for putenv and setenv.
11134
11135         [BZ #6895]
11136         * manual/filesys.texi (Directory Entries): Add description for
11137         DT_LNK.
11138
11139         [BZ #6890]
11140         * manual/filesys.texi (Directory Entries): Clarify that it's file
11141         system not operating system in the description of DT_UNKNOWN.
11142
11143         [BZ #6578]
11144         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11145
11146 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11147
11148         [BZ #6649]
11149         * manual/llio.texi (Opening and Closing Files): Add cross
11150         reference to explain mode argument.
11151
11152 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11153
11154         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11155         * sysdeps/x86_64/memset_chk.S: Likewise.
11156
11157 2012-04-07  David S. Miller  <davem@davemloft.net>
11158
11159         * elf/elf.h (R_SPARC_WDISP10): Define.
11160         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11161         R_SPARC_SIZE32.
11162         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11163         R_SPARC_SIZE64 and R_SPARC_H34.
11164
11165 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11166
11167         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11168         conditions and remove no longer applicable assertion.
11169
11170 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11171
11172         * bits/byteswap.h: Include <features.h>.
11173         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11174         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11175
11176 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11177
11178         * bits/byteswap.h (__bswap_16): Removed.
11179         Include <bits/byteswap-16.h> to get __bswap_16.
11180         * sysdeps/i386/bits/byteswap.h: Likewise.
11181         * sysdeps/s390/bits/byteswap.h: Likewise.
11182         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11183         * bits/byteswap-16.h: New file.
11184         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11185         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11186         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11187         * string/Makefile (headers): Add bits/byteswap-16.h.
11188
11189 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11190
11191         [BZ #13895]
11192         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11193         extra indirection.
11194         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11195         * nss/tst-nss-static.c: New.
11196
11197 2012-04-06  Robert Millan  <rmh@gnu.org>
11198
11199         [BZ #6486]
11200         * manual/llio.texi (File Position Primitive): lseek
11201         refers to WHENCE when it really means OFFSET.
11202
11203 2012-04-06  Andreas Jaeger  <aj@suse.de>
11204
11205         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11206         strncmp declarations.
11207
11208         * abilist/libc.abilist: Add __poll and __ppoll.
11209
11210 2012-04-05  David S. Miller  <davem@davemloft.net>
11211
11212         * scripts/check-local-headers.sh: Accept a host triplet in the
11213         path matched by the exclude regexp.
11214
11215         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11216         definition.
11217         * sysdeps/powerpc/powerpc32/dl-machine.h
11218         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11219         * sysdeps/s390/s390-32/dl-machine.h
11220         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11221         * sysdeps/sparc/sparc32/dl-machine.h
11222         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11223         * sysdeps/sparc/sparc64/dl-machine.h
11224         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11225
11226         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11227         lazy binding.
11228         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11229         undefined symbol errors.
11230
11231         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11232         DT_NEEDED entries.
11233
11234 2012-04-05  Michael Matz  <matz@suse.de>
11235
11236         [BZ #13592]
11237         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11238
11239 2012-04-05  Andreas Jaeger  <aj@suse.de>
11240
11241         [BZ #13908]
11242         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11243         comment.
11244
11245 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11246
11247         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11248         which ROUND is no valid rounding mode.
11249
11250 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11251
11252         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11253         read again.
11254         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11255
11256 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11257
11258         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11259         an exception using FPU order intentionally.
11260
11261 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11262
11263         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11264         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11265         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11266         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11267
11268 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11269
11270         [BZ #12340]
11271         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11272         EINVAL when BUFLEN is too smal.
11273
11274 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11275
11276         [BZ #13553]
11277         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11278         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11279
11280 2012-04-03  Andreas Jaeger  <aj@suse.de>
11281
11282         [BZ #13938]
11283         * manual/setjmp.texi (System V contexts): Fix sentence.
11284
11285         [BZ #13926]
11286         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11287         New macro for this case.
11288         [!__GNUC__] (__bswap_64): New inline function for this case.
11289         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11290         * bits/byteswap.h: Likewise.
11291         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11292         ull, guard with __GLIBC_HAVE_LONG_LONG.
11293
11294         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11295         __GLIBC_HAVE_LONG_LONG.
11296
11297         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11298         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11299
11300 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11301
11302         [BZ #13691]
11303         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11304         inptr and inend, rather than using last_ch.
11305
11306 2012-04-02  David S. Miller  <davem@davemloft.net>
11307
11308         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11309         * stdio-common/printf-parse.h (read_int): Change return type to
11310         'int', return -1 on INT_MAX overflow.
11311         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11312         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11313         overflows INT_MAX.  Check for overflow of in-format-string precision
11314         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11315         SIZE_MAX not INT_MAX for integer overflow test.
11316         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11317         skip the construct in the format string but do not record anything.
11318         * stdio-common/bug22.c: Adjust to test both width/prevision
11319         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11320         explicitly for proper errno values.
11321
11322 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11323
11324         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11325         CHAR_MAX.
11326         * string/test-strcmp.c [! WIDE]: Likewise.
11327         * time/tst-mktime2.c: Likewise for INT_MAX.
11328         * string/test-string.h: #include <sys/param.h> for MIN.
11329
11330         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11331         * sysdeps/i386/init-first.c (init): Likewise.
11332         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11333         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11334         * sysdeps/sh/init-first.c (init): Likewise.
11335
11336 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11337
11338         * po/ru.po: Update from translation team.
11339         * po/vi.po: Likewise.
11340
11341 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11342
11343         * resolv/nss_dns/dns-host.c: Merge copyright years.
11344
11345 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11346
11347         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11348         Optimize memcpy with prefetch if
11349         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11350         src, dst pointers have unequal 16 byte alignments.
11351
11352 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11353
11354         [BZ #13928]
11355         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11356         from a CNAME entry and return the minimum ttl for the query.
11357         (gaih_getanswer_slice): Likewise.
11358
11359 2012-03-30  Jeff Law  <law@redhat.com>
11360
11361         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11362         due to long keys.
11363         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11364         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11365
11366         * resolv/nss_dns/dns-host.c: Update copyright year.
11367
11368 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11369
11370         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11371         requests to save a system call.  Fix check that all bytes are sent.
11372
11373         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11374         comments for sendmmsg.
11375
11376 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11377
11378         [BZ #13691]
11379         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11380         with only 1 character between 0x0041 and 0x01b0.
11381         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11382         * wcsmbs/tst-mbsnrtowcs.c: New file.
11383
11384 2012-03-29  David S. Miller  <davem@davemloft.net>
11385
11386         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11387         small copies by hand.
11388
11389 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11390
11391         [BZ #13761]
11392         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11393         _nss_compat_initgroups_dyn): Fall back to malloc/free
11394         for large group memberships.
11395
11396 2012-03-28  David S. Miller  <davem@davemloft.net>
11397
11398         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11399         that branches into memcpy.
11400         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11401         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11402         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11403         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11404         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11405         bits.
11406         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11407         implementation too.
11408         * sysdeps/sparc/mempcpy.S: New file.
11409
11410         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11411         the IFUNC routine in the libc case.
11412         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11413
11414         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11415         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11416         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11417         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11418         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11419         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11420         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11421         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11422
11423         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11424         loop to 256 bytes instead of 64 bytes and fix test signedness.
11425
11426         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11427         * sysdeps/sparc/sparc32/Makefile: rather than here...
11428         * sysdeps/sparc/sparc64/Makefile: and here.
11429
11430 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11431
11432         * malloc/mallocbug.c: Avoid warnings about unused variables.
11433
11434 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11435
11436         [BZ #13760]
11437         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11438         in the right place. Discard and retry query if response is
11439         larger than input buffer size.
11440
11441 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11442
11443         [BZ #369]
11444         [BZ #2678]
11445         [BZ #3866]
11446         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11447         x for large integer exponent.
11448         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11449         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11450         sign of result as needed afterwards.
11451         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11452         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11453         result for underflowing pow the same as for overflow.
11454         (__kernel_standard_l): Handle powl overflow and underflow here
11455         rather than calling __kernel_standard.
11456         * math/libm-test.inc (pow_test): Add more tests.
11457
11458         [BZ #3868]
11459         [BZ #13879]
11460         [BZ #13910]
11461         [BZ #13911]
11462         [BZ #13912]
11463         [BZ #13913]
11464         [BZ #13915]
11465         [BZ #13916]
11466         [BZ #13917]
11467         [BZ #13918]
11468         [BZ #13919]
11469         [BZ #13920]
11470         [BZ #13921]
11471         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11472         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11473         (__kernel_standard_l): New function.
11474         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11475         __kernel_standard.
11476         * math/w_acosl.c (__acosl): Likewise.
11477         * math/w_asinl.c (__asinl): Likewise.
11478         * math/w_atan2l.c (__atan2l): Likewise.
11479         * math/w_atanhl.c (__atanhl): Likewise.
11480         * math/w_coshl.c (__coshl): Likewise.
11481         * math/w_exp10l.c (__exp10l): Likewise.
11482         * math/w_exp2l.c (__exp2l): Likewise.
11483         * math/w_fmodl.c (__fmodl): Likewise.
11484         * math/w_hypotl.c (__hypotl): Likewise.
11485         * math/w_j0l.c (__j0l, __y0l): Likewise.
11486         * math/w_j1l.c (__j1l, __y1l): Likewise.
11487         * math/w_jnl.c (__jnl, __ynl): Likewise.
11488         * math/w_lgammal.c (__lgammal): Likewise.
11489         * math/w_log10l.c (__log10l): Likewise.
11490         * math/w_log2l.c (__log2l): Likewise.
11491         * math/w_logl.c (__logl): Likewise.
11492         * math/w_powl.c (__powl): Likewise.
11493         * math/w_remainderl.c (__remainderl): Likewise.
11494         * math/w_scalbl.c (sysv_scalbl): Likewise.
11495         * math/w_sinhl.c (__sinhl): Likewise.
11496         * math/w_sqrtl.c (__sqrtl): Likewise.
11497         * math/w_tgammal.c (__tgammal): Likewise.
11498         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11499         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11500         * math/libm-test.inc (acos_test): Add more tests.
11501         (acosh_test): Likewise.
11502         (asin_test): Likewise.
11503         (atanh_test): Likewise.
11504         (exp_test): Likewise.
11505         (exp10_test): Likewise.
11506         (exp2_test): Likewise.
11507         (expm1_test): Likewise.
11508         (lgamma_test): Likewise.
11509         (log_test): Likewise.
11510         (log10_test): Likewise.
11511         (log1p_test): Likewise.
11512         (log2_test): Likewise.
11513         (pow_test): Do not allow some spurious overflow exceptions.
11514         (sqrt_test): Add more tests.
11515         (tgamma_test): Likewise.
11516         (y0_test): Likewise.
11517         (y1_test): Likewise.
11518         (yn_test): Likewise.
11519
11520 2012-03-27  Anton Blanchard  <anton@samba.org>
11521
11522         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11523         MAP_HUGETLB.
11524         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11525         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11526         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11527
11528 2012-03-27  David S. Miller  <davem@davemloft.net>
11529
11530         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11531
11532         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11533         have-as-vis3 check.
11534
11535 2012-03-27  Andreas Jaeger  <aj@suse.de>
11536
11537         * sysdeps/x86_64/elf/configure.in: Moved to ...
11538         * sysdeps/x86_64/configure.in: ... here.
11539         * sysdeps/x86_64/elf/start.S: Moved to ...
11540         * sysdeps/x86_64/start.S: ... here.
11541         * sysdeps/x86_64/elf/configure: Delete.
11542
11543         * sysdeps/x86_64/configure.in: Merge contents from
11544         sysdeps/i386/configure.in (without i686 check).
11545
11546         * sysdeps/i386/elf/Versions: Merge into ...
11547         * sysdeps/i386/Versions: ... this.
11548         * sysdeps/i386/elf/Versions: Delete file.
11549         * sysdeps/i386/elf/start.S: Moved to ...
11550         * sysdeps/i386/start.S: ...here.
11551         * sysdeps/i386/elf/configure.in: Merge into...
11552         * sysdeps/i386/configure.in: ...here.
11553         * sysdeps/i386/elf/configure.in: Delete file.
11554         * sysdeps/i386/elf/configure: Delete file.
11555
11556         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11557         * debug/backtracesyms.c: ... here.
11558         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11559         * debug/backtracesymsfd.c: ... here.
11560         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11561         * sysdeps/generic/ifunc-sel.h: ... here.
11562
11563         * sysdeps/unix/i386/start.c: Delete file.
11564         * sysdeps/unix/sparc/start.c: Delete file.
11565         * sysdeps/unix/start.c: Delete file.
11566
11567         * sysdeps/sh/elf/configure.in: Moved to ...
11568         * sysdeps/sh/configure.in: ... here.
11569         * sysdeps/sh/elf/start.S: Moved to ...
11570         * sysdeps/sh/start.S: ... here.
11571         * sysdeps/sh/elf/configure: Delete file.
11572
11573         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11574         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11575         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11576         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11577         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11578         * sysdeps/powerpc/powerpc64/start.S: here.
11579         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11580         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11581         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11582         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11583         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11584
11585         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11586         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11587         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11588         * sysdeps/powerpc/powerpc32/start.S: ... here.
11589         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11590         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11591         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11592
11593         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11594         * sysdeps/powerpc/ifunc-sel.h: ... here.
11595         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11596         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11597
11598         * sysdeps/sparc/elf/configure.in: Moved to ...
11599         * sysdeps/sparc/configure.in: ... here.
11600         * sysdeps/sparc/elf/configure: Delete file.
11601         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11602         * sysdeps/sparc/sparc32/start.S: ... here.
11603         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11604         * sysdeps/sparc/sparc64/start.S: ... here.
11605         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11606         * sysdeps/sparc/sparc32/Makefile: ... this.
11607         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11608         * sysdeps/sparc/sparc64/Makefile: ... this.
11609
11610         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11611         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11612         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11613         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11614         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11615         * sysdeps/s390/s390-32/setjmp.S: ... here.
11616         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11617         * sysdeps/s390/s390-32/configure.in: ... here.
11618         * sysdeps/s390/s390-32/elf/configure: Delete file.
11619         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11620         * sysdeps/s390/s390-32/start.S: ... here.
11621
11622         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11623         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11624         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11625         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11626         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11627         * sysdeps/s390/s390-64/setjmp.S: ... here.
11628         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11629         * sysdeps/s390/s390-64/configure.in: ... here
11630         * sysdeps/s390/s390-64/elf/configure: Delete file.
11631         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11632         * sysdeps/s390/s390-64/start.S: ... here.
11633         * sysdeps/s390/s390-64/elf/configure: Delete.
11634
11635         * configure.in: Remove support for elf directories in sysdeps.
11636
11637         * configure: Regenerated.
11638         * sysdeps/i386/configure: Regenerated.
11639         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11640         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11641         * sysdeps/s390/s390-32/configure: Regenerated.
11642         * sysdeps/s390/s390-64/configure: Regenerated.
11643         * sysdeps/sh/configure: Regenerated.
11644         * sysdeps/sparc/configure: Regenerated.
11645         * sysdeps/x86_64/configure: Regenerated.
11646
11647 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11648
11649         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11650
11651         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11652         denormal result into account.
11653
11654 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11655
11656         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11657         Reported by Allan McRae <allan@archlinux.org>.
11658
11659 2012-03-23  Jeff Law  <law@redhat.com>
11660
11661         * nss/getnssent.c (__nss_getent): Fix typo.
11662
11663 2012-03-23  David S. Miller  <davem@davemloft.net>
11664
11665         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11666
11667 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11668
11669         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11670         to pad to uint64_t for each field.
11671         (dl_tls_index): Replace unsigned long with uint64_t.
11672
11673 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11674         Paul Pluzhnikov  <ppluzhnikov@google.com>
11675
11676         [BZ #6528]
11677         * grp/Makefile (otherlibs): Don't set it.
11678         * inet/Makefile (otherlibs): Likewise.
11679         * login/Makefile (otherlibs): Likewise.
11680         * nscd/Makefile (otherlibs): Likewise.
11681         * posix/Makefile (otherlibs): Likewise.
11682         * pwd/Makefile (otherlibs): Likewise.
11683         * rt/Makefile (otherlibs): Likewise.
11684         * sunrpc/Makefile (otherlibs): Likewise.
11685         * nss/Makefile (otherlibs): Likewise.
11686         Add libnss_files to routines and static-only-routines.
11687         ($(objpfx)getent): Remove rule.
11688         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11689         static-only-routines.
11690
11691 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11692
11693         [BZ #13892]
11694         * math/s_cexp.c: Include <float.h>.
11695         (__cexp): Handle exp result overflowing not necessarily
11696         overflowing both real and imaginary parts of result.
11697         * math/s_cexpf.c: Likewise.
11698         * math/s_cexpl.c: Likewise.
11699         * math/libm-test.inc (cexp_test): Add more tests.
11700         * sysdeps/i386/fpu/libm-test-ulps: Update.
11701         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11702
11703 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11704
11705         * include/link.h (ELFW): New macro.
11706         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11707         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11708
11709 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11710
11711         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11712         with uint64_t.
11713
11714 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11715
11716         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11717         declaration.
11718         (struct La_x32_retval): Likewise.
11719
11720 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11721
11722         * sysdeps/x86_64/preconfigure.in: New file.
11723         * sysdeps/x86_64/preconfigure: New generated file.
11724
11725 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11726
11727         [BZ #13824]
11728         * math/e_exp2l.c: Include <float.h>.
11729         (__ieee754_exp2l): Handle overflow and underflow cases
11730         separately.  Only pass fractional part of argument to
11731         __ieee754_expl.
11732         * math/libm-test.inc (exp2_test): Add more tests.
11733
11734         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11735         negating x to take absolute value.
11736         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11737         Likewise.
11738         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11739         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11740         Likewise.
11741         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11742         computing low part if x was negated.
11743         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11744
11745 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11746
11747         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11748         la_x32_gnu_pltexit.
11749         (pltexit): Cast int_retval to ptrdiff_t.
11750         * elf/tst-auditmod3b.c: Likewise.
11751         * elf/tst-auditmod4b.c: Likewise.
11752         * elf/tst-auditmod5b.c: Likewise.
11753         * elf/tst-auditmod6b.c: Likewise.
11754         * elf/tst-auditmod6c.c: Likewise.
11755         * elf/tst-auditmod7b.c: Likewise.
11756
11757         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11758         and x32_gnu_pltexit.
11759
11760         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11761         __ELF_NATIVE_CLASS.
11762         (La_x32_regs): New macro.
11763         (La_x32_retval): Likewise.
11764         (la_x32_gnu_pltenter): New function prototype.
11765         (la_x32_gnu_pltexit): Likewise.
11766
11767 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11768
11769         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11770         exponent.
11771
11772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11773
11774         * configure.in (libc_cv_cc_nofma): Check for option to disable
11775         generation of FMA instructions.
11776         * configure: Regenerate.
11777         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11778         * sysdeps/ieee754/dbl-64/Makefile: New file.
11779         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11780         Remove brandred-fma4.
11781         (CFLAGS-brandred-fma4.c): Remove.
11782         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11783         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11784         define.
11785         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11786         define.
11787
11788 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11789
11790         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11791         LLONG_MAX != LONG_MAX.
11792         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11793         (_fitoa_word): Likewise.
11794         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11795         LLONG_MAX != LONG_MAX.
11796         * stdio-common/_itowa.h: Include <_itoa.h>.
11797         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11798         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11799         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11800         only if not defined.
11801         (_ITOA_WORD_TYPE): Likewise.
11802         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11803         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11804
11805 2012-03-21  David S. Miller  <davem@davemloft.net>
11806
11807         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11808
11809 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11810
11811         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11812         of x86_64 when setting libc_cv_slibdir, libdir and
11813         libc_cv_localedir.
11814         * sysdeps/unix/sysv/linux/configure: Regenerated.
11815
11816 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11817
11818         * manual/lang.texi (Old Varargs): Remove section.
11819         (How Variadic): Update menu.
11820         (va_start): Do not mention varargs.h.
11821
11822 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11823             Joseph Myers  <joseph@codesourcery.com>
11824
11825         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11826         link test.
11827         * configure: Regenerated.
11828
11829 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11830
11831         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11832         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11833         conformtest.pl
11834
11835 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11836
11837         * NOTES: Remove.
11838         * Makefile (files-for-dist): Remove NOTES.
11839         (NOTES): Remove rule.
11840         * README: Don't refer to NOTES.
11841         * manual/creature.texi: Don't include macros.texi.
11842         * manual/intro.texi (creature.texi): Remove comment referring to
11843         NOTES.
11844
11845         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11846         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11847         * configure: Regenerated.
11848         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11849         LIBC_TRY_CC_OPTION.
11850         (libc_cv_as_i686): Likewise.
11851         (libc_cv_cc_avx): Likewise.
11852         (libc_cv_cc_sse2avx): Likewise.
11853         (libc_cv_cc_fma4): Likewise.
11854         (libc_cv_cc_novzeroupper): Likewise.
11855         * sysdeps/i386/configure: Regenerated.
11856
11857         [BZ #13883]
11858         * sysdeps/i386/fpu/s_cexp.S: Remove.
11859         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11860         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11861         * math/libm-test.inc (cexp_test): Add more tests.
11862         * sysdeps/i386/fpu/libm-test-ulps: Update.
11863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11864
11865 2012-03-21  Allan McRae  <allan@archlinux.org>
11866
11867         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11868
11869 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11870
11871         [BZ #13871]
11872         * math/w_exp2.c: Do not include <float.h>.
11873         (o_threshold, u_threshold): Remove.
11874         (__exp2): Calculate result before checking finiteness and calling
11875         __kernel_standard.
11876         * math/w_exp2f.c: Likewise.
11877         * math/w_exp2l.c: Likewise.
11878         * math/libm-test.inc (exp2_test): Require overflow exception for
11879         1e6 input.
11880
11881         [BZ #3866]
11882         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11883         range of signed 64-bit integers before using fistpll.  Remove
11884         checks for whether integers fit in mantissa bits.
11885         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11886         the range of signed 32-bit integers before using fistpl.  Remove
11887         checks for whether integers fit in mantissa bits.
11888         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11889         (__ieee754_powl): Test for y outside the range of signed 64-bit
11890         integers before using fistpll.  Reduce 64-bit values to 63-bit
11891         ones as needed.
11892         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11893         divide-by-zero is raised for zero to large negative powers.
11894         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11895         (__ieee754_powl): Test for y outside the range of signed 64-bit
11896         integers before using fistpll.  Reduce 64-bit values to 63-bit
11897         ones as needed.
11898         * math/libm-test.inc (pow_test): Add more tests.
11899
11900 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11901
11902         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11903         <stdio-common/_itoa.h>.
11904         * debug/segfault.c: Likewise.
11905         * elf/dl-cache.c: Likewise.
11906         * elf/dl-minimal.c: Likewise.
11907         * elf/dl-misc.c: Likewise.
11908         * elf/dl-sysdep.c: Likewise.
11909         * elf/dl-version.c: Likewise.
11910         * elf/rtld.c: Likewise.
11911         * hurd/hurdsock.c: Likewise.
11912         * hurd/lookup-retry.c: Likewise.
11913         * malloc/malloc.c: Likewise.
11914         * malloc/mtrace.c: Likewise.
11915         * nscd/nscd_getgr_r.c: Likewise.
11916         * nscd/nscd_getpw_r.c: Likewise.
11917         * nscd/nscd_getserv_r.c: Likewise.
11918         * posix/getopt_init.c: Likewise.
11919         * posix/wordexp.c: Likewise.
11920         * stdio-common/_itoa.c: Likewise.
11921         * stdio-common/printf_fphex.c: Likewise.
11922         * stdio-common/vfprintf.c: Likewise.
11923         * string/_strerror.c: Likewise.
11924         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11925         * sysdeps/i386/i686/hp-timing.h: Likewise.
11926         * sysdeps/mach/_strerror.c: Likewise.
11927         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11928         * sysdeps/mach/hurd/sethostid.c: Likewise.
11929         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11930         * sysdeps/mach/xpg-strerror.c: Likewise.
11931         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11932         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11933         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11934         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11935         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11936         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11937         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11938         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11939         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11940         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11941         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11942         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11943         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11944         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11945         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11946         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11947         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11948         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11949         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11950         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11951         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11952
11953         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11954
11955         * stdio-common/_itoa.h: Moved to ...
11956         * sysdeps/generic/_itoa.h: Here.
11957
11958         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11959
11960         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11961         instead of "_itoa.h" and "_itowa.h".
11962         * stdio-common/vfprintf.: Likewise.
11963
11964 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11965
11966         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11967         <bits/wordsize.h>.
11968         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11969         (__signbit): Likwise.
11970         (llrintf): Likwise.
11971         (llrint): Likwise.
11972
11973 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11974
11975         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11976         __WORDSIZE != 64.
11977
11978 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11979
11980         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11981         OVERFLOW_EXCEPTION_OK.
11982         * math/libm-test.inc ("Philosophy"): Update comment about
11983         exception testing.
11984         (OVERFLOW_EXCEPTION): Define.
11985         (OVERFLOW_EXCEPTION_OK): Likewise.
11986         (INVALID_EXCEPTION_OK): Renumber.
11987         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11988         (IGNORE_ZERO_INF_SIGN): Likewise.
11989         (test_exceptions): Handle FE_OVERFLOW.
11990         (exp10_test): Expect overflow exceptions.
11991         (exp2_test): Likewise.
11992         (expm1_test): Likewise.
11993         (nextafter_test): Likewise.
11994         (pow_test): Likewise.
11995         (scalbn_test): Likewise.
11996         (scalbln_test): Likewise.
11997
11998 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11999
12000         * sysdeps/x86_64/bits/atomic.h
12001         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
12002         64bit integer.
12003         (atomic_exchange_acq): Likewise.
12004         (__arch_exchange_and_add_body): Likewise.
12005         (__arch_add_body): Likewise.
12006         (atomic_add_negative): Likewise.
12007         (atomic_add_zero): Likewise.
12008
12009 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12010
12011         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
12012         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
12013
12014 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12015
12016         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
12017         Check __x86_64__ instead of __WORDSIZE.
12018
12019 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12020
12021         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
12022
12023 2012-03-19  David S. Miller  <davem@davemloft.net>
12024
12025         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12026
12027         * sysdeps/sparc/fpu/fenv_private.h: New file.
12028         * sysdeps/sparc/fpu/math_private.h: Use it.
12029         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
12030         Remove.
12031         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
12032         (libc_feholdexcept_setroundl): Remove.
12033         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
12034         Remove.
12035         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
12036         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
12037
12038 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12039
12040         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
12041         int64_t instead of long int.
12042         (INSERT_WORDS64): Likwise.
12043
12044 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12045
12046         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
12047         _Unwind_GetCFA return to _Unwind_Ptr first.
12048
12049 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
12050
12051         [BZ #13629]
12052         * math/s_clog.c: Include <float.h>.
12053         (__clog): Scale large or subnormal inputs.
12054         * math/s_clogf.c: Likewise.
12055         * math/s_clogl.c: Likewise.
12056         * math/s_clog10.c: Include <float.h>.
12057         (M_LOG10_2): Define.
12058         (__clog10): Scale large or subnormal inputs.
12059         * math/s_clog10f.c: Likewise.
12060         * math/s_clog10l.c: Likewise.
12061         * math/libm-test.inc (clog_test): Add more tests.
12062         (clog10_test): Likewise.
12063         * sysdeps/i386/fpu/libm-test-ulps: Update.
12064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12065
12066         [BZ #11451]
12067         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
12068         x and y.
12069         * math/libm-test.inc (atan2_test): Add another test.
12070
12071         * Makerules (common-objdir-compile): Remove.
12072         * sysdeps/unix/Makefile (config-generated): Do not add
12073         $(unix-generated) to variable.
12074         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
12075         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
12076         Remove rule.
12077         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
12078         Likewise.
12079         [generic bits/local_lim.h] (before-compile): Do not append to
12080         variable.
12081         [generic bits/local_lim.h] (common-generated): Likewise.
12082         [generic sys/param.h] (before-compile): Do not append to variable.
12083         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
12084         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
12085         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
12086         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
12087         include.
12088         [generic sys/param.h] (sys/param.h-includes): Remove variable.
12089         [generic sys/param.h] (sys/param.h-includes): Remove rule.
12090         [generic sys/param.h] ($(addprefix
12091         $(common-objpfx),$(sys/param.h-includes))): Likewise.
12092         [generic sys/param.h] (common-generated): Do not append to
12093         variable.
12094         [generic sys/param.h] (sysdep_headers): Likewise.
12095         [generic bits/errno.h] (before-compile): Do not append to
12096         variable.
12097         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12098         rule.
12099         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12100         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12101         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12102         [generic bits/errno.h] (common-generated): Do not append to
12103         variable.
12104         [generic bits/ioctls.h] (before-compile): Do not append to
12105         variable.
12106         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12107         rule.
12108         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12109         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12110         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12111         rule.
12112         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12113         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12114         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12115         [generic bits/ioctls.h] (common-generated): Do not append to
12116         variable.
12117         [generic sys/syscall.h] (syscall.h): Remove variable.
12118         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12119         rule.
12120         [generic sys/syscall.h] (before-compile): Do not append to
12121         variable.
12122         [generic sys/syscall.h] (common-generated): Likewise.
12123         * sysdeps/unix/errnos-tmpl.c: Remove file.
12124         * sysdeps/unix/errnos.awk: Likewise.
12125         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12126         * sysdeps/unix/ioctls.awk: Likewise.
12127         * sysdeps/unix/mk-local_lim.c: Likewise.
12128         * sysdeps/unix/snarf-ioctls: Likewise.
12129
12130 2012-03-19  Richard Henderson  <rth@twiddle.net>
12131
12132         * sysdeps/i386/fpu/fenv_private.h: New file.
12133         * sysdeps/i386/fpu/math_private.h: Use it.
12134         (math_opt_barrier, math_force_eval): Remove.
12135         (libc_feholdexcept_setround_53bit): Remove.
12136         (libc_feupdateenv_53bit): Remove.
12137         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12138         (math_opt_barrier, math_force_eval): Remove.
12139         (libc_feholdexcept): Remove.
12140         (libc_feholdexcept_setround): Remove.
12141         (libc_fetestexcept, libc_fesetenv): Remove.
12142         (libc_feupdateenv_test): Remove.
12143         (libc_feupdateenv, libc_feholdsetround): Remove.
12144         (libc_feresetround): Remove.
12145
12146         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12147         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12148
12149         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12150         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12151         (libc_feupdateenv_testl): New.
12152         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12153         (libc_feupdateenv_testf): New.
12154         (libc_feupdateenv): Use libc_feupdateenv_test.
12155         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12156         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12157
12158         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12159         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12160         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12161         (libc_feresetround_noex): New.
12162         (libc_feresetround_noexf): New.
12163         (libc_feresetround_noexl): New.
12164         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12165         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12166         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12167         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12168         SET_RESTORE_ROUND.
12169         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12170         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12171         (__cos): Likewise.
12172         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12173         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12174         SET_RESTORE_ROUND_NOEX.
12175         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12176         SET_RESTORE_ROUND_NOEXF.
12177         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12178         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12179         (libc_feholdsetroundf): New.
12180         (libc_feresetround, libc_feresetroundf): New.
12181
12182         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12183         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12184         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12185
12186         * sysdeps/generic/math_private.h: Include <fenv.h>.
12187         (default_libc_feholdexcept): New.
12188         (default_libc_feholdexcept_setround): New.
12189         (default_libc_fesetenv, default_libc_feupdateenv): New.
12190         (libc_feholdexcept): Only define if undefined.
12191         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12192         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12193         (libc_feholdexcept_setroundl): Likewise.
12194         (libc_feholdexcept_setround_53bit): Likewise.
12195         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12196         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12197         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12198         (libc_feupdateenv_53bit): Likewise.
12199         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12200         (libc_feholdexcept): Convert from macro to inline function.
12201         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12202         (libc_fesetenv, libc_feupdateenv): Likewise.
12203
12204         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12205         not previously defined.
12206         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12207         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12208         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12209         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12210         * sysdeps/ieee754/flt-32/math_private.h: New file.
12211         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12212         math_private.h below SET_FLOAT_WORD.
12213         (__isnan, __isinf_ns, __finite): Remove.
12214         (__isnanf, __isinf_nsf, __finitef): Remove.
12215
12216 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12217
12218         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12219
12220 2012-03-17  David S. Miller  <davem@davemloft.net>
12221
12222         [BZ #6471]
12223         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12224         for 2.16.
12225
12226 2012-03-16  David S. Miller  <davem@davemloft.net>
12227
12228         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12229         warnings.
12230
12231         [BZ #6471]
12232         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12233         properly.
12234         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12235         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12236         sysdep_routines when subdir is sysvipc.
12237         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12238         __getshmlba helper.
12239
12240         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12241
12242 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12243
12244         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12245         [__LP64__].
12246
12247 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12248
12249         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12250         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12251         (__lround): Renamed to ...
12252         (__llround): This.  Replace long int with long long int.
12253         Define lround functions as aliases of llround functions.
12254         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12255
12256 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12257
12258         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12259         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12260         adresses to uintptr_t.  Replace "long int" and "unsigned long
12261         int" with "greg_t" on va_arg.
12262
12263 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12264
12265         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12266         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12267
12268         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12269         Move e_machine check before EI_CLASS check.  Handle x32
12270         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12271         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12272         SKIP_EM_IA_64 and include
12273         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12274
12275         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12276         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12277         (add_system_dir): New macro.
12278
12279         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12280         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12281
12282 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12283
12284         [BZ #2551]
12285         [BZ #2552]
12286         [BZ #2553]
12287         [BZ #2554]
12288         [BZ #2562]
12289         [BZ #2563]
12290         [BZ #2565]
12291         [BZ #2566]
12292         [BZ #2576]
12293         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12294         (y0): Likewise.
12295         * math/w_j0f.c (j0f): Likewise.
12296         (y0f): Likewise.
12297         * math/w_j0l.c (__j0l): Likewise.
12298         (__y0l): Likewise.
12299         * math/w_j1.c (j1): Likewise.
12300         (y1): Likewise.
12301         * math/w_j1f.c (j1f): Likewise.
12302         (y1f): Likewise.
12303         * math/w_j1l.c (__j1l): Likewise.
12304         (__y1l): Likewise.
12305         * math/w_jn.c (jn): Likewise.
12306         (yn): Likewise.
12307         * math/w_jnf.c (jnf): Likewise.
12308         (ynf): Likewise.
12309         * math/w_jnl.c (__jnl): Likewise.
12310         (__ynl): Likewise.
12311         * math/libm-test.inc (j0_test): Add more tests.
12312         (j1_test): Likewise.
12313         (jn_test): Likewise.  Add trailing semicolon to existing test.
12314         (y0_test): Likewise.
12315         (y1_test): Likewise.
12316         * sysdeps/i386/fpu/libm-test-ulps: Update.
12317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12318
12319         [BZ #13851]
12320         [BZ #13854]
12321         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12322         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12323         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12324         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12325         (__tanl): Set errno for infinite argument.
12326         * sysdeps/i386/fpu/mptan.c: Remove.
12327         * sysdeps/i386/fpu/s_tan.S: Likewise.
12328         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12329         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12330         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12331         * math/libm-test.inc (tan_test): Add more tests and enable more
12332         tests for double and long double.
12333         * sysdeps/i386/fpu/libm-test-ulps: Update.
12334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12335
12336 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12337
12338         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12339         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12340
12341 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12342
12343         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12344         * configure.in: Use it for both main tree and add-ons.
12345         * configure: Regenerated.
12346
12347 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12348
12349         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12350
12351 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12352
12353         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12354         in comment.
12355
12356         [BZ #13851]
12357         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12358         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12359         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12360         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12361         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12362         infinite argument.
12363         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12364         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12365         != 0 for prec == 2.
12366         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12367         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12368         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12369         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12370         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12371         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12372         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12373         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12374         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12375         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12376         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12377         * math/libm-test.inc (cos_test): Add more tests and enable more
12378         tests for long double.
12379         (sin_test): Likewise.
12380         (sincos_test): Likewise.
12381         * sysdeps/i386/fpu/libm-test-ulps: Update.
12382         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12383
12384 2012-03-16  David S. Miller  <davem@davemloft.net>
12385
12386         * sysdeps/sparc/fpu/math_private.h: New file.
12387
12388 2012-03-15  David S. Miller  <davem@davemloft.net>
12389
12390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12391         file.
12392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12394         file.
12395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12396         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12397         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12398         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12399         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12400         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12401         sysdep routines.
12402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12403
12404         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12405         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12406
12407         * sysdeps/sparc/sparc-ifunc.h: New file.
12408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12409         sparc-ifunc.h
12410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12412         Likewise.
12413         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12414         Likewise.
12415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12419         Likewise.
12420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12421         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12422         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12423         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12424         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12425         Likewise.
12426         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12427         Likewise.
12428         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12429         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12430         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12432         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12433         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12434         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12435         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12436         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12437         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12438         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12439         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12440         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12441         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12442         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12443         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12444         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12445         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12446         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12447         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12448         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12449         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12450         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12451         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12452
12453 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12454
12455         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12456         scaling.
12457         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12458
12459 2012-03-15  Andreas Jaeger  <aj@suse.de>
12460
12461         [BZ #13852]
12462         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12463         ieee754/flt-32 implementation for sin, cos and sincos.
12464         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12465         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12466         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12467         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12468         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12469         ieee754/flt-32 implementation for tan.
12470
12471         * math/libm-test.inc (cos_test): Enable some large input tests for
12472         float as well
12473         (sin_test): Likewise.
12474         (sincos_test): Likewise.
12475         (tan_test): Add tests for large input.
12476
12477         * sysdeps/i386/fpu/libm-test-ulps: Update.
12478
12479 2012-03-15  Andreas Jaeger  <aj@suse.de>
12480
12481         [BZ #13658]
12482         * math/libm-test.inc (cos_test): Add more test cases.
12483         (sin_test): Likewise.
12484         (sincos_test): Likewise.
12485
12486 2012-03-15  Andreas Jaeger  <aj@suse.de>
12487
12488         [BZ #13837]
12489         * math/libm-test.inc (cos_test): Add a test case for large input
12490         value.
12491         (sin_test): Likewise.
12492         (sincos_test): Likewise.
12493
12494 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12495         Joseph Myers  <joseph@codesourcery.com>
12496
12497         [BZ #13658]
12498         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12499         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12500         * sysdeps/i386/fpu/branred.c: Likewise.
12501         * sysdeps/i386/fpu/dosincos.c: Likewise.
12502         * sysdeps/i386/fpu/mpa.c: Likewise.
12503         * sysdeps/i386/fpu/s_cos.S: Likewise.
12504         * sysdeps/i386/fpu/s_sin.S: Likewise.
12505         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12506         * sysdeps/i386/fpu/sincos32.c: Likewise.
12507
12508         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12509         Define.
12510         (libc_feupdateenv_53bit): Define.
12511         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12512         Define.
12513         (libc_feupdateenv_53bit): Define.
12514
12515         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12516         53 bit (without extend i386 double precision).
12517
12518         * math/libm-test.inc (sincos_test): Add tests for large input.
12519         (sin): Likewise.
12520         (cos): Likewise.
12521
12522         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12523
12524 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12525
12526         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12527
12528 2012-03-15  David S. Miller  <davem@davemloft.net>
12529
12530         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12531         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12532         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12533         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12534         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12535         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12538         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12539         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12540         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12541         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12542         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12543         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12544         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12546         file.
12547         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12549         file.
12550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12552         file.
12553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12554         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12555         file.
12556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12557         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12558         fmin/fmax sysdep routines.
12559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12560
12561 2012-03-14  David S. Miller  <davem@davemloft.net>
12562
12563         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12564         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12565         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12566         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12567         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12568         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12569         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12570         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12571         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12572         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12573         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12574         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12575         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12576         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12577         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12578         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12579         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12580         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12581         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12582         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12583         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12584         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12585         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12586         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12587         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12588         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12589         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12590         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12591         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12592         routines.
12593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12594         file.
12595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12597         file.
12598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12599         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12600         file.
12601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12603         file.
12604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12606         file.
12607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12609         file.
12610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12611         file.
12612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12613         file.
12614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12615         file.
12616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12617         New file.
12618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12619         file.
12620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12621         file.
12622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12624         file.
12625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12627         file.
12628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12630         file.
12631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12633         VIS3 routines.
12634
12635         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12636         New file.
12637
12638         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12639
12640         * sysdeps/sparc/configure.in: New file.
12641         * sysdeps/sparc/configure: Generate.
12642         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12643         * configure: Regenerate.
12644         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12645         * config.make.in (have-as-vis3): New.
12646         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12647         available use -Av9d instead of -Av9a.
12648         * sysdeps/sparc/sparc64/Makefile: Likewise.
12649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12650         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12651         New file.
12652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12653         file.
12654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12655         New file.
12656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12657         file.
12658         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12659         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12660         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12661         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12662         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12663
12664         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12665         fzeros/fnegs to load 0x80000000 into a float register instead of
12666         using the stack.
12667         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12668
12669 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12670
12671         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12672         bits/syscall.h.
12673         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12674         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12675         ($(inst_includedir)/bits/syscall.h): Remove rule.
12676         ($(objpfx)bits/syscall.d): Include instead of
12677         $(objpfx)syscall-list.d.
12678         (generated): Change syscall-list.h and syscall-list.d to
12679         bits/syscall.h and bits/syscall.d.
12680
12681 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12682
12683         [BZ #13846]
12684         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12685
12686 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12687
12688         [BZ #13841]
12689         * math/s_csqrt.c: Include <float.h>.
12690         (__csqrt): Scale large or subnormal inputs.
12691         * math/s_csqrtf.c: Likewise.
12692         * math/s_csqrtl.c: Likewise.
12693         * math/libm-test.inc (csqrt_test): Add more tests.
12694         * sysdeps/i386/fpu/libm-test-ulps: Update.
12695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12696
12697         [BZ #13840]
12698         * math/libm-test.inc (hypot_test): Add more tests.
12699
12700 2012-03-13  David S. Miller  <davem@davemloft.net>
12701
12702         [BZ #13840]
12703         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12704         double-precision for the calculation instead of scaling.
12705
12706 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12707
12708         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12709         manipulate bits before adding and subtracting TWO52[sx].
12710         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12711         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12712         Likewise.
12713         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12714
12715 2012-03-13  David S. Miller  <davem@davemloft.net>
12716
12717         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12718         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12719         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12720         rtld-global-offsets.h
12721         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12722
12723         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12724         large parameters.
12725
12726         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12727
12728         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12729         'err' in the ifdef scope in which it is actually used.
12730
12731         * nss/nss_db/db-init.c: Include string.h
12732
12733 2012-03-12  David S. Miller  <davem@davemloft.net>
12734
12735         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12736         masking out of the most significant byte of random value used.
12737         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12738         Fix coding style in previous change.
12739
12740         * sysdeps/unix/sysv/linux/kernel-features.h
12741         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12742         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12743         expression.
12744         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12745         later.
12746
12747 2012-03-11  David S. Miller  <davem@davemloft.net>
12748
12749         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12750         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12751         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12752         for 'resultvar' otherwise things get truncated on 64-bit.
12753
12754         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12755         Fix masking out of the most significant byte of random value used.
12756
12757         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12758
12759 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12760
12761         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12762
12763 2012-03-09  David S. Miller  <davem@davemloft.net>
12764
12765         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12766         variables with appropriate CPP guards.
12767         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12768         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12769         on resulting framesize and the management of the outregs buffer for pltexit.
12770         Preserve floating point return values across _dl_call_pltexit call.
12771         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12772         framesize and the management of the outregs buffer for pltexit.
12773         Preserve floating point return values across _dl_call_pltexit
12774         call.
12775         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12776         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12777         (print_exit): Fix format string for return register value.
12778
12779 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12780
12781         * sunrpc/Makefile (others): Add rpcgen.
12782         ($(objpfx)rpcgen): Remove special build rule and dependency on
12783         libc.
12784         * sunrpc/rpcgen.c: New file.
12785
12786 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12787
12788         [BZ #13673]
12789         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12790         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12791         * sysdeps/i386/crti.S: Likewise.
12792         * sysdeps/i386/crtn.S: Likewise.
12793         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12794         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12795         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12796         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12797         * sysdeps/sh/crti.S: Likewise.
12798         * sysdeps/sh/crtn.S: Likewise.
12799         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12800
12801         [BZ #13673]
12802         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12803         with URL.
12804         * locale/programs/locfile-kw.gperf: Likewise.
12805         * locale/programs/charmap-kw.h: Regenerated.
12806         * locale/programs/locfile-kw.h: Likewise.
12807
12808         [BZ #13673]
12809         * intl/plural.y: Replace FSF snail mail address with URL.
12810         * intl/plural.c: Regenerated.
12811
12812 2012-03-09  Richard Henderson  <rth@twiddle.net>
12813
12814         * include/math_private.h: Remove file.
12815         * math/math_private.h: Move file ...
12816         * sysdeps/generic/math_private.h: ... here.
12817
12818         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12819         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12820         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12821
12822         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12823         and <math_private.h>.
12824         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12825         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12826         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12827         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12828         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12829         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12830         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12831         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12832         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12833         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12834         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12835         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12836         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12837         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12838         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12839         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12840         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12841         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12842         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12843         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12844         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12845         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12846         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12847         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12848         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12849         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12850         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12851         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12852         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12853         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12854         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12855         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12856         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12857         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12858         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12859         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12860         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12861         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12862         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12863         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12864         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12865         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12866         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12867         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12868         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12869         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12870         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12871         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12872         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12873         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12874         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12875         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12876         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12877         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12878         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12879         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12880         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12881         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12882         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12883         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12884         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12885         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12886         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12887         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12888         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12889         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12890         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12891         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12892         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12893         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12894         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12895         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12896         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12897         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12898         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12899         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12900         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12901         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12902         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12903         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12904         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12905         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12906         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12907         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12908         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12909         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12910         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12911         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12912         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12913         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12914         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12915         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12916         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12917         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12918         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12919         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12920         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12921         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12922         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12923         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12924         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12925         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12926         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12927         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12928         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12929         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12930         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12931         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12932         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12933         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12934         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12935         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12936         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12937         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12938         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12939         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12940         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12941         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12942         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12943         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12944         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12945         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12946         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12947         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12948         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12949         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12950         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12951         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12952         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12953         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12954         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12955         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12956         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12957         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12958         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12959         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12960         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12961         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12962         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12963         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12964         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12965         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12966         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12967         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12968         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12969         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12970         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12971         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12972         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12973         * sysdeps/ieee754/k_standard.c: Likewise.
12974         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12978         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12981         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12983         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12984         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12985         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12986         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12987         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12988         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12990         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12991         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12992         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12993         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12996         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12997         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12998         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12999         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
13000         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
13001         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
13002         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
13003         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
13004         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
13005         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
13006         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
13007         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
13008         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
13009         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
13010         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
13011         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
13012         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
13013         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
13014         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
13015         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
13016         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
13017         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
13018         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
13019         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13021         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13022         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13023         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13024         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13025         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
13026         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13027         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
13028         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13029         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13030         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
13031         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
13032         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13037         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13038         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13041         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13042         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13043         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13044         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13045         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13046         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13047         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13048         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13049         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13050         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
13051         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13052         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13053         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13055         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13056         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13057         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13058         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13059         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13060         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13061         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
13063         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13064         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
13065         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13066         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
13067         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13070         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
13071         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
13072         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
13073         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
13074         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13075         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13076         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13077         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13078         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
13079         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13080         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13081         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
13082         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
13083         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13084         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13085         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13086         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13087         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13088         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13089         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13090         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13091         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13092         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13093         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13094         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13095         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13096         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13097         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13098         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13099         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13100         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13101         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13102         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13103         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13104         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13105         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13106         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13107         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13108         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13109         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13110         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13111         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13112         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13113         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13114         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13115         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13116         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13117         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13118         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13119         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13120         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13121         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13122         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13123         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13124         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13125         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13126         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13127         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13128         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13129         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13130         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13131         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13132         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13133         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13134         * sysdeps/ieee754/s_lib_version.c: Likewise.
13135         * sysdeps/ieee754/s_matherr.c: Likewise.
13136         * sysdeps/ieee754/s_signgam.c: Likewise.
13137         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13138         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13139         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13140         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13141         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13142         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13143         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13144         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13145         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13146         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13147         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13148         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13149         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13150         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13151         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13152         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13153         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13154         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13155         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13156         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13157         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13158
13159 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13160
13161         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13162         * sunrpc/rpc_main.c: Likewise.
13163         * sunrpc/rpc_svcout.c: Likewise.
13164
13165 2012-03-09  David S. Miller  <davem@davemloft.net>
13166
13167         * include/math_private.h: New file.
13168
13169 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13170
13171         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13172         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13173         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13174         from <bits/socket_type.h>.
13175         (enum __socket_type): Don't define here.
13176         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13177         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13178         bits/socket_type.h.
13179
13180         [BZ #13566]
13181         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13182         checking __USE_GNU.
13183
13184         * Makerules ($(inst_includedir)/%.h): New rule.
13185         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13186         (install-others): Remove variable setting.
13187         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13188
13189 2012-03-08  Richard Henderson  <rth@twiddle.net>
13190
13191         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13192         from macro to inline function; merge with the
13193         !__LIBC_INTERNAL_MATH_INLINES version.
13194         (__ieee754_sqrtf): Likewise.
13195
13196         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13197         to inline function.
13198         (__rintf, __floor, __floorf): Likewise.
13199
13200         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13201         macro to inline function.
13202         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13203
13204         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13205         not <math/math_private.h>.
13206
13207 2012-03-08  David S. Miller  <davem@davemloft.net>
13208
13209         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13210         copyright year.
13211         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13212
13213 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13214
13215         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13216         normalization.
13217         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13218         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13219
13220 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13221
13222         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13223         be defined individually, they must be defined as a block.  Define
13224         S for printing a string instead of hidint the different by using a
13225         macro for adding the 'l'.
13226         * stdio-common/tst-fphex-wide.c: Adjust.
13227
13228 2012-03-07  Marek Polacek  <polacek@redhat.com>
13229
13230         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13231
13232 2012-03-08  Marek Polacek  <polacek@redhat.com>
13233
13234         [BZ #13806]
13235         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13236         * stdio-common/tst-fphex.c: Define a few macros to make the
13237         test reusable.  Use them.
13238         * stdio-common/tst-fphex-wide.c: New file.
13239
13240 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13241
13242         [BZ #6911]
13243         * manual/macros.texi (gnusystems): New macro.
13244         (nongnusystems): Likewise.
13245         (gnulinuxhurdsystems): Likewise.
13246         (gnuhurdsystems): Likewise..
13247         (gnulinuxsystems): Likewise.
13248         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13249         variants of the GNU system, not "GNU system".
13250         * manual/conf.texi: Likewise.
13251         * manual/errno.texi: Likewise.  Update example of errno macro
13252         expansion.
13253         * manual/filesys.texi: Likewise.
13254         (getumask): Document as specific to GNU/Hurd.
13255         * manual/install.texi: Likewise.  Reword some references to
13256         GNU/Linux.
13257         * manual/intro.texi: Likewise.
13258         * manual/io.texi: Likewise.
13259         (File Name Portability): Detail which constraints are inapplicable
13260         to all GNU systems and which are only inapplicable to GNU/Hurd.
13261         * manual/job.texi: Likewise.
13262         * manual/llio.texi: Likewise.
13263         (O_NOCTTY): Document as present on GNU/Linux.
13264         * manual/maint.texi: Likewise.
13265         * manual/memory.texi: Likewise.
13266         * manual/pattern.texi: Likewise.
13267         * manual/pipe.texi: Likewise.
13268         * manual/process.texi: Likewise.
13269         * manual/resource.texi: Likewise.
13270         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13271         child on GNU/Hurd.
13272         * manual/setjmp.texi: Likewise.
13273         * manual/signal.texi: Likewise.
13274         * manual/startup.texi: Likewise.
13275         * manual/stdio.texi: Likewise.
13276         * manual/terminal.texi: Likewise.
13277         (ONLCR): Document as POSIX.
13278         (OXTABS): Document availability on GNU/Linux as XTABS.
13279         (ONOEOT): Document availability separately from other bits.
13280         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13281         * manual/time.texi: Likewise.
13282         * manual/users.texi: Likewise.
13283         * INSTALL: Regenerated.
13284         * sysdeps/gnu/errlist.c: Regenerated.
13285
13286         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13287         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13288         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13289         puts.
13290         * configure: Regenerated.
13291
13292 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13293
13294         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13295         default includes instead of AC_HEADER_CHECK.
13296         * sysdeps/i386/configure: Regenerated.
13297
13298         [BZ #10716]
13299         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13300         * math/s_cacoshf.c (__cacoshf): Likewise.
13301         * math/s_cacoshl.c (__cacoshl): Likewise.
13302         * math/s_casinh.c (__casinh): Set signs of result from argument.
13303         * math/s_casinhf.c (__casinhf): Likewise.
13304         * math/s_casinhl.c (__casinhl): Likewise.
13305         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13306         (casinh_test): Add more tests.
13307         * sysdeps/i386/fpu/libm-test-ulps: Update.
13308         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13309
13310 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13311
13312         * po/zh_TW.po: Update from translation team.
13313
13314         * login/Makefile (distribute): Remove variable.
13315         * catgets/Makefile: Likewise.
13316         * mach/Makefile: Likewise.
13317         * malloc/Makefile: Likewise.
13318         * misc/Makefile: Likewise.
13319         * iconv/Makefile: Likewise.
13320         * nscd/Makefile: Likewise.
13321         * hurd/Makefile: Likewise.
13322         * manual/Makefile: Likewise.
13323         * locale/Makefile: Likewise.
13324         * intl/Makefile: Likewise.
13325         * conform/Makefile: Likewise.
13326         * nss/Makefile: Likewise.
13327         * time/Makefile: Likewise.
13328         * soft-fp/Makefile: Likewise.
13329         * dirent/Makefile: Likewise.
13330         * gmon/Makefile: Likewise.
13331         * po/Makefile: Likewise.
13332         * rt/Makefile: Likewise.
13333         * socket/Makefile: Likewise.
13334         * math/Makefile: Likewise.
13335         * signal/Makefile: Likewise.
13336         * debug/Makefile: Likewise.
13337         * elf/Makefile: Likewise.
13338         * timezone/Makefile: Likewise.
13339         * stdlib/Makefile: Likewise.
13340         * iconvdata/Makefile: Likewise.
13341         * sunrpc/Makefile: Likewise.
13342         * io/Makefile: Likewise.
13343         * argp/Makefile: Likewise.
13344         * inet/Makefile: Likewise.
13345         * hesiod/Makefile: Likewise.
13346         * grp/Makefile: Likewise.
13347         * csu/Makefile: Likewise.
13348         * wctype/Makefile: Likewise.
13349         * crypt/Makefile: Likewise.
13350         * libio/Makefile: Likewise.
13351         * string/Makefile: Likewise.
13352         * nis/Makefile: Likewise.
13353         * resolv/Makefile: Likewise.
13354         * stdio-common/Makefile: Likewise.
13355         * wcsmbs/Makefile: Likewise.
13356         * dlfcn/Makefile: Likewise.
13357         * posix/Makefile: Likewise.
13358
13359         [BZ #6959]
13360         * timezone/Makefile: Don't install timezone files, just the programs
13361         and scripts.
13362
13363 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13364
13365         * nss/databases.def: Add missing gshadow entry.
13366
13367         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13368
13369 2012-03-06  Marek Polacek  <polacek@redhat.com>
13370
13371         [BZ #13726]
13372         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13373         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13374         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13375         * stdio-common/tst-long-dbl-fphex.c: New file.
13376
13377 2012-03-06  David S. Miller  <davem@davemloft.net>
13378
13379         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13380         (set_obp_int): New function.
13381         (get_obp_int): New function.
13382         (__get_clockfreq_via_dev_openprom): Likewise.
13383         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13384         Avoid unused variable warnings on 'val' and use builtin_expect.
13385         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13386         __builtin_expect.
13387         (INLINE_CLONE_SYSCALL): Likewise.
13388
13389 2012-03-05  David S. Miller  <davem@davemloft.net>
13390
13391         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13392
13393 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13394
13395         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13396
13397         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13398         only for |x| >= 40.
13399         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13400
13401 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13402
13403         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13404         Replace gettimeofday with __vdso_gettimeofday.
13405
13406         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13407         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13408         __vdso_clock_gettime and __vdso_getcpu.
13409
13410         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13411         time with __vdso_time.
13412
13413 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13414
13415         * manual/lang.texi (size_t): Note types to which size_t may be
13416         equivalent with the GNU C Library, but do not describe when
13417         differences between them are significant.
13418
13419 2012-03-05  Andreas Jaeger  <aj@suse.de>
13420
13421         * sysdeps/i386/fpu/libm-test-ulps: Update.
13422
13423 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13424
13425         [BZ #3976]
13426         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13427         (__ieee754_pow): Save and restore rounding mode and use
13428         round-to-nearest for main computations.
13429         * math/libm-test.inc (pow_test_tonearest): New function.
13430         (pow_test_towardzero): Likewise.
13431         (pow_test_downward): Likewise.
13432         (pow_test_upward): Likewise.
13433         (main): Call the new functions.
13434         * sysdeps/i386/fpu/libm-test-ulps: Update.
13435         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13436
13437         [BZ #3976]
13438         * math/libm-test.inc (cosh_test_tonearest): New function.
13439         (cosh_test_towardzero): Likewise.
13440         (cosh_test_downward): Likewise.
13441         (cosh_test_upward): Likewise.
13442         (sinh_test_tonearest): Likewise.
13443         (sinh_test_towardzero): Likewise.
13444         (sinh_test_downward): Likewise.
13445         (sinh_test_upward): Likewise.
13446         (main): Call the new functions.
13447         * sysdeps/i386/fpu/libm-test-ulps: Update.
13448         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13449
13450 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13451
13452         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13453         default stack guard is set in last bytes.
13454         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13455
13456 2012-03-05  Kees Cook  <keescook@chromium.org>
13457
13458         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13459
13460         [BZ #13656]
13461         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13462         possibly allocate from heap instead of stack.
13463         * stdio-common/bug-vfprintf-nargs.c: New file.
13464         * stdio-common/Makefile (tests): Add nargs overflow test.
13465
13466 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13467
13468         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13469
13470 2012-03-03  Marek Polacek  <polacek@redhat.com>
13471
13472         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13473         * math/math_private.h: Likewise.
13474         * stdlib/tst-strtod.c: Likewise.
13475         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13476         * sysdeps/x86_64/bits/atomic.h: Likewise.
13477
13478 2012-03-02  David S. Miller  <davem@davemloft.net>
13479
13480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13481         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13482         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13483         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13484         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13485         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13486         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13487         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13488
13489 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13490
13491         [BZ #13792]
13492         * manual/examples/README: New file, says the example source files
13493         can be used under GPL>=2.
13494         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13495         line containing just "*/".
13496         * manual/examples/add.c: Add copyright header (GPL>=2).
13497         * manual/examples/argp-ex1.c: Likewise.
13498         * manual/examples/argp-ex2.c: Likewise.
13499         * manual/examples/argp-ex3.c: Likewise.
13500         * manual/examples/argp-ex4.c: Likewise.
13501         * manual/examples/atexit.c: Likewise.
13502         * manual/examples/db.c: Likewise.
13503         * manual/examples/dir.c: Likewise.
13504         * manual/examples/dir2.c: Likewise.
13505         * manual/examples/execinfo.c: Likewise.
13506         * manual/examples/filecli.c: Likewise.
13507         * manual/examples/filesrv.c: Likewise.
13508         * manual/examples/fmtmsgexpl.c: Likewise.
13509         * manual/examples/genpass.c: Likewise.
13510         * manual/examples/inetcli.c: Likewise.
13511         * manual/examples/inetsrv.c: Likewise.
13512         * manual/examples/isockad.c: Likewise.
13513         * manual/examples/longopt.c: Likewise.
13514         * manual/examples/memopen.c: Likewise.
13515         * manual/examples/memstrm.c: Likewise.
13516         * manual/examples/mkfsock.c: Likewise.
13517         * manual/examples/mkisock.c: Likewise.
13518         * manual/examples/mygetpass.c: Likewise.
13519         * manual/examples/pipe.c: Likewise.
13520         * manual/examples/popen.c: Likewise.
13521         * manual/examples/rprintf.c: Likewise.
13522         * manual/examples/search.c: Likewise.
13523         * manual/examples/select.c: Likewise.
13524         * manual/examples/setjmp.c: Likewise.
13525         * manual/examples/sigh1.c: Likewise.
13526         * manual/examples/sigusr.c: Likewise.
13527         * manual/examples/stpcpy.c: Likewise.
13528         * manual/examples/strdupa.c: Likewise.
13529         * manual/examples/strftim.c: Likewise.
13530         * manual/examples/strncat.c: Likewise.
13531         * manual/examples/subopt.c: Likewise.
13532         * manual/examples/swapcontext.c: Likewise.
13533         * manual/examples/termios.c: Likewise.
13534         * manual/examples/testopt.c: Likewise.
13535         * manual/examples/testpass.c: Likewise.
13536         * manual/examples/timeval_subtract.c: Likewise.
13537
13538         [BZ #13792]
13539         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13540         function to ...
13541         * manual/timeval_subtract.c.texi: ... here, new file.
13542
13543 2012-03-02  David S. Miller  <davem@davemloft.net>
13544
13545         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13546
13547 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13548
13549         [BZ #3976]
13550         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13551         (__sin): Save and restore rounding mode and use round-to-nearest
13552         for all computations.
13553         (__cos): Save and restore rounding mode and use round-to-nearest
13554         for all computations.
13555         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13556         <fenv.h>.
13557         (tan): Save and restore rounding mode and use round-to-nearest for
13558         all computations.
13559         * math/libm-test.inc (cos_test_tonearest): New function.
13560         (cos_test_towardzero): Likewise.
13561         (cos_test_downward): Likewise.
13562         (cos_test_upward): Likewise.
13563         (sin_test_tonearest): Likewise.
13564         (sin_test_towardzero): Likewise.
13565         (sin_test_downward): Likewise.
13566         (sin_test_upward): Likewise.
13567         (tan_test_tonearest): Likewise.
13568         (tan_test_towardzero): Likewise.
13569         (tan_test_downward): Likewise.
13570         (tan_test_upward): Likewise.
13571         (main): Call the new functions.
13572         * sysdeps/i386/fpu/libm-test-ulps: Update.
13573         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13574
13575         [BZ #10135]
13576         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13577         small n, then large n, before computing and testing k+n.
13578         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13579         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13580         Likewise.
13581         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13582         Likewise.
13583         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13584         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13585         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13586         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13587         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13588         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13589         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13590         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13591         * math/libm-test.inc (scalbn_test): Add more tests.
13592         (scalbln_test): Likewise.
13593
13594         * manual/filesys.texi (mode_t): Describe constraints on size and
13595         signedness, not exact equivalence to a particular type.
13596         (ino_t): Likewise.
13597         (ino64_t): Likewise.
13598         (dev_t): Likewise.
13599         (nlink_t): Likewise.
13600         (blkcnt_t): Likewise.
13601         (blkcnt64_t): Likewise.
13602         * manual/llio.texi (off_t): Likewise.
13603
13604         [BZ #3976]
13605         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13606         (__ieee754_exp): Save and restore rounding mode and use
13607         round-to-nearest for all computations.
13608         * math/libm-test.inc (exp_test_tonearest): New function.
13609         (exp_test_towardzero): Likewise.
13610         (exp_test_downward): Likewise.
13611         (exp_test_upward): Likewise.
13612         (main): Call the new functions.
13613         * sysdeps/i386/fpu/libm-test-ulps: Update.
13614         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13615
13616 2012-03-01  Chris Demetriou  <cgd@google.com>
13617
13618         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13619         have predictable order.
13620
13621 2012-03-01  David S. Miller  <davem@davemloft.net>
13622
13623         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13624
13625         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13626         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13627         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13628         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13629
13630         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13631         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13632         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13633         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13634         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13635         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13636         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13637         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13638         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13639
13640         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13641
13642         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13643         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13644         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13645
13646         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13647         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13648         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13649         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13650         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13651         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13652         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13653         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13654         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13655         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13656         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13657         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13658         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13659         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13660         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13661         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13662         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13663         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13664         * sysdeps/sparc/elf/configure: Regenerated.
13665
13666 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13667
13668         * configure.in (AS, LD): Require binutils 2.20 or later.
13669         * configure: Regenerated.
13670         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13671         as required minimum version.
13672         * INSTALL: Regenerated.
13673
13674         [BZ #2541]
13675         [BZ #4108]
13676         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13677         before squaring exponent.
13678         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13679         bottom long double and 27 bits of top long double before squaring
13680         exponent.
13681         * math/libm-test.inc (erfc_test): Add more tests.
13682         * sysdeps/i386/fpu/libm-test-ulps: Update.
13683         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13685
13686 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13687
13688         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13689         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13690         containing bit-fields.
13691         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13692         * soft-fp/single.h (_FP_UNION_S): Likewise.
13693         * soft-fp/double.h (_FP_UNION_D): Likewise.
13694
13695 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13696
13697         [BZ #13786]
13698         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13699         not include ../strcmp.S.
13700         [USE_AS_STRNCASECMP_L]: Likewise.
13701         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13702         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13703         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13704         (__strncasecmp_l_ia32): Define as alias to
13705         __strncasecmp_l_nonascii.
13706
13707         [BZ #5794]
13708         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13709         * sysdeps/i386/fpu/libm-test-ulps: Update.
13710         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13711
13712         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13713         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13714
13715 2012-02-29  Jeff Law  <law@redhat.com>
13716
13717         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13718         out of bounds read.
13719
13720 2012-02-29  Marek Polacek  <polacek@redhat.com>
13721
13722         [BZ #13706]
13723         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13724         * elf/Makefile: Add rules to run tst-unused-dep.out.
13725
13726 2012-02-28  David S. Miller  <davem@davemloft.net>
13727
13728         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13729         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13730         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13731         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13732         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13733         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13734
13735 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13736
13737         * math/libm-test.inc (llround_test): Move one test from
13738         lround_test.  Use TEST_f_L in moved test.
13739         (lround_test): Move misplaced test to llround_test.  Add testcase
13740         from bug 2561.
13741
13742 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13743
13744         * sysdeps/x86_64/fpu/e_expf.S: New file.
13745         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13746
13747 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13748
13749         [BZ #13637]
13750         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13751         of remain_len that may cause incomplete multi-byte character and
13752         false match.
13753         * posix/bug-regex33.c: New file.
13754         * posix/Makefile (tests): Add bug-regex33.
13755
13756 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13757
13758         * manual/macros.texi: New file.
13759         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13760         * manual/libc.texinfo: Include macros.texi.
13761         * manual/creatute.texi: Likewise.
13762         * manual/install.texi: Likewise.
13763         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13764         @glibcadj{} in references to the GNU C Library.
13765         * manual/charset.texi: Likewise.
13766         * manual/conf.texi: Likewise.
13767         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13768         when not using those macros.
13769         * manual/creature.texi: Likewise.
13770         * manual/crypt.texi: Likewise.
13771         * manual/errno.texi: Likewise.
13772         * manual/filesys.texi: Likewise.
13773         * manual/header.texi: Likewise.
13774         * manual/install.texi: Likewise.
13775         * manual/intro.texi: Likewise.
13776         * manual/io.texi: Likewise.
13777         * manual/job.texi: Likewise.
13778         * manual/lang.texi: Likewise.
13779         * manual/libc.texiinfo: Likewise.
13780         * manual/llio.texi: Likewise.
13781         * manual/locale.texi: Likewise.
13782         * manual/maint.texi: Likewise.
13783         * manual/math.texi: Likewise.
13784         * manual/memory.texi: Likewise.
13785         * manual/message.texi: Likewise.
13786         * manual/nss.texi: Likewise.
13787         * manual/pattern.texi: Likewise.
13788         * manual/process.texi: Likewise.
13789         * manual/resource.texi: Likewise.
13790         * manual/search.texi: Likewise.
13791         * manual/setjmp.texi: Likewise.
13792         * manual/signal.texi: Likewise.
13793         * manual/socket.texi: Likewise.
13794         * manual/startup.texi: Likewise.
13795         * manual/stdio.texi: Likewise.
13796         * manual/string.texi: Likewise.
13797         * manual/sysinfo.texi: Likewise.
13798         * manual/syslog.texi: Likewise.
13799         * manual/terminal.texi: Likewise.
13800         * manual/time.texi: Likewise.
13801         * manual/users.texi: Likewise.
13802         * INSTALL: Regenerated.
13803         * NOTES: Regenerated.
13804         * sysdeps/gnu/errlist.c: Regenerated.
13805
13806 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13807
13808         * include/dirent.h: Include <dirstream.h> before
13809         <dirent/dirent.h>.
13810
13811 2012-02-28  David S. Miller  <davem@davemloft.net>
13812
13813         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13814         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13815         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13816         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13817
13818 2012-02-27  David S. Miller  <davem@davemloft.net>
13819
13820         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13821         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13822         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13823         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13824
13825         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13826         frame pointer instead of stack pointer relative arg slot.
13827         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13828         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13829         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13830
13831 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13832
13833         [BZ #3992]
13834         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13835
13836 2012-02-27  David S. Miller  <davem@davemloft.net>
13837
13838         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13839         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13840         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13842         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13843         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13844         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13845         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13846
13847 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13848
13849         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13850         later.  Allow versions 5-9.
13851         * configure: Regenerated.
13852         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13853         required minimum version and 4.6 as recommended version.  Do not
13854         mention bugs in GCC 2.7 and 2.8.
13855         * INSTALL: Regenerated.
13856
13857 2012-02-27  David S. Miller  <davem@davemloft.net>
13858
13859         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13860         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13861         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13862         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13863         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13864         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13865         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13866         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13867
13868         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13869         manipulate bits before adding and subtracting TWO112[sx].
13870         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13871
13872 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13873
13874         [BZ #13775]
13875         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13876         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13877         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13878         being in POSIX, because they are in 1003.1-2008.
13879
13880         * rt/tst-aio.c: Include <fcntl.h>.
13881         * rt/tst-aio7.c: Likewise.
13882         * rt/tst-aio64.c: Likewise.
13883
13884         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13885
13886 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13887
13888         * manual/install.texi (--with-headers): Describe headers as
13889         interface headers, not private headers.
13890         (Specific advice for GNU/Linux systems): Describe use of headers
13891         from "make headers_install", not private headers from older
13892         kernels.
13893         * INSTALL: Regenerated.
13894         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13895         Change to 2.6.19.
13896         * sysdeps/unix/sysv/linux/configure: Regenerated.
13897
13898         * manual/llio.texi (fclean): Remove documentation.
13899
13900         * manual/Makefile (libc-texi-generated): New variable.  Include
13901         version.texi.
13902         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13903         $(libc-texi-generated), not duplicated list of files.
13904         (version.texi, stamp-version): New rules.
13905         (realclean): Remove $(libc-texi-generated), not individual files
13906         from that list.  Do not remove dir-add.texinfo.
13907         * manual/libc.texinfo: Comment out uses of edition numbers and
13908         references to printed manual.  Remove last-updated dates.
13909         (EDITION): Comment out.
13910         (ISBN): Likewise.
13911         (VERSION, UPDATED): Remove.
13912         (version.texi): Include.
13913
13914 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13915
13916         * sysdeps/posix/spawni.c: Include <signal.h>.
13917         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13918         * sysdeps/pthread/aio_fsync.c: Likewise.
13919
13920 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13921
13922         * conform/Makefile (tests): Run only when not cross-compiling and
13923         when fast-check is not defined.
13924
13925         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13926         * conform/data/limits.h-data: Fixes for POSIX2008.
13927         * conform/run-conformtest.sh: Run all tests.
13928         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13929         headers.
13930         * include/bits/dlfcn.h: Likewise.
13931         * include/langinfo.h: Likewise.
13932         * include/monetary.h: Likewise.
13933         * include/sys/poll.h: Likewise.
13934
13935         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13936         for __USE_GNU.
13937         * posix/spawn.h: Define __need_sigset_t.
13938         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13939         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13940         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13941         to get sigevent_t only.
13942         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13943         only for __USE_GNU.
13944         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13945         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13946         process_vm_writev only for __USE_GNU.
13947         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13948
13949         * conform/Makefile: For now ignore errors from run-conformtest.
13950         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13951         POSIX to avoid namespace pollution.  Don't prepend headers.
13952         * conform/data/aio.h-data: Fixes for POSIX testing.
13953         * conform/data/fcntl.h-data: Likewise.
13954         * conform/data/glob.h-data: Likewise.
13955         * conform/data/grp.h-data: Likewise.
13956         * conform/data/pthread.h-data: Likewise.
13957         * conform/data/pwd.h-data: Likewise.
13958         * conform/data/signal.h-data: Likewise.
13959         * conform/data/spawn.h-data: Likewise.
13960         * conform/data/stdio.h-data: Likewise.
13961         * conform/data/stdlib.h-data: Likewise.
13962         * conform/data/stropts.h-data: Likewise.
13963         * conform/data/sys/mman.h-data: Likewise.
13964         * conform/data/sys/stat.h-data: Likewise.
13965         * conform/data/sys/types.h-data: Likewise.
13966         * conform/data/sys/wait.h-data: Likewise.
13967         * conform/data/time.h-data: Likewise.
13968         * conform/data/unistd.h-data: Likewise.
13969         * conform/data/utime.h-data: Likewise.
13970
13971         * io/sys/stat.h: fchmod was always in POSIX.
13972         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13973         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13974         * rt/aio.h: Define __need_timespec before including <time.h>.
13975         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13976         struct.  Add forward declaration of pthread_attr_t and use it in
13977         sigevent.
13978         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13979         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13980         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13981         always remove CLK_TCK definition.
13982
13983 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13984
13985         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13986
13987 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13988
13989         * conform/run-conformtest.sh: New file.
13990         * conform/Makefile: Run run-conformtest for tests.
13991         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13992         support.
13993
13994         * conform/data/uchar.h-data: New file.
13995         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13996         * conform/data/arpa/inet.h-data: Likewise.
13997         * conform/data/assert.h-data: Likewise.
13998         * conform/data/complex.h-data: Likewise.
13999         * conform/data/cpio.h-data: Likewise.
14000         * conform/data/ctype.h-data: Likewise.
14001         * conform/data/dirent.h-data: Likewise.
14002         * conform/data/dlfcn.h-data: Likewise.
14003         * conform/data/errno.h-data: Likewise.
14004         * conform/data/fcntl.h-data: Likewise.
14005         * conform/data/float.h-data: Likewise.
14006         * conform/data/fmtmsg.h-data: Likewise.
14007         * conform/data/fnmatch.h-data: Likewise.
14008         * conform/data/ftw.h-data: Likewise.
14009         * conform/data/glob.h-data: Likewise.
14010         * conform/data/grp.h-data: Likewise.
14011         * conform/data/iconv.h-data: Likewise.
14012         * conform/data/inttypes.h-data: Likewise.
14013         * conform/data/langinfo.h-data: Likewise.
14014         * conform/data/libgen.h-data: Likewise.
14015         * conform/data/limits.h-data: Likewise.
14016         * conform/data/locale.h-data: Likewise.
14017         * conform/data/math.h-data: Likewise.
14018         * conform/data/monetary.h-data: Likewise.
14019         * conform/data/mqueue.h-data: Likewise.
14020         * conform/data/ndbm.h-data: Likewise.
14021         * conform/data/net/if.h-data: Likewise.
14022         * conform/data/netdb.h-data: Likewise.
14023         * conform/data/netinet/in.h-data: Likewise.
14024         * conform/data/nl_types.h-data: Likewise.
14025         * conform/data/poll.h-data: Likewise.
14026         * conform/data/pthread.h-data: Likewise.
14027         * conform/data/pwd.h-data: Likewise.
14028         * conform/data/regex.h-data: Likewise.
14029         * conform/data/sched.h-data: Likewise.
14030         * conform/data/search.h-data: Likewise.
14031         * conform/data/semaphore.h-data: Likewise.
14032         * conform/data/setjmp.h-data: Likewise.
14033         * conform/data/signal.h-data: Likewise.
14034         * conform/data/spawn.h-data: Likewise.
14035         * conform/data/stdarg.h-data: Likewise.
14036         * conform/data/stdio.h-data: Likewise.
14037         * conform/data/stdlib.h-data: Likewise.
14038         * conform/data/string.h-data: Likewise.
14039         * conform/data/strings.h-data: Likewise.
14040         * conform/data/stropts.h-data: Likewise.
14041         * conform/data/sys/ipc.h-data: Likewise.
14042         * conform/data/sys/mman.h-data: Likewise.
14043         * conform/data/sys/msg.h-data: Likewise.
14044         * conform/data/sys/resource.h-data: Likewise.
14045         * conform/data/sys/select.h-data: Likewise.
14046         * conform/data/sys/sem.h-data: Likewise.
14047         * conform/data/sys/shm.h-data: Likewise.
14048         * conform/data/sys/socket.h-data: Likewise.
14049         * conform/data/sys/stat.h-data: Likewise.
14050         * conform/data/sys/statvfs.h-data: Likewise.
14051         * conform/data/sys/time.h-data: Likewise.
14052         * conform/data/sys/timeb.h-data: Likewise.
14053         * conform/data/sys/times.h-data: Likewise.
14054         * conform/data/sys/types.h-data: Likewise.
14055         * conform/data/sys/uio.h-data: Likewise.
14056         * conform/data/sys/un.h-data: Likewise.
14057         * conform/data/sys/utsname.h-data: Likewise.
14058         * conform/data/sys/wait.h-data: Likewise.
14059         * conform/data/syslog.h-data: Likewise.
14060         * conform/data/tar.h-data: Likewise.
14061         * conform/data/termios.h-data: Likewise.
14062         * conform/data/utime.h-data: Likewise.
14063         * conform/data/utmpx.h-data: Likewise.
14064         * conform/data/varargs.h-data: Likewise.
14065         * conform/data/wchar.h-data: Likewise.
14066         * conform/data/wctype.h-data: Likewise.
14067         * conform/data/wordexp.h-data: Likewise.
14068
14069         * include/stropts.h: New file.
14070         * include/uchar.h: New file.
14071         * include/aio.h: Changes to allow conformtest.pl to use the headers.
14072         * include/assert.h: Likewise.
14073         * include/ctype.h: Likewise.
14074         * include/dirent.h: Likewise.
14075         * include/dlfcn.h: Likewise.
14076         * include/fcntl.h: Likewise.
14077         * include/fnmatch.h: Likewise.
14078         * include/glob.h: Likewise.
14079         * include/grp.h: Likewise.
14080         * include/libio.h: Likewise.
14081         * include/locale.h: Likewise.
14082         * include/math.h: Likewise.
14083         * include/net/if.h: Likewise.
14084         * include/netdb.h: Likewise.
14085         * include/netinet/in.h: Likewise.
14086         * include/pthread.h: Likewise.
14087         * include/pwd.h: Likewise.
14088         * include/regex.h: Likewise.
14089         * include/sched.h: Likewise.
14090         * include/search.h: Likewise.
14091         * include/setjmp.h: Likewise.
14092         * include/signal.h: Likewise.
14093         * include/stdio.h: Likewise.
14094         * include/stdlib.h: Likewise.
14095         * include/string.h: Likewise.
14096         * include/sys/cdefs.h: Likewise.
14097         * include/sys/mman.h: Likewise.
14098         * include/sys/msg.h: Likewise.
14099         * include/sys/resource.h: Likewise.
14100         * include/sys/select.h: Likewise.
14101         * include/sys/socket.h: Likewise.
14102         * include/sys/stat.h: Likewise.
14103         * include/sys/statvfs.h: Likewise.
14104         * include/sys/time.h: Likewise.
14105         * include/sys/times.h: Likewise.
14106         * include/sys/uio.h: Likewise.
14107         * include/sys/utsname.h: Likewise.
14108         * include/sys/wait.h: Likewise.
14109         * include/termios.h: Likewise.
14110         * include/time.h: Likewise.
14111         * include/ulimit.h: Likewise.
14112         * include/unistd.h: Likewise.
14113         * include/utime.h: Likewise.
14114         * include/wchar.h: Likewise.
14115         * include/wctype.h: Likewise.
14116         * include/wordexp.h: Likewise.
14117
14118         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14119
14120         * time/time.h: TIME_UTC must be a macro.
14121         Make timespec_get available for ISO C11 only as well.
14122
14123 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14124
14125         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14126         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14127
14128 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14129
14130         * configure.in: Use -o not -a in test for unsupported multi-arch.
14131
14132 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14133
14134         * manual/texinfo.tex: Update to version 2012-01-19.16.
14135
14136 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14137
14138         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14139
14140 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14141
14142         [BZ #13738]
14143         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14144         * manual/fdl-1.3.texi: New file.
14145         * manual/fdl-1.1.texi: File removed.
14146
14147         [BZ #13738]
14148         * manual/libc.texinfo (FDL_VERSION): New @set.
14149         Use it for mention of FDL in cover text.
14150         (Documentation License): Use it in @include file name.
14151
14152 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14153             Roland McGrath  <roland@hack.frob.com>
14154
14155         [BZ #5461]
14156         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14157         not LONG_LONG_MAX and LONG_LONG_MIN.
14158         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14159         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14160         name.
14161         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14162
14163 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14164
14165         [BZ #2547]
14166         [BZ #11365]
14167         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14168         manipulate bits before adding and subtracting TWO23[sx].
14169         * math/libm-test.inc (nearbyint_test): Add more tests.
14170
14171 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14172
14173         [BZ #2548]
14174         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14175         bits before adding and subtracting TWO23[sx].
14176         * math/libm-test.inc (rint_test): Add more tests.
14177         (rint_test_tonearest): Likewise.
14178         (rint_test_towardzero): Likewise.
14179         (rint_test_downward): Likewise.
14180         (rint_test_upward: Likewise.
14181
14182 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14183
14184         [BZ #10110]
14185         * include/stdc-predef.h: New file.  Extracted from features.h.
14186         * include/features.h: Include stdc-predef.h.
14187         * Makefile (headers): Add stdc-predef.h.
14188         * CONFORMANCE (Compiler limitations): Update.
14189
14190 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14191
14192         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14193
14194 2012-02-21  David S. Miller  <davem@davemloft.net>
14195
14196         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14197         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14198
14199 2012-02-20  David S. Miller  <davem@davemloft.net>
14200
14201         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14202         using a normal save/restore sequence, rather than allocating a
14203         dummy stack frame just to store a frame pointer and restore.
14204         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14205
14206 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14207
14208         * manual/install.texi: Fix stray word in line-wrapped comment.
14209
14210 2012-02-20  David S. Miller  <davem@davemloft.net>
14211
14212         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14213         both binutils and gcc support GOTDATA.
14214
14215         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14216         "rd %pc" in the PIC register setup sequences.
14217
14218         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14219         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14220         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14221         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14222         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14223         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14224         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14225         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14226         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14227         (SYSCALL_ERROR_HANDLER): Likewise.
14228         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14229         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14230         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14231         (SYSCALL_ERROR_HANDLER): Likewise.
14232
14233         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14234         (HAVE_GCC_GOTDATA): New.
14235         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14236         relocation support in both binutils and gcc.
14237         * sysdeps/sparc/elf/configure: Regenerate.
14238
14239         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14240         * sysdeps/sparc/sparc32/elf/configure: Delete.
14241         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14242         * sysdeps/sparc/sparc64/elf/configure: Delete.
14243         * sysdeps/sparc/elf/configure.in: New file.
14244         * sysdeps/sparc/elf/configure: Generate.
14245
14246         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14247         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14248         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14249         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14250         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14251
14252 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14253
14254         * manual/install.texi: Do not mention specific glibc version
14255         numbers.
14256         * manual/libc.texinfo (VERSION, UPDATED): Update.
14257         (@copying): Use @copyright{} and range of years.
14258
14259 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14260
14261         [BZ #13695]
14262         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14263         [crti.S not in sysdirs] (generated): Do not append.
14264         [crti.S not in sysdirs] (omit-deps): Likewise.
14265         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14266         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14267         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14268         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14269         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14270         Likewise.
14271         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14272         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14273         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14274         * csu/defs.awk: Remove file.
14275         * sysdeps/generic/initfini.c: Likewise.
14276         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14277         variable.
14278         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14279         Likewise.
14280
14281 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14282
14283         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14284         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14285         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14286         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14287         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14288         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14289         <bits/epoll.h>.
14290         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14291         (__EPOLL_PACKED): Define to empty if not defined by
14292         <bits/epoll.h>.
14293         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14294         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14295         bits/epoll.h.
14296
14297 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14298
14299         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14300         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14301         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14302         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14303         <bits/timerfd.h>.
14304         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14305         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14306         bits/timerfd.h.
14307
14308 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14309
14310         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14311         in C locale.
14312         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14313         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14314         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14316
14317 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14318
14319         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14320         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14321
14322 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14323
14324         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14325         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14326         defined.
14327         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14328         Likewise.
14329         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14330         entry for 2.16.
14331
14332 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14333
14334         * math/w_acos.c: Use non-signaling floating-point comparisons.
14335         * math/w_acosf.c: Likewise.
14336         * math/w_acosh.c: Likewise.
14337         * math/w_acoshf.c: Likewise.
14338         * math/w_acoshl.c: Likewise.
14339         * math/w_acosl.c: Likewise.
14340         * math/w_asin.c: Likewise.
14341         * math/w_asinf.c: Likewise.
14342         * math/w_asinl.c: Likewise.
14343         * math/w_atanh.c: Likewise.
14344         * math/w_atanhf.c: Likewise.
14345         * math/w_atanhl.c: Likewise.
14346         * math/w_exp2.c: Likewise.
14347         * math/w_exp2f.c: Likewise.
14348         * math/w_exp2l.c: Likewise.
14349         * math/w_j0.c: Likewise.
14350         * math/w_j0f.c: Likewise.
14351         * math/w_j0l.c: Likewise.
14352         * math/w_j1.c: Likewise.
14353         * math/w_j1f.c: Likewise.
14354         * math/w_j1l.c: Likewise.
14355         * math/w_jn.c: Likewise.
14356         * math/w_jnf.c: Likewise.
14357         * math/w_log.c: Likewise.
14358         * math/w_log10.c: Likewise.
14359         * math/w_log10f.c: Likewise.
14360         * math/w_log10l.c: Likewise.
14361         * math/w_log2.c: Likewise.
14362         * math/w_log2f.c: Likewise.
14363         * math/w_log2l.c: Likewise.
14364         * math/w_logf.c: Likewise.
14365         * math/w_logl.c: Likewise.
14366         * math/w_sqrt.c: Likewise.
14367         * math/w_sqrtf.c: Likewise.
14368         * math/w_sqrtl.c: Likewise.
14369         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14370         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14371         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14372         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14373         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14374
14375 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14376
14377         [BZ #9739]
14378         * manual/string.texi (strnlen): Use correct parameter name in
14379         equivalent expression.
14380
14381 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14382
14383         [BZ #11174]
14384         * manual/users.texi (seteuid): Consistently use neweuid for
14385         argument name.
14386
14387 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14388
14389         [BZ #13704]
14390         * manual/nss.texi (Services in the NSS configuration): Correct
14391         list of services in example configuration file.
14392
14393 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14394
14395         [BZ #11322]
14396         * manual/arith.texi: Remove statements about negative zero
14397         behaving identically to zero.
14398
14399 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14400
14401         [BZ #5993]
14402         * manual/install.texi: Do not document upgrading from libc5.
14403
14404 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14405
14406         [BZ #4596]
14407         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14408
14409 2012-02-18  David S. Miller  <davem@davemloft.net>
14410
14411         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14412         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14413         %o7 across the call.
14414         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14415         instead.
14416         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14417         SETUP_PIC_REG_LEAF.
14418         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14419         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14420         * sysdeps/sparc/crtn.S: Likewise.
14421
14422 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14423
14424         * aout/Makefile: Remove.
14425
14426 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14427
14428         [BZ #13058]
14429         * manual/examples/argp-ex1.c (main): Format definition in GNU
14430         style.
14431         * manual/examples/argp-ex2.c (main): Likewise.
14432         * manual/examples/argp-ex3.c (main): Likewise.
14433         * manual/examples/argp-ex4.c (main): Likewise.
14434         * manual/examples/longopt.c (main): Use new-style prototype
14435         definition.
14436         * manual/examples/strncat.c (main): Specify return type and use
14437         (void) for arguments.
14438         * manual/examples/subopt.c (main): Use char **argv argument.
14439
14440 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14441
14442         [BZ #5077]
14443         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14444         rounding modes.
14445
14446 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14447
14448         [BZ #6907]
14449         * manual/string.texi (strchr): Change when strchrnul is
14450         recommended.
14451
14452 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14453
14454         [BZ #174]
14455         * manual/locale.texi (setlocale): Document LOCPATH.
14456
14457 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14458
14459         [BZ #10210]
14460         * manual/process.texi (execle): Move @dots{} before last argument.
14461
14462 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14463
14464         [BZ #12047]
14465         * manual/charset.texi (Generic Charset Conversion): Fix typo
14466         (LC_TYPE -> LC_CTYPE).
14467
14468 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14469
14470         [BZ #5805]
14471         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14472         (scalbnf): Likewise.
14473         (scalbnl): Likewise.
14474         (scalbln): Likewise.
14475         (scalblnf): Likewise.
14476         (scalblnl): Likewise.
14477         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14478         (vwarnx): Likewise.
14479         (verr): Likewise.
14480         (verrx): Likewise.
14481         * manual/filesys.texi (telldir): Use braces around return type.
14482         * manual/llio.texi (mmap): Add space after comma.
14483         (mmap64): Likewise.
14484         * manual/math.texi (jn): Use @var{} on parameter names.
14485         (jnf): Likewise.
14486         (jnl): Likewise.
14487         (yn): Likewise.
14488         (ynf): Likewise.
14489         (ynl): Likewise.
14490         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14491         line.
14492         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14493         "...".
14494         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14495         (sched_get_priority_max): Likewise.
14496         * manual/signal.texi (sigvec): Add space after comma.
14497         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14498         names.
14499         (if_indextoname): Likewise.
14500         (if_freenameindex): Likewise.
14501         (sendto): Use ',' instead of '.' in prototype.
14502         * manual/startup.texi (syscall): Use @dots{} instead of literal
14503         "...".
14504         * manual/stdio.texi (__fpending): Separate initial words of
14505         paragraph from @deftypefun line.
14506         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14507         "...".
14508         (vsyslog): Use @var{} on parameter names.
14509         * manual/terminal.texi (stty): Use @var{} on parameter names.
14510         * manual/users.texi (getutmp): Use @var{} on parameter names.
14511         (getutmpx): Likewise.
14512
14513 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14514
14515         [BZ #6884]
14516         * manual/stdio.texi (fopen): Fix typos in description of
14517         ",ccs=STRING".
14518
14519 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14520
14521         [BZ #4026]
14522         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14523         get clock_id definition.
14524
14525 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14526
14527         [BZ #4822]
14528         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14529         (madvise): Cast every argument to void on its own.
14530
14531 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14532
14533         [BZ #9902]
14534         * manual/startup.texi (Exit Status): Fix typo.
14535
14536 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14537
14538         [BZ #10140]
14539         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14540         * manual/examples/argp-ex2.c: Likewise.
14541         * manual/examples/argp-ex3.c: Likewise.
14542
14543 2012-02-16  Richard Henderson  <rth@redhat.com>
14544
14545         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14546         * sysdeps/s390/s390-32/initfini.c: Remove.
14547         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14548         * sysdeps/s390/s390-64/initfini.c: Remove.
14549
14550 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14551
14552         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14553         compiler output for sysdeps/generic/initfini.c.
14554         * sysdeps/sh/elf/initfini.c: Remove file.
14555
14556 2012-02-16  David S. Miller  <davem@davemloft.net>
14557
14558         [BZ #11494]
14559         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14560
14561         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14562         * sysdeps/sparc/crti.S: New file.
14563         * sysdeps/sparc/crtn.S: New file.
14564         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14565         * sysdeps/sparc/sparc64/Makefile: Likewise.
14566
14567 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14568
14569         [BZ #3335]
14570         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14571
14572 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14573
14574         [BZ #4822]
14575         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14576
14577         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14578         (write, read, close): Likewise.
14579         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14580
14581 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14582
14583         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14584         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14585         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14586         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14587         <bits/signalfd.h>.
14588         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14589         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14590         bits/signalfd.h.
14591
14592 2012-02-14  Marek Polacek  <polacek@redhat.com>
14593
14594         * sysdeps/x86_64/crti.S: New file.
14595         * sysdeps/x86_64/crtn.S: New file.
14596         * sysdeps/x86_64/elf/initfini.c: Remove file.
14597
14598 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14599
14600         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14601         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14602         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14603         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14604         <bits/inotify.h>.
14605         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14606         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14607         bits/inotify.h.
14608
14609 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14610
14611         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14612         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14613         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14614         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14615         <bits/eventfd.h>.
14616         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14617         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14618         bits/eventfd.h.
14619
14620 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14621
14622         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14623         __feraiseexcept instead of feraiseexcept.
14624
14625         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14626         nanosleep invocations.
14627         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14628         strings, and add error checking for a nanosleep invocations.
14629
14630 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14631
14632         Replace FSF snail mail address with URLs, as per GNU coding standards.
14633         Most of the snail mail addresses were wrong anyway, and omitting
14634         them makes the source code easier to maintain.  Almost all of the
14635         changes are to license notices and to locale LC_IDENTIFICATION
14636         addresses, except for this one:
14637         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14638         not its snail mail address.
14639
14640 2012-02-09  Richard Henderson  <rth@twiddle.net>
14641
14642         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14643         of kernel-features.h.
14644
14645         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14646
14647 2012-02-08  Marek Polacek  <polacek@redhat.com>
14648
14649         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14650         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14651         * sysdeps/gnu/_G_config.h: Likewise.
14652         * sysdeps/generic/_G_config.h: Likewise.
14653
14654 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14655
14656         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14657         tests.
14658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14659
14660         * sysdeps/powerpc/powerpc32/crti.S: New file.
14661         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14662         * sysdeps/powerpc/powerpc64/crti.S: New file.
14663         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14664
14665         * Makeconfig (have-initfini): Don't set.
14666         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14667         * configure.in (nopic_initfini): Don't substitute.
14668         * config.h.in (HAVE_INITFINI): Don't #undef.
14669         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14670         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14671
14672 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14673
14674         Support crti.S and crtn.S provided directly by architectures.
14675         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14676         [crti.S in sysdirs] (omit-deps): Likewise.
14677         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14678         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14679         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14680         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14681         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14682         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14683         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14684         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14685         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14686         compiler output for sysdeps/generic/initfini.c.
14687         * sysdeps/i386/elf/Makefile: Remove file.
14688         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14689
14690 2012-02-07  Marek Polacek  <polacek@redhat.com>
14691
14692         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14693         * sysdeps/gnu/_G_config.h: Likewise.
14694         * sysdeps/mach/hurd/_G_config.h: Likewise.
14695
14696 2012-02-07  Marek Polacek  <polacek@redhat.com>
14697
14698         * math/Makefile (tests): Add tst-CMPLX2.
14699         * math/tst-CMPLX2.c: New file.
14700
14701 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14702
14703         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14704
14705         * math/libm-test.inc (jn_test): Add missing L suffix.
14706
14707 2012-02-06  Marek Polacek  <polacek@redhat.com>
14708
14709         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14710         * sysdeps/i386/fpu/e_powf.S: Likewise.
14711         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14712         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14713         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14714         * sysdeps/i386/fpu/e_pow.S: Likewise.
14715         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14716         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14717         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14718         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14719         * sysdeps/i386/fpu/e_log2.S: Likewise.
14720         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14721         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14722         * sysdeps/i386/fpu/e_powl.S: Likewise.
14723         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14724         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14725         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14726         * sysdeps/i386/fpu/e_logl.S: Likewise.
14727         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14728         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14729         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14730         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14731         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14732         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14733         * sysdeps/i386/fpu/e_log.S: Likewise.
14734         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14735         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14736         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14737         * sysdeps/i386/fpu/e_logf.S: Likewise.
14738         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14739         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14740         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14741         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14742         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14743         * sysdeps/i386/fpu/e_log10.S: Likewise.
14744         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14745         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14746         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14747         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14748         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14749         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14750         * sysdeps/i386/asm-syntax.h: Likewise.
14751         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14752         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14753         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14754         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14755         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14756         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14757         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14758         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14759         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14760         * sysdeps/powerpc/sysdep.h: Likewise.
14761         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14762         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14763
14764 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14765
14766         [BZ #411]
14767         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14768
14769 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14770
14771         * sysdeps/i386/sysdep.h: Include <features.h>.
14772         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14773         version.
14774
14775 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14776
14777         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14778         Define.
14779         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14780         LOAD_PIC_REG_STR.
14781
14782 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14783
14784         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14785         (SETUP_PIC_REG): Use GET_PC_THUNK.
14786         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14787         macro.
14788
14789 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14790
14791         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14792         for non-PIC compilation.
14793         (SETUP_PIC_REG): Add .p2align directive.
14794         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14795         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14796         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14797         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14798         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14799         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14800         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14801         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14802         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14803         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14804         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14805         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14806         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14807         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14808         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14809         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14810         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14811         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14812         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14813         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14814         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14815         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14816         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14817         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14818         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14819         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14820         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14821         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14822         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14823         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14824         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14825         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14826         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14827         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14828         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14829         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14830         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14831         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14832         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14833         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14834         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14835
14836 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14837
14838         * math/tst-CMPLX.c: Include <stdio.h>.
14839
14840 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14841
14842         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14843         float.
14844         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14845         * sysdeps/sparc/bits/mathdef.h: Likewise.
14846
14847 2012-01-31  Marek Polacek  <polacek@redhat.com>
14848
14849         * libio/libio.h: Don't define _PARAMS.
14850         * locale/programs/config.h: Don't define PARAMS.
14851         * stdlib/strtol_l.c: Likewise.
14852         (__strtol_l): Remove PARAMS from the prototype.
14853
14854 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14855
14856         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14857         names.  Just use the correct names.  Remove unnecessary wrapper
14858         functions.
14859         * malloc/arena.c: Likewise.
14860         * malloc/hooks.c: Likewise.
14861
14862         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14863         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14864         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14865
14866 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14867
14868         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14869         into tail calls.
14870         (update_get_addr): New function.
14871         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14872         GET_ADDR_MODULE parameter.
14873
14874 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14875
14876         * crypt/cert.c: Remove __STDC__ conditionals.
14877         * crypt/crypt-entry.c: Likewise.
14878         * crypt/crypt_util.c: Likewise.
14879         * libio/filedoalloc.c: Likewise.
14880         * libio/fileops.c: Likewise.
14881         * libio/genops.c: Likewise.
14882         * libio/iofclose.c: Likewise.
14883         * libio/iofdopen.c: Likewise.
14884         * libio/iofopen.c: Likewise.
14885         * libio/iofopen64.c: Likewise.
14886         * libio/iogetdelim.c: Likewise.
14887         * libio/iopopen.c: Likewise.
14888         * libio/obprintf.c: Likewise.
14889         * libio/oldfileops.c: Likewise.
14890         * libio/oldiofclose.c: Likewise.
14891         * libio/oldiofdopen.c: Likewise.
14892         * libio/oldiofopen.c: Likewise.
14893         * libio/oldiopopen.c: Likewise.
14894         * libio/wfiledoalloc.c: Likewise.
14895         * libio/wgenops.c: Likewise.
14896         * locale/programs/xmalloc.c: Likewise.
14897         * misc/syslog.c: Likewise.
14898         * stdio-common/xbug.c: Likewise.
14899         * string/memchr.c: Likewise.
14900         * string/memcmp.c: Likewise.
14901         * string/memrchr.c: Likewise.
14902         * string/rawmemchr.c: Likewise.
14903         * sysdeps/posix/getcwd.c: Likewise.
14904         * time/strftime_l.c: Likewise.
14905
14906 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14907
14908         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14909         * config.make.in (config-cflags-sse2avx): Define.
14910         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14911         Fix typo.
14912
14913 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14914
14915         * scripts/config.guess: Update from upstream config git repository.
14916         * scripts/config.sub: Likewise.
14917
14918 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14919
14920         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14921         (EM_NUM): Update.
14922         (R_TILEPRO_*, R_TILEGX_*): New macros.
14923
14924         * scripts/firstversions.awk: Fix bug in version range handling.
14925
14926         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14927
14928         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14929
14930         * include/sys/epoll.h: New file.
14931         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14932         libc_hidden_def.
14933
14934 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14935
14936         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14937         Avoid unnecessary __WORDSIZE == 64 test.
14938         (fmaxf): Use VEX format if possible.
14939         (fmax): Likewise.
14940         (fminf): Likewise.
14941         (fmin): Likewise.
14942
14943         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14944         * math/math_private.h: Remove libc_fegetround* and
14945         libc_fesetround*.
14946         * sysdeps/i386/configure.in: Check for -msse2avx.
14947         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14948         also if SSE2AVX is defined.
14949         Remove libc_fegetround* and libc_fesetround*.
14950         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14951         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14952         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14953         of HAS_YMM_USABLE.
14954         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14955         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14956         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14957         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14958         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14959
14960         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14961
14962 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14963
14964         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14965         size is not set.
14966         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14967
14968 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14969
14970         [BZ #13618]
14971         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14972         relocation.
14973         * Makeconfig (libm): Define.
14974         * elf/Makefile: Add rules to build and run tst-relsort1.
14975         * elf/tst-relsort1.c: New file.
14976         * elf/tst-relsort1mod1.c: New file.
14977         * elf/tst-relsort1mod2.c: New file.
14978
14979 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14980
14981         * math/s_ldexp.c: Remove __STDC__ conditionals.
14982         * math/s_ldexpf.c: Likewise.
14983         * math/s_ldexpl.c: Likewise.
14984         * math/s_nextafter.c: Likewise.
14985         * math/s_nexttowardf.c: Likewise.
14986         * math/s_significand.c: Likewise.
14987         * math/s_significandf.c: Likewise.
14988         * math/s_significandl.c: Likewise.
14989         * math/w_jnl.c: Likewise.
14990         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14991         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14992         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14993         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14994         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14995         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14996         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14997         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14998         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14999         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
15000         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
15001         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
15002         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
15003         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
15004         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
15005         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
15006         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
15007         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
15008         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
15009         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
15010         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
15011         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
15012         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
15013         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
15014         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
15015         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
15016         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
15017         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
15018         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
15019         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15020         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15021         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
15022         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15023         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
15024         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
15025         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15026         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15027         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
15028         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
15029         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15030         * sysdeps/ieee754/k_standard.c: Likewise.
15031         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15032         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15033         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15034         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
15035         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
15036         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
15037         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15038         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
15039         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
15040         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
15041         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
15042         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
15043         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
15044         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
15045         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
15046         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15047         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15048         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15049         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15050         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
15051         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15052         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15053         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
15054         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15055         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15056         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
15057         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15058         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15059         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15060         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15061         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15062         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
15063         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15064         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15065         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15066         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15067         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
15068         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15069         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15070         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
15071         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
15072         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15073         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
15074         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
15075         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15076         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
15077         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15078         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15079         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15080         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15081         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
15082         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15083         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15084         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15085         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15086         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15087         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
15088         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15089         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15090         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15091         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15092         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15093         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15094         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15095         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15096         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15097         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15098         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15099         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15100         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15101         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15102         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15103         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15104         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15105         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15106         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15107         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15108         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15109         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15110         * sysdeps/ieee754/s_matherr.c: Likewise.
15111         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15112         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15113         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15114         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15115
15116 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15117
15118         * crypt/md5.h: Remove __STDC__ conditionals.
15119         * libio/libioP.h: Likewise.
15120         * locale/programs/config.h: Likewise.
15121         * sysdeps/generic/sysdep.h: Likewise.
15122         * sysdeps/i386/asm-syntax.h: Likewise.
15123         * sysdeps/s390/asm-syntax.h: Likewise.
15124         * sysdeps/unix/sysdep.h: Likewise.
15125         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15127
15128 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15129
15130         * libio/libio.h: Remove __STDC__ conditionals.
15131         * malloc/obstack.h: Likewise.
15132         * math/complex.h: Likewise.
15133         * math/math.h: Likewise.
15134         * sysdeps/generic/_G_config.h: Likewise.
15135         * sysdeps/gnu/_G_config.h: Likewise.
15136         * sysdeps/mach/hurd/_G_config.h: Likewise.
15137         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15138         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15139         * sysdeps/sparc/bits/mathdef.h: Likewise.
15140
15141 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15142
15143         [BZ #13583]
15144         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15145         Clean up HAS_* macros.
15146         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15147         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15148         possible.
15149         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15150         HAS_AVX.
15151         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15152         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15153         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15154         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15155         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15156
15157 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15158
15159         * elf/tst-unique3.cc (gets): Remove declaration.
15160         * elf/tst-unique3lib.cc (gets): Likewise.
15161         * elf/tst-unique3lib2.cc (gets): Likewise.
15162         * elf/tst-unique4.cc (gets): Likewise.
15163
15164 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15165
15166         * include/stdio.h: Add C++ protection.  Add gets declarations and
15167         definitions.
15168         * debug/tst-chk1.c: Don't declare gets here.
15169         * stdio-common/tst-gets.c: Likewise.
15170
15171 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15172
15173         * posix/glob: Remove directory.
15174
15175 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15176
15177         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15178
15179 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15180
15181         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15182         of the non-standard EPFNOSUPPORT.
15183
15184 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15185
15186         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15187         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15188         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15189
15190 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15191
15192         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15193
15194 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15195
15196         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15197         transient errors.
15198         * nscd/grpcache.c (cache_addgr): Likewise.
15199         * nscd/hstcache.c (cache_addhst): Likewise.
15200         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15201         * nscd/pwdcache.c (cache_addpw): Likewise.
15202         * nscd/servicescache.c (cache_addserv): Likewise.
15203
15204 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15205
15206         * malloc/malloc.c: Various cleanups.
15207         * malloc/hooks.c: Likewise.
15208
15209         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15210         * stdlib/bug-fmtmsg1.c: New file.
15211
15212         * stdlib/fmtmsg.c (init): Add missing unlock.
15213         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15214
15215 2012-01-12  Marek Polacek  <polacek@redhat.com>
15216
15217         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15218         and _GNU_SOURCE.
15219
15220 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15221
15222         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15223         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15224         macro to ensure uniqueness of label name.
15225         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15226         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15227
15228 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15229
15230         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15231
15232         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15233         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15234         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15235         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15236
15237 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15238
15239         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15240
15241         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15242         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15243         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15244
15245         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15246
15247         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15248         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15249         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15250         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15251
15252         * math/bits/math-finite.h: Add ldexp support.
15253
15254 2012-01-10  Marek Polacek  <polacek@redhat.com>
15255
15256         * locale/programs/localedef.h (show_archive_content): Add noreturn
15257         attribute.
15258
15259 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15260
15261         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15262
15263 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15264
15265         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15266
15267         * io/Makefile (headers): Add bits/poll2.h.
15268
15269 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15270
15271         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15272         typo #include statement.
15273
15274 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15275
15276         * include/sys/cdefs.h: Define __attribute_alloc_size.
15277         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15278         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15279         * elf/pldd.c: Likewise.
15280         * iconv/iconv_charmap.c: Likewise.
15281         * iconv/iconvconfig.c: Likewise.
15282         * iconv/strtab.c: Likewise.
15283         * locale/programs/locale.c: Likewise.
15284         * locale/programs/localedef.h: Likewise.
15285         * locale/programs/simple-hash.c: Likewise.
15286         * nscd/nscd.h: Likewise.
15287         * nss/makedb.c: Likewise.
15288         * sysdeps/generic/ldconfig.h: Likewise.
15289         * locale/programs/localedef.c: Remove xmalloc prototype.
15290         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15291
15292 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15293
15294         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15295         appropriate.
15296
15297 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15298
15299         * math/Makefile (tests): Add tst-CMPLX.
15300         * math/tst-CMPLX.c: New file.
15301
15302         * math/complex.h (CMPLXL): Fix typo.
15303
15304         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15305         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15306         GLIBC_2.16.
15307         * debug/tst-chk1.c: Add poll and ppoll tests.
15308         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15309         * include/sys/poll.h: Add hidden proto for ppoll.
15310         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15311         * sysdeps/mach/hurd/ppoll.c: Likewise.
15312         * io/ppoll.c: Likewise.
15313         * debug/poll_chk.c: New file.
15314         * debug/ppoll_chk.c: New file.
15315         * include/bits/poll2.h: New file.
15316         * io/bits/poll2.h: New file.
15317
15318         [BZ #1350]
15319         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15320
15321         * configure.in: static is always set to yes.  Remove.
15322         * config.make.in: Don't set build-static.
15323         * Makeconfig: Remove use of build-static.
15324         * dlfcn/Makefile: Likewise.
15325         * elf/Makefile: Likewise.
15326         * math/Makefile: Likewise.
15327         * misc/Makefile: Likewise.
15328         * nptl/Makefile: Likewise.
15329         * sysdeps/mach/hurd/Makefile: Likewise.
15330
15331         * configure.in: PWD_P is not used anymore.
15332         * config.make.in: Remove PWD_P entry.
15333
15334         * configure.in: Remove last remnants of RANLIB.
15335         No need to check for signed size_t anymore.
15336         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15337         and IA-64.
15338         Remove __builtin_expect test because we require at least gcc 3.4.
15339         * aclocal.m4: Likewise.
15340
15341         * wcsmbs/mbrtoc16.c: Implement using towc function.
15342         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15343         * wcsmbs/wcsmbsload.c: Likewise.
15344         * iconv/gconv_simple.c: Likewise.
15345         * iconv/gconv_int.h: Likewise.
15346         * iconv/gconv_builtin.h: Likewise.
15347         * iconv/iconv_prog.c: Remove CHAR16 handling.
15348
15349         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15350
15351         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15352
15353         * configure.in: Remove --with-elf and --enable-bounded options.
15354         Dont set base_machine for ia64.  More non-ELF conditions removed.
15355         Remove testing and setting of leading underscore information.
15356         * config.make.in (build-bounded): Set to no.
15357         * config.h.in: Remove NO_UNDERSCORES entry.
15358         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15359         them.
15360         * csu/start.c: Remove !NO_UNDERSCORE code.
15361         * locale/localeinfo.h: Likewise.
15362         * sysdeps/generic/machine-gmon.h: Likewise.
15363         * sysdeps/generic/sysdep.h: Likewise.
15364         * sysdeps/i386/sysdep.h: Likewise.
15365         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15366         * sysdeps/mach/sysdep.h: Likewise.
15367         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15368         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15369         * sysdeps/sh/sysdep.h: Likewise.
15370         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15371         * sysdeps/unix/i386/sysdep.S: Likewise.
15372         * sysdeps/unix/sparc/start.c: Likewise.
15373         * sysdeps/unix/sparc/sysdep.S: Likewise.
15374         * sysdeps/unix/sparc/sysdep.h: Likewise.
15375         * sysdeps/unix/start.c: Likewise.
15376         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15377         * sysdeps/x86_64/sysdep.h: Likewise.
15378
15379 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15380
15381         [BZ #13553]
15382         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15383         for non-gcc.
15384         * argp/argp-fmtstream.h: Use const instead __const.
15385         * argp/argp.h: Likewise.
15386         * assert/assert.h: Likewise.
15387         * bits/fenv.h: Likewise.
15388         * bits/sched.h: Likewise.
15389         * bits/sigset.h: Likewise.
15390         * bits/sigthread.h: Likewise.
15391         * catgets/nl_types.h: Likewise.
15392         * conform/data/pthread.h-data: Likewise.
15393         * crypt/crypt-private.h: Likewise.
15394         * crypt/crypt.h: Likewise.
15395         * crypt/crypt_util.c: Likewise.
15396         * ctype/ctype.h: Likewise.
15397         * debug/execinfo.h: Likewise.
15398         * debug/mbsnrtowcs_chk.c: Likewise.
15399         * debug/mbsrtowcs_chk.c: Likewise.
15400         * debug/wcsnrtombs_chk.c: Likewise.
15401         * debug/wcsrtombs_chk.c: Likewise.
15402         * debug/wcstombs_chk.c: Likewise.
15403         * dirent/dirent.h: Likewise.
15404         * dlfcn/dlfcn.h: Likewise.
15405         * elf/neededtest4.c: Likewise.
15406         * grp/grp.h: Likewise.
15407         * gshadow/gshadow.h: Likewise.
15408         * iconv/gconv.h: Likewise.
15409         * iconv/gconv_int.h: Likewise.
15410         * iconv/gconv_simple.c: Likewise.
15411         * iconv/iconv.h: Likewise.
15412         * iconv/loop.c: Likewise.
15413         * iconv/skeleton.c: Likewise.
15414         * include/aio.h: Likewise.
15415         * include/aliases.h: Likewise.
15416         * include/argz.h: Likewise.
15417         * include/arpa/inet.h: Likewise.
15418         * include/assert.h: Likewise.
15419         * include/dirent.h: Likewise.
15420         * include/dlfcn.h: Likewise.
15421         * include/execinfo.h: Likewise.
15422         * include/fcntl.h: Likewise.
15423         * include/fenv.h: Likewise.
15424         * include/glob.h: Likewise.
15425         * include/grp.h: Likewise.
15426         * include/libintl.h: Likewise.
15427         * include/mntent.h: Likewise.
15428         * include/netdb.h: Likewise.
15429         * include/pwd.h: Likewise.
15430         * include/rpc/netdb.h: Likewise.
15431         * include/sched.h: Likewise.
15432         * include/search.h: Likewise.
15433         * include/shadow.h: Likewise.
15434         * include/signal.h: Likewise.
15435         * include/stdio.h: Likewise.
15436         * include/stdlib.h: Likewise.
15437         * include/string.h: Likewise.
15438         * include/sys/socket.h: Likewise.
15439         * include/sys/stat.h: Likewise.
15440         * include/sys/statfs.h: Likewise.
15441         * include/sys/statvfs.h: Likewise.
15442         * include/sys/syslog.h: Likewise.
15443         * include/sys/time.h: Likewise.
15444         * include/sys/uio.h: Likewise.
15445         * include/time.h: Likewise.
15446         * include/unistd.h: Likewise.
15447         * include/utmp.h: Likewise.
15448         * include/wchar.h: Likewise.
15449         * include/wctype.h: Likewise.
15450         * inet/aliases.h: Likewise.
15451         * inet/arpa/inet.h: Likewise.
15452         * inet/netinet/ether.h: Likewise.
15453         * inet/netinet/in.h: Likewise.
15454         * intl/libintl.h: Likewise.
15455         * io/bits/fcntl2.h: Likewise.
15456         * io/fcntl.h: Likewise.
15457         * io/ftw.h: Likewise.
15458         * io/sys/poll.h: Likewise.
15459         * io/sys/stat.h: Likewise.
15460         * io/sys/statfs.h: Likewise.
15461         * io/sys/statvfs.h: Likewise.
15462         * io/utime.h: Likewise.
15463         * libio/bits/stdio.h: Likewise.
15464         * libio/bits/stdio2.h: Likewise.
15465         * libio/libio.h: Likewise.
15466         * libio/libioP.h: Likewise.
15467         * libio/stdio.h: Likewise.
15468         * locale/lc-ctype.c: Likewise.
15469         * locale/locale.h: Likewise.
15470         * login/utmp.h: Likewise.
15471         * malloc/arena.c: Likewise.
15472         * malloc/malloc.c: Likewise.
15473         * malloc/malloc.h: Likewise.
15474         * malloc/mcheck.c: Likewise.
15475         * malloc/mtrace.c: Likewise.
15476         * math/bits/mathcalls.h: Likewise.
15477         * math/fenv.h: Likewise.
15478         * math/math_private.h: Likewise.
15479         * misc/bits/error.h: Likewise.
15480         * misc/bits/syslog.h: Likewise.
15481         * misc/err.h: Likewise.
15482         * misc/error.h: Likewise.
15483         * misc/fstab.h: Likewise.
15484         * misc/mntent.h: Likewise.
15485         * misc/regexp.h: Likewise.
15486         * misc/search.h: Likewise.
15487         * misc/sgtty.h: Likewise.
15488         * misc/sys/mman.h: Likewise.
15489         * misc/sys/syslog.h: Likewise.
15490         * misc/sys/uio.h: Likewise.
15491         * misc/sys/xattr.h: Likewise.
15492         * misc/ttyent.h: Likewise.
15493         * nis/rpcsvc/ypclnt.h: Likewise.
15494         * nss/nss.h: Likewise.
15495         * posix/bits/unistd.h: Likewise.
15496         * posix/fnmatch.h: Likewise.
15497         * posix/glob.h: Likewise.
15498         * posix/sched.h: Likewise.
15499         * posix/spawn.h: Likewise.
15500         * posix/sys/wait.h: Likewise.
15501         * posix/unistd.h: Likewise.
15502         * posix/wordexp.h: Likewise.
15503         * pwd/pwd.h: Likewise.
15504         * resolv/netdb.h: Likewise.
15505         * resource/sys/resource.h: Likewise.
15506         * rt/aio.h: Likewise.
15507         * rt/bits/mqueue2.h: Likewise.
15508         * rt/mqueue.h: Likewise.
15509         * shadow/shadow.h: Likewise.
15510         * signal/signal.h: Likewise.
15511         * socket/send.c: Likewise.
15512         * socket/sendto.c: Likewise.
15513         * socket/sys/socket.h: Likewise.
15514         * stdio-common/printf.h: Likewise.
15515         * stdlib/bits/stdlib.h: Likewise.
15516         * stdlib/fmtmsg.h: Likewise.
15517         * stdlib/monetary.h: Likewise.
15518         * stdlib/stdlib.h: Likewise.
15519         * stdlib/ucontext.h: Likewise.
15520         * streams/stropts.h: Likewise.
15521         * string/argz.h: Likewise.
15522         * string/bits/string2.h: Likewise.
15523         * string/string.h: Likewise.
15524         * string/strings.h: Likewise.
15525         * sunrpc/rpc/auth.h: Likewise.
15526         * sunrpc/rpc/auth_des.h: Likewise.
15527         * sunrpc/rpc/clnt.h: Likewise.
15528         * sunrpc/rpc/netdb.h: Likewise.
15529         * sunrpc/rpc/pmap_clnt.h: Likewise.
15530         * sunrpc/rpc/xdr.h: Likewise.
15531         * sysdeps/generic/inttypes.h: Likewise.
15532         * sysdeps/generic/net/if.h: Likewise.
15533         * sysdeps/generic/sys/swap.h: Likewise.
15534         * sysdeps/gnu/net/if.h: Likewise.
15535         * sysdeps/gnu/utmpx.h: Likewise.
15536         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15537         * sysdeps/i386/i486/bits/string.h: Likewise.
15538         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15539         * sysdeps/s390/bits/string.h: Likewise.
15540         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15541         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15542         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15543         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15544         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15545         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15546         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15547         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15548         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15549         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15550         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15551         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15552         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15553         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15554         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15555         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15556         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15557         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15558         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15559         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15560         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15561         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15562         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15563         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15564         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15565         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15566         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15567         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15568         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15569         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15570         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15571         * sysvipc/sys/ipc.h: Likewise.
15572         * sysvipc/sys/msg.h: Likewise.
15573         * sysvipc/sys/sem.h: Likewise.
15574         * sysvipc/sys/shm.h: Likewise.
15575         * termios/termios.h: Likewise.
15576         * time/sys/time.h: Likewise.
15577         * time/time.h: Likewise.
15578         * wcsmbs/bits/wchar2.h: Likewise.
15579         * wcsmbs/uchar.h: Likewise.
15580         * wcsmbs/wchar.h: Likewise.
15581         * wctype/wctype.h: Likewise.
15582
15583         [BZ #13551]
15584         * Makeconfig: Remove all but ELF support including AIX support.
15585         * Makerules: Likewise.
15586         * config.h.in: Likewise.
15587         * config.make.in: Likewise.
15588         * configure: Likewise.
15589         * configure.in: Likewise.
15590         * csu/Makefile: Likewise.
15591         * csu/version.c: Likewise.
15592         * debug/Makefile: Likewise.
15593         * dlfcn/Makefile: Likewise.
15594         * elf/Makefile: Likewise.
15595         * extra-lib.mk: Likewise.
15596         * iconv/Makefile: Likewise.
15597         * include/libc-symbols.h: Likewise.
15598         * include/shlib-compat.h: Likewise.
15599         * resolv/Makefile: Likewise.
15600         * resolv/res_libc.c: Likewise.
15601         * rt/Makefile: Likewise.
15602         * sysdeps/i386/asm-syntax.h: Likewise.
15603         * sysdeps/i386/sysdep.h: Likewise.
15604         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15605         * sysdeps/mach/sysdep.h: Likewise.
15606         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15607         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15608         * sysdeps/s390/asm-syntax.h: Likewise.
15609         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15610         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15611         * sysdeps/sh/sysdep.h: Likewise.
15612         * sysdeps/unix/sparc/sysdep.h: Likewise.
15613         * sysdeps/wordsize-32/divdi3.c: Likewise.
15614         * sysdeps/x86_64/sysdep.h: Likewise.
15615
15616         * argp/Versions: Remove _argp_unlock_xxx.
15617
15618         [BZ #13559]
15619         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15620         * abilist/libBrokenLocale.abilist: Likewise.
15621         * abilist/libanl.abilist: Likewise.
15622         * abilist/libc.abilist: Likewise.
15623         * abilist/libcrypt.abilist: Likewise.
15624         * abilist/libdl.abilist: Likewise.
15625         * abilist/libm.abilist: Likewise.
15626         * abilist/libnsl.abilist: Likewise.
15627         * abilist/libpthread.abilist: Likewise.
15628         * abilist/libresolv.abilist: Likewise.
15629         * abilist/librt.abilist: Likewise.
15630         * abilist/libthread_db.abilist: Likewise.
15631         * abilist/libutil.abilist: Likewise.
15632         * abilist/libnss_db.abilist: New file.
15633
15634         * scripts/abilist.awk: Add support for indirect functions.
15635
15636         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15637
15638         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15639
15640         * shlib-versions: Remove entries for ports architectures.
15641
15642         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15643         files in ports.
15644         * elf/stackguard-macros.h: Remove support for IA-64.
15645         * elf/tst-auditmod1.c: Likewise.
15646         * sysdeps/generic/ldsodefs.h: Likewise.
15647
15648         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15649         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15650         configure files.
15651
15652         [BZ #13552]
15653         * configure.in: Remove --enable-omitfp support.
15654         * FAQ.in: Adjust.
15655         * config.make.in: Likewise.
15656         * Makeconfig: Likewise.
15657         * manual/install.texi: Likewise.
15658
15659         In case anyone cares, the IA-64 architecture could move to ports.
15660         * sysdeps/ia64/*: Removed.
15661         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15662         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15663
15664         [BZ #13555]
15665         * configure.in: Remove entries for unsupported architectures.
15666
15667         [BZ #13533]
15668         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15669         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15670         routines.
15671         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15672         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15673         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15674         fall back to using wcrtomb.
15675         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15676         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15677         renaming.
15678         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15679         * wcsmbs/tst-c16c32-1.c: New file.
15680
15681         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15682         local variable.
15683
15684         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15685
15686         * elf/tst-unique3.cc: Add explicit declaration of gets.
15687         * elf/tst-unique3lib.cc: Likewise.
15688         * elf/tst-unique3lib2.cc: Likewise.
15689         * elf/tst-unique4.cc: Likewise.
15690
15691         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15692
15693 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15694
15695         [BZ #13566]
15696         * assert/assert.h (static_assert): Don't define for C++.
15697         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15698         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15699
15700 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15701
15702         * iconv/loop.c (single loop): Fix assertion in storing of
15703         remaining bytes.
15704
15705         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15706
15707 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15708
15709         * posix/getconf.c: Update copyright year.
15710         * nss/getent.c: Likewise.
15711         * nss/makedb.c: Likewise.
15712         * iconv/iconvconfig.c: Likewise.
15713         * iconv/iconv_prog.c: Likewise.
15714         * elf/ldconfig.c: Likewise.
15715         * elf/pldd.c: Likewise.
15716         * elf/sotruss.ksh: Likewise.
15717         * catgets/gencat.c: Likewise.
15718         * csu/version.c: Likewise.
15719         * elf/ldd.bash.in: Likewise.
15720         * elf/sprof.c (print_version): Likewise.
15721         * locale/programs/locale.c: Likewise.
15722         * locale/programs/localedef.c: Likewise.
15723         * login/programs/pt_chown.c: Likewise.
15724         * nscd/nscd.c (print_version): Likewise.
15725         * debug/xtrace.sh: Likewise.
15726         * malloc/memusage.sh: Likewise.
15727         * malloc/mtrace.pl: Likewise.
15728         * debug/catchsegv.sh: Likewise.
15729
15730 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15731
15732         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15733         pure attribute.
15734
15735 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15736
15737         [BZ #13533]
15738         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15739         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15740         transformations.
15741         * iconv/gconv_int.h: Likewise.
15742         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15743         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15744         from libc for GLIBC_2.16.
15745         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15746         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15747         * wcsmbs/uchar.h: Really define mbstate_t.
15748         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15749         * wcsmbs/c16rtomb.c: New file.
15750         * wcsmbs/mbrtoc16.c: New file.
15751         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15752         for C/POSIX locale.
15753         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15754         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15755
15756         * wcsmbs/wchar.h: Add missing __restrict.
15757
15758 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15759
15760         [BZ #13532]
15761         * time/Makefile (routines): Add timespec_get.
15762         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15763         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15764         timespec for ISO C11.
15765         * time/timespec_get.c: New file.
15766         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15767         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15768
15769         [BZ #13531]
15770         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15771         * stdlib/stdlib.h: Declare aligned_alloc.
15772         * Versions.def: Add GLIBC_2.16 for libc.
15773         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15774
15775         [BZ 13527]
15776         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15777         ISO C11.
15778
15779         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15780         code.
15781
15782         [BZ #13528]
15783         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15784
15785         [BZ #13529]
15786         * assert/assert.h (static_assert): Define.
15787
15788         * version.h: Update for 2.16 development version.
15789
15790         [BZ #13526]
15791         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15792         _ISOC11_SOURCE.
15793
15794         * version.h (RELEASE): Bump for 2.15 release.
15795         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15796
15797         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15798         Patch by Marek Polacek <mpolacek@redhat.com>.
15799
15800         * bits/byteswap.h: Protect long long constants with __extension__.
15801         * sysdeps/i386/bits/byteswap.h: Likewise.
15802         * sysdeps/ia64/bits/byteswap.h: Likewise.
15803         * sysdeps/s390/bits/byteswap.h: Likewise.
15804         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15805
15806 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15807
15808         [BZ #13540]
15809         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15810         destination buffer.
15811         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15812
15813 2011-12-23  Marek Polacek  <polacek@redhat.com>
15814
15815         * elf/dl-addr.c (determine_info): Add inline keyword.
15816         * elf/tst-auditmod4b.c (check_avx): Likewise.
15817         * elf/tst-auditmod6b.c (check_avx): Likewise.
15818         * elf/tst-auditmod6c.c (check_avx): Likewise.
15819         * elf/tst-auditmod7b.c (check_avx): Likewise.
15820
15821 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15822
15823         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15824         !__SSE_MATH__.
15825
15826 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15827
15828         [BZ #13540]
15829         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15830         processing for last bytes.
15831
15832 2011-08-06  Bruno Haible  <bruno@clisp.org>
15833
15834         [BZ #13061]
15835         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15836         U+0385, not to U+1FEE.
15837
15838         [BZ #13062]
15839         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15840         entry for U+00A5 U+0301.
15841
15842 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15843
15844         [BZ #13166]
15845         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15846         buffer for the output is too small.
15847
15848         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15849         optimization.
15850
15851         [BZ #13185]
15852         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15853         SSE flags if possible.
15854
15855 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15856
15857         [BZ #13540]
15858         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15859         processing for last bytes.
15860
15861 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15862
15863         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15864         (syscall-list-default-options, syscall-list-default-condition)
15865         (syscall-list-includes): Define.
15866         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15867         list of ABIs and options and #if conditions for each ABI.  Do not
15868         handle common syscalls between ABIs specially.
15869         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15870         Remove.
15871         (syscall-list-variants, syscall-list-32bit-options)
15872         (syscall-list-32bit-condition, syscall-list-64bit-options)
15873         (syscall-list-64bit-condition): Define.
15874         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15875         (syscall-list-variants, syscall-list-32bit-options)
15876         (syscall-list-32bit-condition, syscall-list-64bit-options)
15877         (syscall-list-64bit-condition): Define.
15878         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15879         Remove.
15880         (syscall-list-variants, syscall-list-32bit-options)
15881         (syscall-list-32bit-condition, syscall-list-64bit-options)
15882         (syscall-list-64bit-condition): Define.
15883         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15884         Remove.
15885         (syscall-list-variants, syscall-list-32bit-options)
15886         (syscall-list-32bit-condition, syscall-list-64bit-options)
15887         (syscall-list-64bit-condition): Define.
15888
15889 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15890
15891         * locale/iso-639.def: Add brx entry.
15892
15893         [BZ #13328]
15894         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15895         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15896
15897         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15898         __feraiseexcept_renamed.
15899
15900 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15901
15902         [BZ #13538]
15903         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15904         EPOLLET with unsigned values.
15905         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15906         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15907
15908         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15909         to large cancellation.
15910         * math/s_cacoshf.c: Likewise.
15911         * math/s_cacoshl.c: Likewise.
15912
15913 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15914
15915         [BZ #13305]
15916         [BZ #12786]
15917         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15918         * math/s_cacoshf.c: Likewise.
15919         * math/s_cacoshl.c: Likewise.
15920
15921 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15922
15923         [BZ #13439]
15924         * iconv/gconv.h: Define __GCONV_SWAP.
15925         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15926         * iconvdata/utf-16.c: Likewise.
15927         * iconvdata/utf-32.c: Likewise.
15928
15929 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15930
15931         [BZ #13524]
15932         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15933         numerator after shifting it by one limb.
15934
15935 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15936
15937         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15938         under [__USE_EXTERN_INLINES].
15939
15940 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15941
15942         [BZ #13446]
15943         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15944
15945 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15946
15947         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15948         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15949         optimized code.
15950         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15951         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15952         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15953         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15954         for strncasecmp/strncasecmp_l compilation.
15955         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15956         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15957
15958 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15959
15960         [BZ #13484]
15961         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15962         of __asm__.
15963
15964 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15965
15966         [BZ #13506]
15967         * time/tzfile.c (__tzfile_read): Check values from file header.
15968
15969 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15970
15971         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15972         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15973         * powerpc/powerpc32/dl-start.S: Likewise.
15974         * powerpc/powerpc32/elf/start.S: Likewise.
15975         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15976         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15977         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15978         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15979         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15980         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15981         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15982         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15983         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15984         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15985         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15986         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15987         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15988         * powerpc/powerpc32/memset.S: Likewise.
15989         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15990         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15991         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15992         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15993         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15994         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15995         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15996         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15997         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15998         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15999         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
16000         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
16001         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
16002
16003 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16004
16005         * math/libm-test.inc: Added more nearbyint tests.
16006         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
16007         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
16008         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
16009         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
16010
16011 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
16012
16013         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
16014         FD_CLOEXEC.
16015
16016 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16017
16018         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
16019         Add wcscpy-ssse3 wcscpy-c.
16020         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
16021         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
16022         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
16023         * sysdeps/x86_64/wcschr.S: New file.
16024         * sysdeps/x86_64/wcsrchr.S: New file.
16025         * string/test-strcmp.c: Remove checking of wcscmp function for
16026         wrong alignments.
16027         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
16028         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
16029         wcsrchr-sse2 wcsrchr-c.
16030         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
16031         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
16032         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
16033         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
16034         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
16035         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
16036         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
16037         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
16038         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
16039         * wcsmbc/wcschr.c (WCSCHR): New macro.
16040
16041 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16042
16043         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
16044         * wcsmbs/test-wcsrchr.c: New file.
16045         * string/test-strrchr.c: Add wcsrchr support.
16046         (WIDE): New macro.
16047         * wcsmbs/test-wcscpy.c: New file.
16048         * string/test-strcpy.c: Add wcscpy support.
16049         (WIDE): New macro.
16050
16051 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
16052
16053         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
16054         the inner loop.
16055
16056 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
16057
16058         [BZ #13472]
16059         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
16060
16061 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
16062
16063         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
16064         Minor optimizations.
16065
16066         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
16067         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
16068         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
16069
16070 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
16071
16072         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
16073         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
16074         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
16075         for gcc to avoid warnings.
16076         * inet/Makefile (tests): Add tst-checks.
16077         * inet/tst-checks.c: New file.
16078
16079         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
16080         warning.
16081
16082         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
16083         __wmemcmp_sse2.
16084
16085         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
16086         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
16087
16088         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
16089
16090 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
16091
16092         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
16093         problem.
16094
16095         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
16096
16097 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
16098
16099         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16100         conditional on GCC version.
16101         (__arch_compare_and_exchange_val_8_acq)
16102         (__arch_compare_and_exchange_val_16_acq)
16103         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16104         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16105         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16106
16107 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16108
16109         * sysdeps/sh/backtrace.c: New file.
16110
16111 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16112
16113         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16114         parenthesis.
16115
16116 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16117
16118         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16119         falling back to utime.
16120
16121 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16122
16123         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16124         expectations for float.
16125
16126 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16127
16128         * locale/weight.h (findidx): Add parameter len.
16129         * locale/weightwc.h (findidx): Likewise.
16130         * posix/fnmatch_loop.c (FCT): Adjust caller.
16131         * posix/regcomp.c (build_equiv_class): Likewise.
16132         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16133         * posix/regexec.c (check_node_accept_bytes): Likewise.
16134         * string/strcoll_l.c (STRCOLL): Likewise.
16135         * string/strxfrm_l.c (STRXFRM): Likewise.
16136
16137 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16138
16139         * Makefile.in: Remove CVSOPT handling.
16140         * configure.in: Remove use of AC_REVISION.
16141         * iconvdata/Makefile (distribute): No need to filter out CVS.
16142         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16143         handling.
16144
16145 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16146
16147         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16148         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16149         [USE_AS_STRNCASECMP_L]: Likewise.
16150         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16151         NO_TLS_DIRECT_SEG_REFS.
16152         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16153         Fix argument offsets for non-PIC.
16154         [USE_AS_STRNCASECMP_L]: Likewise.
16155         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16156         NO_TLS_DIRECT_SEG_REFS.
16157
16158 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16159
16160         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16161         O_CLOEXEC.
16162         * locale/loadlocale.c (_nl_load_locale): Likewise.
16163
16164 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16165
16166         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16167         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16168         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16169         (SYSCALL_GETTIME): Set errno on error.
16170
16171         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16172         count references to noai6ai_cached.
16173
16174 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16175
16176         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16177
16178         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16179         FD_CLOEXEC for /proc/self/maps.
16180
16181         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16182         FD_CLOEXEC for /proc/meminfo.
16183
16184         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16185         gai.conf.
16186
16187         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16188         FD_CLOEXEC for given file.
16189
16190         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16191
16192         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16193         FD_CLOEXEC for /etc/hosts.
16194         (_gethtent): Likewise.
16195
16196         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16197
16198         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16199         cancellation and set FD_CLOEXEC for /etc/netgroup.
16200
16201         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16202         reading /etc/publickey.
16203
16204         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16205         allow cancellation when reading /etc/group.
16206
16207         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16208         cancellation.
16209         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16210
16211         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16212         when using data file.
16213
16214         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16215
16216         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16217         (write_nis_obj): Use "c" and "e" in fopen.
16218
16219         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16220
16221         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16222
16223         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16224
16225         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16226
16227         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16228         locale.alias.
16229
16230         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16231
16232         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16233
16234         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16235
16236         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16237         file parsing and set FD_CLOEXEC.
16238
16239 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16240
16241         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16242
16243 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16244
16245         * malloc/arena.c (arena_get2): Don't call reused_arena when
16246         _int_new_arena failed.
16247
16248 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16249
16250         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16251         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16252         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16253         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16254         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16255         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16256         to compile strcasecmp and strncasecmp.
16257         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16258         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16259
16260         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16261
16262 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16263
16264         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16265         locale-defines.sym to gen-as-const-headers.
16266         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16267         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16268         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16269         to compile strcasecmp and strncasecmp.
16270         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16271         strcasecmp_l and strncasecmp_l.
16272         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16273         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16274         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16275         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16276         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16277         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16278         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16279         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16280         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16281         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16282         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16283
16284 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16285
16286         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16287         result of SYSDEP_GETTIME_CPU to retval.
16288         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16289         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16290
16291         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16292         variable.
16293
16294         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16295         mantissa words.
16296         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16297
16298         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16299         from unused variable.
16300
16301         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16302         DWARF definitions.
16303         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16304         for assembling.
16305
16306         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16307         over namespaces.
16308
16309         * sunrpc/rpc_prot.c (rejected): Fix case value.
16310
16311         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16312         unsigned long long int to avoid warnings in shift.
16313
16314         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16315         of use of trans.
16316         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16317         variable tmp.
16318
16319         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16320         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16321         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16322
16323         * nis/nis_table.c (nis_list): Use variable of correct type for
16324         result of __follow_path call.
16325
16326 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16327
16328         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16329         of math functions ceil, trunc, floor, round, and sqrt, when
16330         avaliable on the platform.
16331         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16332         name clash.
16333         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16334         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16335         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16336
16337 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16338
16339         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16340         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16341
16342 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16343
16344         * include/unistd.h: Fix __readlink return type.
16345         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16346
16347 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16348
16349         * stdlib/ucontext.h: Undo last change for makecontext.
16350
16351 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16352
16353         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16354
16355         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16356         * setjmp/setjmp.h: Mark functions as non-leaf.
16357         * setjmp/bits/setjmp2.h: Likewise.
16358         * stdlib/ucontext.h: Likewise.
16359
16360 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16361
16362         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16363         (reused_arena): Don't check arena limit.
16364         (arena_get2): Atomically check arena limit.
16365
16366 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16367
16368         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16369         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16370
16371         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16372         instructions.
16373
16374 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16375
16376         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16377         handler when locking.
16378
16379         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16380         Fix size of allocated buffer.
16381
16382 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16383
16384         [BZ #10103]
16385         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16386         declarations for long double functions.
16387         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16388
16389         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16390
16391 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16392
16393         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16394         installed.
16395
16396         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16397         is disabled.
16398
16399 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16400
16401         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16402
16403 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16404
16405         * include/alloca.h (stackinfo_alloca_round): Define.
16406         (extend_alloca): Use it.
16407         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16408         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16409         here.
16410
16411         * scripts/check-local-headers.sh: Ignore libaudit.h.
16412
16413         * nscd/Makefile (extra-objs): Make recursively expanded.
16414
16415 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16416
16417         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16418         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16419
16420         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16421         * posix/tst-rfc3484-2.c: Likewise.
16422         * posix/tst-rfc3484-3.c: Likewise.
16423
16424         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16425         process_vm_writev.
16426         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16427         process_vm_writev.
16428         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16429         process_vm_writev from libc using GLIBC_2.15 version.
16430
16431         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16432
16433 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16434
16435         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16436         stack usage.
16437
16438 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16439
16440         [BZ #13367]
16441         * nss/getent.c (initgroups_keys): Show error message in case no group
16442         names are given.
16443
16444         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16445         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16446         __bump_nl_timestamp.
16447         * nscd/connections (nscd_init): When host database is served open
16448         netlink socket and request notification about configuration changes.
16449         (main_loop_poll): Track netlink file descriptor and bump timestamp
16450         in case data becomes available.
16451         (main_loop_epoll): Likewise.
16452         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16453         (database_pers_head): Add extra_data fileds.
16454         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16455         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16456         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16457         Adjust caller.
16458         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16459         in6ai data, call __free_in6ai.
16460         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16461         Add -DHAVE_NETLINK.
16462         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16463         interface information.  Reuse previous data if netlink timestamp
16464         is not changed.
16465         (__bump_nl_timestamp): New function.
16466         (__free_in6ai): New function.
16467
16468 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16469
16470         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16471         close_not_cancel_no_status here.
16472         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16473
16474 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16475
16476         [BZ #13276]
16477         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16478         return value.
16479
16480         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16481         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16482         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16483
16484 2011-07-03  Andreas Jaeger  <aj@suse.de>
16485
16486         [BZ #10709]
16487         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16488         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16489         * math/libm-test.inc (sin_test): Add test case.
16490
16491 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16492
16493         [BZ #13337]
16494         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16495         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16496
16497         * elf/chroot_canon.c (chroot_canon): Cleanups.
16498
16499         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16500
16501         [BZ #13335]
16502         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16503         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16504
16505         * string/test-strchr.c: Make usable for strchrnul testing.
16506         * string/test-strchrnul.c: New file.
16507         * string/Makefile (strop-tests): Add strchrnul.
16508
16509         * po/it.po: Update from translation team.
16510         * po/es.po: Likewise.
16511
16512 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16513
16514         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16515         the three constants needed as parameters.  Drop the others.
16516         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16517         __m128i_strloadu_tolower.
16518         Create and initialize variable zero and use it in all the places
16519         where _mm_setzero_si128 was used.
16520
16521         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16522         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16523         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16524         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16525         anymore.
16526         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16527         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16528         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16529         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16530         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16531         __mpranred, __mptan.
16532         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16533         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16534         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16535         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16536         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16537         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16538         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16539         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16540         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16541
16542 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16543
16544         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16545         redefine if SHARED.
16546         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16547
16548         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16549         wide char related routines to wcsmbs subdir.
16550
16551 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16552
16553         [BZ #13344]
16554         * misc/sys/cdefs.h (__THROWNL): Define.
16555         * posix/unistd.h: Use __THREADNL instead of __THREAD
16556         for memory synchronization functions.
16557
16558 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16559
16560         [BZ #13349]
16561         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16562         doesn't exist.
16563         * manual/stdio.texi (Obstack Streams): Node removed.
16564
16565 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16566
16567         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16568         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16569         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16570
16571         * math/math_private.h (math_force_eval): Allow non-addressable
16572         arguments.
16573         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16574
16575 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16576
16577         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16578         file is not needed.
16579
16580         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16581         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16582         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16583         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16584         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16585         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16586         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16587         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16588         Add AVX variants.
16589         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16590         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16591         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16592         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16593         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16594         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16595         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16596         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16597         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16598         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16599         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16600         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16601         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16602         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16603         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16604         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16605         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16606         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16607         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16608
16609         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16610         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16611
16612         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16613         place.  Use VEX encoding when compiling for AVX.
16614
16615 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16616
16617         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16618         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16619
16620         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16621
16622 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16623
16624         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16625         useless if() expression.
16626         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16627         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16628         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16629         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16630         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16631         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16632         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16633         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16634         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16635         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16636         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16637         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16638         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16639         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16640         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16641         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16642         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16643         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16644         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16645
16646         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16647
16648 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16649
16650         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16651         condition.
16652         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16653
16654 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16655
16656         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16657         .text section.  Avoid duplicate constants.
16658         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16659         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16660         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16661         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16662         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16663         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16664         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16665         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16666         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16667         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16668         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16669         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16670         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16671         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16672         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16673         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16674         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16675         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16676         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16677         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16678         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16679         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16680         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16681         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16682         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16683         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16684         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16685         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16686         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16687         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16688         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16689         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16690         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16691         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16692         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16693         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16694         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16695         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16696         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16697         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16698         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16699         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16700         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16701         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16702         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16703
16704 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16705
16706         * sysdeps/x86_64/dla.h: Move to ...
16707         * sysdeps/x86_64/fpu/dla.h: ...here.
16708         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16709         situations.  Use __builtin_fma only for gcc 4.6 and up.
16710
16711         * config.make.in: Add have-mfma4 entry.
16712         * configure.in: Substitute libc_cv_cc_fma4.
16713         * math/Makefile (dbl-only-routines): Add sincostab.
16714         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16715         Use __sincostab not sincos.
16716         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16717         name is a macro.
16718         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16719         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16720         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16721         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16722         using __copysign.
16723         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16724         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16725         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16726         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16727         and __inv.
16728         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16729         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16730         __copysign.
16731         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16732         define aliases when function name is a macro.
16733         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16734         sysdeps/ieee754/dbl-64/sincos.tbl.
16735         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16736         fma4-enabled routines.
16737         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16738         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16739         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16740         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16741         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16742         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16743         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16744         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16745         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16746         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16747         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16748         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16749         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16750         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16751         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16752         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16753         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16754         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16755         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16756         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16757         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16758         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16759         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16760         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16761         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16762         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16763         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16764         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16765         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16766         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16767
16768         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16769         rename.
16770         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16771         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16772         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16773         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16774         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16775         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16776         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16777         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16778
16779 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16780
16781         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16782
16783 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16784
16785         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16786
16787         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16788         prediction.
16789         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16790
16791         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16792         Remove unused variable magic_bits.
16793         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16794
16795         * string/strnlen.c: Define and use STRNLEN macro.
16796         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16797         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16798         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16799         * wcsmbs/wcslen.c: Define and use WCSLEN.
16800         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16801         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16802         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16803         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16804         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16805         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16806         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16807
16808 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16809
16810         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16811         strnlen-sse2-no-bsf.
16812         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16813         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16814         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16815         Add strnlen support.
16816         (USE_AS_STRNLEN): New macro.
16817         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16818         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16819         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16820         * sysdeps/x86_64/wcslen.S: New file.
16821
16822 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16823
16824         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16825         XMM-moves are used for copying on small sizes.
16826
16827 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16828
16829         * wcsmbs/Makefile (strop-tests): Add wcschr.
16830         * wcsmbs/test-wcschr.c: New file.
16831         * string/test-strchr.c: Update.
16832         Add wcschr support.
16833         (WIDE): New macro.
16834
16835 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16836
16837         * wcsmbs/Makefile (strop-tests): Add wcslen.
16838         * wcsmbs/test-wcslen.c: New file.
16839         * string/test-strlen.c: Update.
16840         Add wcslen support.
16841         (WIDE): New macro.
16842
16843 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16844
16845         * po/it.po: Update from translation team.
16846
16847 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16848
16849         * sysdeps/x86_64/wcscmp.S: Update.
16850         Fix wrong comparison semantics.
16851         wcscmp shall use signed comparison not unsigned.
16852         Don't use substraction to avoid overflow bug.
16853         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16854         * wcsmbc/wcscmp.c: Likewise.
16855         * string/test-strcmp.c: Likewise.
16856         Add new tests to check cases with negative values.
16857
16858 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16859
16860         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16861         * sysdeps/x86_64/dla.h: ...here.  New file.
16862         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16863         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16864         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16865         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16866         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16867         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16868         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16869         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16870         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16871
16872 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16873
16874         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16875         __ynl_finite aliases.
16876
16877 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16878
16879         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16880
16881         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16882         define DLA_FMA.
16883         [DLA_FMA] (EMULV): Use DLA_FMA.
16884         [DLA_FMA] (MUL12): Use EMULV.
16885         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16886         that are not needed.
16887         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16888         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16889         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16890         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16891         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16892         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16893         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16894
16895 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16896
16897         * math/s_nan.c: Undef __nan.
16898         * math/s_nanf.c: Undef __nanf.
16899         * math/s_nanl.c: Undef __nanl.
16900         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16901         "math_private.h".
16902
16903 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16904
16905         * math/s_catan.c: Add branch predictions.
16906         * math/s_catanf.c: Likewise.
16907         * math/s_catanh.c: Likewise.
16908         * math/s_catanhf.c: Likewise.
16909         * math/s_catanhl.c: Likewise.
16910         * math/s_catanl.c: Likewise.
16911         * math/s_cexp.c: Likewise.
16912         * math/s_cexpf.c: Likewise.
16913         * math/s_cexpl.c: Likewise.
16914         * math/s_clog.c: Likewise.
16915         * math/s_clog10.c: Likewise.
16916         * math/s_clog10f.c: Likewise.
16917         * math/s_clog10l.c: Likewise.
16918         * math/s_clogf.c: Likewise.
16919         * math/s_clogl.c: Likewise.
16920         * math/s_csqrt.c: Likewise.
16921         * math/s_csqrtf.c: Likewise.
16922         * math/s_csqrtl.c: Likewise.
16923         * math/s_ctanf.c: Likewise.
16924         * math/s_ctanh.c: Likewise.
16925         * math/s_ctanhf.c: Likewise.
16926         * math/s_ctanhl.c: Likewise.
16927         * math/s_ctanl.c: Likewise.
16928
16929         * math/math_private.h: Define __nan, __nanf, __nanl.
16930         * math/s_cacosh.c: Include <math_private.h>.
16931         * math/s_cacoshl.c: Likewise.
16932         * math/s_casinh.c: Likewise.
16933         * math/s_casinhf.c: Likewise.
16934         * math/s_casinhl.c: Likewise.
16935         * math/s_ccos.c: Rely entire on ccosh.
16936         * math/s_ccosf.c: Rely entire on ccoshf.
16937         * math/s_ccosl.c: Rely entirely on ccoshl.
16938         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16939         Remove tests for FE_INVALID.
16940         * math/s_ccoshf.c: Likewise.
16941         * math/s_ccoshl.c: Likewise.
16942         * math/s_csin.c: Likewise.
16943         * math/s_csinf.c: Likewise.
16944         * math/s_csinh.c Likewise.
16945         * math/s_csinhf.c: Likewise.
16946         * math/s_csinhl.c: Likewise.
16947         * math/s_csinl.c: Likewise.
16948         * math/s_ctan.c: Likewise.
16949         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16950         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16951         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16952
16953 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16954
16955         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16956         compilation problems.
16957
16958         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16959         __builtin_expect.
16960
16961 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16962
16963         * sysdeps/i386/configure.in: Test for -mfma4 option.
16964         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16965         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16966         COMMON_CPUID_INDEX_80000001.
16967         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16968         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16969         use it if FMA3 is not supported.
16970         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16971
16972         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16973         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16974
16975 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16976
16977         [BZ #12892]
16978         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16979         it would create a cycle with a link time dependency.
16980
16981 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16982
16983         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16984         instruction.
16985         * string/Makefile (strop-tests): Add rawmemchr.
16986         * string/test-rawmemchr.c: New file.
16987
16988         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16989         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16990         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16991         when compiling str{,n}casecmp and when AVX is available.  Hook up
16992         new optimized code in initializers.
16993
16994 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16995
16996         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16997         __feraiseexcept instead of feraiseexcept.
16998
16999 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
17000
17001         * math/math_private.h: Define defaults for libc_fetestexcept and
17002         libc_feupdateenv.
17003         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
17004         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
17005         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17006         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17007         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17008         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17009         libc_fetestexcept and libc_feupdateenv.
17010
17011         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
17012         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
17013         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
17014         * sysdeps/x86_64/fpu/math_private.h: Define special version of
17015         libc_feholdexcept_setround.
17016
17017         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
17018         Add s_nearbyint-c and s_nearbyintf-c.
17019         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
17020         nearbyintf inlines.
17021         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
17022         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
17023         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
17024         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
17025
17026         * math/math_private.h: Define defaults for libc_fegetround,
17027         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
17028         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
17029         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
17030         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
17031         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
17032         standard functions.
17033         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17034         Remove comments and hacks for old compiler versions.
17035         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17036         libc_fegetround, libc_fesetround, libc_feholdexcept, and
17037         libc_feholdexceptl.
17038
17039 2011-10-18  Andreas Schwab  <schwab@redhat.com>
17040
17041         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
17042         (__feraiseexcept_renamed): Add __NTH.
17043         (feraiseexcept): Add __NTH.  Rename local variables to fix
17044         namespace violations.
17045
17046 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
17047
17048         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
17049
17050         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
17051
17052         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
17053         recently added interfaces.
17054         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
17055
17056         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
17057         about macro parameter expansion.
17058
17059         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
17060         __NO_MATH_INLINES is defined.  Cleanups.
17061
17062         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
17063         and __floorf is target has SSE4.1.
17064         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
17065         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
17066         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
17067         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
17068
17069         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
17070         name.
17071         (floorf): Likewise.
17072
17073         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
17074
17075 2011-10-17  Andreas Schwab  <schwab@redhat.com>
17076
17077         * misc/sys/cdefs.h: Fix last change.
17078
17079         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
17080         database lookup.
17081
17082 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
17083
17084         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
17085
17086         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
17087         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17088         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17089         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17090         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17091         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17092         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17093         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17094         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17095         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
17096         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17097         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17098         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17099         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17100         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17101         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17102         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17103         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17104         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17105         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17106         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17107         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17108
17109         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17110         ceil, ceilf, floor, floorf.
17111
17112         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17113         Perform IRELATIVE relocations last.
17114
17115         * elf/do-rel.h: Add another parameter nrelative, replacing the
17116         local variable with the same name.  Change name of the function
17117         to end in Rel or Rela (uppercase).
17118         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17119         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17120         elf_dynamic_do_##reloc function.
17121
17122 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17123
17124         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17125         is sufficient, at least on modern CPUs.
17126
17127         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17128
17129         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17130         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17131
17132         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17133         __expl_finite.
17134         * math/bits/math-finite.h: Add entries for exp.
17135         * math/e_expl.c: Add __*_finite alias.
17136         * sysdeps/i386/fpu/e_exp.S: Likewise.
17137         * sysdeps/i386/fpu/e_expf.S: Likewise.
17138         * sysdeps/i386/fpu/e_expl.c: Likewise.
17139         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17140         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17141         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17142         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17143         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17144         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17145         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17146
17147         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17148         is sufficient, at least on modern CPUs.
17149
17150         * ctype/ctype-info.c (__ctype_init): Define.
17151         * include/ctype.h (__ctype_init): Declare.
17152         (__ctype_b_loc): The variable is always initialized.
17153         (__ctype_toupper_loc): Likewise.
17154         (__ctype_tolower_loc): Likewise.
17155         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17156         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17157
17158 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17159
17160         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17161
17162         * configure.in: Also look in $cxxmachine/include for C++ system
17163         headers.
17164
17165 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17166
17167         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17168         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17169         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17170         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17171         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17172         (USE_AS_WMEMCMP): New macro.
17173         Fixing indents.
17174         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17175         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17176         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17177         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17178         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17179         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17180         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17181         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17182         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17183         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17184         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17185         (USE_AS_WMEMCMP): New macro.
17186         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17187         * sysdeps/string/test-memcmp.c: Update.
17188         Fix simple_wmemcmp.
17189         Add new tests.
17190         * wcsmbs/wmemcmp.c: Update.
17191         (WMEMCMP): New macro.
17192         Fix overflow bug.
17193
17194 2011-10-12  Andreas Jaeger  <aj@suse.de>
17195
17196         [BZ #13268]
17197         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17198
17199 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17200
17201         * libio/iofwide.c (do_length): Avoid warning.
17202
17203         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17204
17205 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17206
17207         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17208
17209         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17210         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17211         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17212         * sysdeps/i386/i686/fpu/e_log.S: New file.
17213         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17214         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17215
17216         * ctype/ctype.h: Add support for inlined isXXX functions when
17217         compiling C++ code.
17218
17219 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17220
17221         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17222
17223         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17224
17225 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17226
17227         [BZ #13291]
17228         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17229
17230 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17231
17232         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17233         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17234         feraiseexcept.
17235
17236         * sysdeps/x86_64/memrchr.S: Check for zero size.
17237
17238         * string/stratcliff.c: Add memrchr tests.
17239
17240 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17241
17242         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17243         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17244         rawmemchr-sse2 rawmemchr-sse2-bsf.
17245         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17246         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17247         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17248         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17249         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17250         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17251         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17252         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17253         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17254         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17255         * string/memrchr.c (MEMRCHR): New macro.
17256
17257 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17258
17259         Add integration with gcc's -ffinite-math-only and optimize wrapper
17260         functions in libm.
17261         * Versions.def: Define GLIBC_2.15 version for libm.
17262         * math/Makefile (headers): Add bits/math-finite.h.
17263         * math/bits/math-finite.h: New file.
17264         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17265         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17266         * math/e_acoshl.c: Add __*_finite alias.
17267         * math/e_acosl.c: Likewise.
17268         * math/e_asinl.c: Likewise.
17269         * math/e_atan2l.c: Likewise.
17270         * math/e_atanhl.c: Likewise.
17271         * math/e_coshl.c: Likewise.
17272         * math/e_exp10.c: Likewise.
17273         * math/e_exp10f.c: Likewise.
17274         * math/e_exp10l.c: Likewise.
17275         * math/e_exp2l.c: Likewise.
17276         * math/e_fmodl.c: Likewise.
17277         * math/e_gammal_r.c: Likewise.
17278         * math/e_hypotl.c: Likewise.
17279         * math/e_j0l.c: Likewise.
17280         * math/e_j1l.c: Likewise.
17281         * math/e_jnl.c: Likewise.
17282         * math/e_lgammal_r.c: Likewise.
17283         * math/e_log10l.c: Likewise.
17284         * math/e_log2l.c: Likewise.
17285         * math/e_logl.c: Likewise.
17286         * math/e_powl.c: Likewise.
17287         * math/e_sinhl.c: Likewise.
17288         * math/e_sqrtl.c: Likewise.
17289         * math/e_scalb.c: Completely rewritten and optimized.
17290         * math/e_scalbf.c: Likewise.
17291         * math/e_scalbl.c: Likewise.
17292         * math/w_acos.c: Likewise.
17293         * math/w_acosf.c: Likewise.
17294         * math/w_acosl.c: Likewise.
17295         * math/w_acosh.c: Likewise.
17296         * math/w_acoshf.c: Likewise.
17297         * math/w_acoshl.c: Likewise.
17298         * math/w_asin.c: Likewise.
17299         * math/w_asinf.c: Likewise.
17300         * math/w_asinl.c: Likewise.
17301         * math/w_atan2.c: Likewise.
17302         * math/w_atan2f.c: Likewise.
17303         * math/w_atan2l.c: Likewise.
17304         * math/w_atanh.c: Likewise.
17305         * math/w_atanhf.c: Likewise.
17306         * math/w_atanhl.c: Likewise.
17307         * math/w_exp10.c: Likewise.
17308         * math/w_exp10f.c: Likewise.
17309         * math/w_exp10l.c: Likewise.
17310         * math/w_fmod.c: Likewise.
17311         * math/w_fmodf.c: Likewise.
17312         * math/w_fmodl.c: Likewise.
17313         * math/w_j0.c: Likewise.
17314         * math/w_j0f.c: Likewise.
17315         * math/w_j0l.c: Likewise.
17316         * math/w_j1.c: Likewise.
17317         * math/w_j1f.c: Likewise.
17318         * math/w_j1l.c: Likewise.
17319         * math/w_jn.c: Likewise.
17320         * math/w_jnf.c: Likewise.
17321         * math/w_log.c: Likewise.
17322         * math/w_logf.c: Likewise.
17323         * math/w_logl.c: Likewise.
17324         * math/w_log10.c: Likewise.
17325         * math/w_log10f.c: Likewise.
17326         * math/w_log10l.c: Likewise.
17327         * math/w_log2.c: Likewise.
17328         * math/w_log2f.c: Likewise.
17329         * math/w_log2l.c: Likewise.
17330         * math/w_pow.c: Likewise.
17331         * math/w_powf.c: Likewise.
17332         * math/w_powl.c: Likewise.
17333         * math/w_remainder.c: Likewise.
17334         * math/w_remainderf.c: Likewise.
17335         * math/w_remainderl.c: Likewise.
17336         * math/w_scalb.c: Likewise.
17337         * math/w_scalbf.c: Likewise.
17338         * math/w_scalbl.c: Likewise.
17339         * math/w_sqrt.c: Likewise.
17340         * math/w_sqrtf.c: Likewise.
17341         * math/w_sqrtl.c: Likewise.
17342         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17343         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17344         used.
17345         * math/math_private.h: Declare __kernel_standard_f.
17346         * math/w_cosh.c: Remove cruft and optimize a bit.
17347         * math/w_coshf.c: Likewise.
17348         * math/w_coshl.c: Likewise.
17349         * math/w_exp2.c: Likewise.
17350         * math/w_exp2f.c: Likewise.
17351         * math/w_exp2l.c: Likewise.
17352         * math/w_hypot.c: Likewise.
17353         * math/w_hypotf.c: Likewise.
17354         * math/w_hypotl.c: Likewise.
17355         * math/w_lgamma.c: Likewise.
17356         * math/w_lgamma_r.c: Likewise.
17357         * math/w_lgammaf.c: Likewise.
17358         * math/w_lgammaf_r.c: Likewise.
17359         * math/w_lgammal.c: Likewise.
17360         * math/w_lgammal_r.c: Likewise.
17361         * math/w_sinh.c: Likewise.
17362         * math/w_sinhf.c: Likewise.
17363         * math/w_sinhl.c: Likewise.
17364         * math/w_tgamma.c: Likewise.
17365         * math/w_tgammaf.c: Likewise.
17366         * math/w_tgammal.c: Likewise.
17367         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17368         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17369         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17370         Minor optimizations.  Pretty printing.  Remove cruft.
17371         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17372         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17373         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17374         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17375         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17376         * sysdeps/i386/fpu/e_asin.S: Likewise.
17377         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17378         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17379         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17380         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17381         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17382         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17383         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17384         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17385         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17386         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17387         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17388         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17389         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17390         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17391         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17392         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17393         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17394         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17395         * sysdeps/i386/fpu/e_log.S: Likewise.
17396         * sysdeps/i386/fpu/e_log10.S: Likewise.
17397         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17398         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17399         * sysdeps/i386/fpu/e_log2.S: Likewise.
17400         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17401         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17402         * sysdeps/i386/fpu/e_logf.S: Likewise.
17403         * sysdeps/i386/fpu/e_logl.S: Likewise.
17404         * sysdeps/i386/fpu/e_pow.S: Likewise.
17405         * sysdeps/i386/fpu/e_powf.S: Likewise.
17406         * sysdeps/i386/fpu/e_powl.S: Likewise.
17407         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17408         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17409         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17410         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17411         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17412         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17413         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17414         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17415         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17416         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17417         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17418         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17419         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17420         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17421         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17422         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17423         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17424         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17425         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17426         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17427         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17428         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17429         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17430         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17431         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17432         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17433         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17434         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17435         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17436         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17437         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17438         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17439         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17440         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17441         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17442         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17443         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17444         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17445         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17446         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17447         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17448         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17449         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17450         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17451         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17452         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17453         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17454         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17455         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17456         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17457         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17458         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17459         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17460         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17461         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17462         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17463         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17464         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17465         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17466         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17467         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17468         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17469         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17470         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17471         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17472         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17473         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17474         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17475         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17476         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17477         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17478         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17479         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17480         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17481         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17482         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17483         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17484         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17485         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17486         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17487         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17488         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17489         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17490         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17491         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17492         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17493         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17494         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17495         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17496         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17497         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17498         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17499         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17500         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17501         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17502         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17503         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17504         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17505         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17506         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17507         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17508         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17509         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17510         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17511         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17512         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17513         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17514         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17515         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17516         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17517         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17518         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17519         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17520         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17521         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17522         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17523         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17524         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17525         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17526         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17527         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17528         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17529         (__isnanf): Likewise.
17530         (__isinf_ns): Likewise.
17531         (__isinf_nsf): Likewise.
17532         (__finite): Likewise.
17533         (__finitef): Likewise.
17534         (__ieee754_sqrt): Define as macro.
17535         (__ieee754_sqrtf): Define as macro.
17536         (__ieee754_sqrtl): Define as macro.
17537         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17538         inlined copy.
17539         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17540         __FINITE_MATH_ONLY__ consistent.
17541         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17542
17543 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17544
17545         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17546         of rawmemchr.
17547
17548         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17549
17550 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17551
17552         * po/ja.po: Update from translation team.
17553
17554 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17555
17556         * locale/programs/locarchive.c (prepare_address_space): New function.
17557         (create_archive, enlarge_archive, open_archive): Use it.
17558
17559         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17560         inside [SHARED], where it is used.
17561
17562         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17563
17564         * nss/getent.c (netgroup_keys): Remove unused variable.
17565         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17566
17567 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17568
17569         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17570         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17571         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17572         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17573         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17574         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17575         * math/Makefile (libm-calls): Add s_isinf_ns.
17576         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17577         * math/multc3.c: Likewise.
17578         * math/s_casin.c: Likewise.
17579         * math/s_casinf.c: Likewise.
17580         * math/s_casinl.c: Likewise.
17581         * math/s_ccos.c: Likewise.
17582         * math/s_ccosf.c: Likewise.
17583         * math/s_ccosl.c: Likewise.
17584         * math/s_ctan.c: Likewise.
17585         * math/s_ctanf.c: Likewise.
17586         * math/s_ctanh.c: Likewise.
17587         * math/s_ctanhf.c: Likewise.
17588         * math/s_ctanhl.c: Likewise.
17589         * math/s_ctanl.c: Likewise.
17590         * math/w_fmod.c: Likewise.
17591         * math/w_fmodf.c: Likewise.
17592         * math/w_fmodl.c: Likewise.
17593         * math/w_remainder.c: Likewise.
17594         * math/w_remainderf.c: Likewise.
17595         * math/w_remainderl.c: Likewise.
17596         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17597         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17598         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17599         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17600         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17601         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17602         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17603         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17604
17605         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17606         of the number.
17607         * stdio-common/printf_fphex.c: Likewise.
17608         * stdio-common/printf_size.c: Likewise.
17609
17610         * math/e_exp10.c: Include math_private.h using <...> not "...".
17611         * math/e_exp10f.c: Likewise.
17612         * math/e_exp10l.c: Likewise.
17613         * math/e_exp2l.c: Likewise.
17614         * math/e_j0l.c: Likewise.
17615         * math/e_j1l.c: Likewise.
17616         * math/e_jnl.c: Likewise.
17617         * math/e_lgammal_r.c: Likewise.
17618         * math/e_rem_pio2l.c: Likewise.
17619         * math/e_scalb.c: Likewise.
17620         * math/e_scalbf.c: Likewise.
17621         * math/e_scalbl.c: Likewise.
17622         * math/k_cosl.c: Likewise.
17623         * math/k_sinl.c: Likewise.
17624         * math/k_tanl.c: Likewise.
17625         * math/s_cacoshf.c: Likewise.
17626         * math/s_catan.c: Likewise.
17627         * math/s_catanf.c: Likewise.
17628         * math/s_catanh.c: Likewise.
17629         * math/s_catanhf.c: Likewise.
17630         * math/s_catanhl.c: Likewise.
17631         * math/s_catanl.c: Likewise.
17632         * math/s_ccosh.c: Likewise.
17633         * math/s_ccoshf.c: Likewise.
17634         * math/s_ccoshl.c: Likewise.
17635         * math/s_cexp.c: Likewise.
17636         * math/s_cexpf.c: Likewise.
17637         * math/s_cexpl.c: Likewise.
17638         * math/s_clog.c: Likewise.
17639         * math/s_clog10.c: Likewise.
17640         * math/s_clog10f.c: Likewise.
17641         * math/s_clog10l.c: Likewise.
17642         * math/s_clogf.c: Likewise.
17643         * math/s_clogl.c: Likewise.
17644         * math/s_csin.c: Likewise.
17645         * math/s_csinf.c: Likewise.
17646         * math/s_csinh.c: Likewise.
17647         * math/s_csinhf.c: Likewise.
17648         * math/s_csinhl.c: Likewise.
17649         * math/s_csinl.c: Likewise.
17650         * math/s_csqrt.c: Likewise.
17651         * math/s_csqrtf.c: Likewise.
17652         * math/s_csqrtl.c: Likewise.
17653         * math/s_ctan.c: Likewise.
17654         * math/s_ctanf.c: Likewise.
17655         * math/s_ctanh.c: Likewise.
17656         * math/s_ctanhf.c: Likewise.
17657         * math/s_ctanhl.c: Likewise.
17658         * math/s_ctanl.c: Likewise.
17659         * math/s_ldexp.c: Likewise.
17660         * math/s_ldexpf.c: Likewise.
17661         * math/s_ldexpl.c: Likewise.
17662         * math/s_significand.c: Likewise.
17663         * math/s_significandf.c: Likewise.
17664         * math/s_significandl.c: Likewise.
17665         * math/w_acos.c: Likewise.
17666         * math/w_acosf.c: Likewise.
17667         * math/w_acosh.c: Likewise.
17668         * math/w_acoshf.c: Likewise.
17669         * math/w_acoshl.c: Likewise.
17670         * math/w_acosl.c: Likewise.
17671         * math/w_asin.c: Likewise.
17672         * math/w_asinf.c: Likewise.
17673         * math/w_asinl.c: Likewise.
17674         * math/w_atan2.c: Likewise.
17675         * math/w_atan2f.c: Likewise.
17676         * math/w_atan2l.c: Likewise.
17677         * math/w_atanh.c: Likewise.
17678         * math/w_atanhf.c: Likewise.
17679         * math/w_atanhl.c: Likewise.
17680         * math/w_cosh.c: Likewise.
17681         * math/w_coshf.c: Likewise.
17682         * math/w_coshl.c: Likewise.
17683         * math/w_dremf.c: Likewise.
17684         * math/w_exp10.c: Likewise.
17685         * math/w_exp10f.c: Likewise.
17686         * math/w_exp10l.c: Likewise.
17687         * math/w_exp2.c: Likewise.
17688         * math/w_exp2f.c: Likewise.
17689         * math/w_fmod.c: Likewise.
17690         * math/w_fmodf.c: Likewise.
17691         * math/w_fmodl.c: Likewise.
17692         * math/w_hypot.c: Likewise.
17693         * math/w_hypotf.c: Likewise.
17694         * math/w_hypotl.c: Likewise.
17695         * math/w_j0.c: Likewise.
17696         * math/w_j0f.c: Likewise.
17697         * math/w_j0l.c: Likewise.
17698         * math/w_j1.c: Likewise.
17699         * math/w_j1f.c: Likewise.
17700         * math/w_j1l.c: Likewise.
17701         * math/w_jn.c: Likewise.
17702         * math/w_jnf.c: Likewise.
17703         * math/w_jnl.c: Likewise.
17704         * math/w_lgamma.c: Likewise.
17705         * math/w_lgamma_r.c: Likewise.
17706         * math/w_lgammaf.c: Likewise.
17707         * math/w_lgammaf_r.c: Likewise.
17708         * math/w_lgammal.c: Likewise.
17709         * math/w_lgammal_r.c: Likewise.
17710         * math/w_log.c: Likewise.
17711         * math/w_log10.c: Likewise.
17712         * math/w_log10f.c: Likewise.
17713         * math/w_log10l.c: Likewise.
17714         * math/w_log2.c: Likewise.
17715         * math/w_log2f.c: Likewise.
17716         * math/w_log2l.c: Likewise.
17717         * math/w_logf.c: Likewise.
17718         * math/w_logl.c: Likewise.
17719         * math/w_pow.c: Likewise.
17720         * math/w_powf.c: Likewise.
17721         * math/w_powl.c: Likewise.
17722         * math/w_remainder.c: Likewise.
17723         * math/w_remainderf.c: Likewise.
17724         * math/w_remainderl.c: Likewise.
17725         * math/w_scalb.c: Likewise.
17726         * math/w_scalbf.c: Likewise.
17727         * math/w_scalbl.c: Likewise.
17728         * math/w_sinh.c: Likewise.
17729         * math/w_sinhf.c: Likewise.
17730         * math/w_sinhl.c: Likewise.
17731         * math/w_sqrt.c: Likewise.
17732         * math/w_sqrtf.c: Likewise.
17733         * math/w_sqrtl.c: Likewise.
17734         * math/w_tgamma.c: Likewise.
17735         * math/w_tgammaf.c: Likewise.
17736         * math/w_tgammal.c: Likewise.
17737
17738         * po/ja.po: Update from translation team.
17739
17740 2011-09-29  Andreas Jaeger  <aj@suse.de>
17741
17742         [BZ #13179]
17743         * sunrpc/netname.c (netname2host): Fix logic.
17744
17745         [BZ #6779]
17746         [BZ #6783]
17747         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17748         correctly.
17749         * math/w_remainder.c (__remainder): Likewise.
17750         * math/w_remainderf.c (__remainderf): Likewise.
17751         * math/libm-test.inc (remainder_test): Add test cases.
17752
17753 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17754
17755         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17756         sdiv_qrnnd.
17757
17758 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17759
17760         * string/test-memcmp.c: Avoid unncessary #defines.
17761         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17762
17763 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17764
17765         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17766         Use new sse2 version for core i3 - i7 as it's faster
17767         than sse42 version.
17768         (bit_Prefer_PMINUB_for_stringop): New.
17769         * sysdeps/x86_64/rawmemchr.S: Update.
17770         Replace with faster SSE2 version.
17771         * sysdeps/x86_64/memrchr.S: New file.
17772         * sysdeps/x86_64/memchr.S: Update.
17773         Replace with faster SSE2 version.
17774
17775 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17776
17777         * elf/dl-load.c (lose): Add cast to avoid warning.
17778
17779 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17780
17781         * po/ca.po: Update from translation team.
17782
17783         * inet/getnetgrent_r.c: Hook up nscd.
17784         * nscd/Makefile (routines): Add nscd_netgroup.
17785         (nscd-modules): Add netgroupcache.
17786         (CFLAGS-netgroupcache.c): Define.
17787         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17788         (cache_search): Add const to second parameter.
17789         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17790         INNETGR.
17791         (dbs): Add netgrdb entry.
17792         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17793         (verify_persistent_db): Handle netgrdb.
17794         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17795         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17796         GETFDNETGR.
17797         (netgroup_response_header): Define.
17798         (innetgroup_response_header): Define.
17799         (datahead): Add netgroup_response_header and innetgroup_response_header
17800         elements.
17801         * nscd/nscd.conf: Add entries for netgroup cache.
17802         * nscd/nscd.h (dbtype): Add netgrdb.
17803         (_PATH_NSCD_NETGROUP_DB): Define.
17804         (netgroup_iov_disabled): Declare.
17805         (xmalloc, xcalloc, xrealloc): Move declarations here.
17806         (cache_search): Adjust prototype.
17807         Add netgroup-related prototypes.
17808         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17809         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17810         (__nscd_innetgr): Declare.
17811         * nscd/selinux.c (perms): Use access_vector_t as element type and
17812         add netgroup-related initializers.
17813         * nscd/netgroupcache.c: New file.
17814         * nscd/nscd_netgroup.c: New file.
17815         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17816         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17817         For four parameters use innetgr.
17818         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17819         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17820         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17821         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17822
17823         * nscd/connections.c (register_traced_file): Don't register file
17824         for disabled databases.
17825
17826 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17827
17828         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17829
17830         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17831         from tree and freeing node.
17832
17833 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17834
17835         * nss/nsswitch.c (__nss_database_lookup): Handle
17836         nss_parse_service_list out of memory case.
17837
17838 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17839
17840         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17841         out of memory case.
17842
17843 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17844
17845         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17846         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17847         pass it down.
17848         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17849         elf_machine_rela, elf_machine_lazy_rel.
17850         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17851         (ELF_DYNAMIC_DO_REL): Likewise.
17852         (ELF_DYNAMIC_DO_RELA): Likewise.
17853         (ELF_DYNAMIC_RELOCATE): Likewise.
17854         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17855         to ELF_DYNAMIC_DO_REL.
17856         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17857         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17858         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17859         elf_machine_rela.
17860         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17861         skip_ifunc, don't call ifunc function if non-zero.
17862         (elf_machine_rela): Likewise.
17863         (elf_machine_lazy_rel): Likewise.
17864         (elf_machine_lazy_rela): Likewise.
17865         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17866         (elf_machine_lazy_rel): Likewise.
17867         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17868         Likewise.
17869         (elf_machine_lazy_rel): Likewise.
17870         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17871         Likewise.
17872         (elf_machine_lazy_rel): Likewise.
17873         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17874         (elf_machine_lazy_rel): Likewise.
17875         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17876         (elf_machine_lazy_rel): Likewise.
17877         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17878         (elf_machine_lazy_rel): Likewise.
17879         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17880         (elf_machine_lazy_rel): Likewise.
17881         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17882         (elf_machine_lazy_rel): Likewise.
17883         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17884         (elf_machine_lazy_rel): Likewise.
17885
17886 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17887
17888         * nss/nss_files/files-init.c (_nss_files_init): Use static
17889         initialization for all the *_traced_file variables.
17890
17891 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17892
17893         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17894
17895 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17896
17897         [BZ #13226]
17898         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17899
17900 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17901
17902         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17903         Reread the line before reparsing it.
17904
17905 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17906
17907         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17908
17909 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17910             Maxim Kuvyrkov  <maxim@codesourcery.com>
17911             Joseph Myers  <joseph@codesourcery.com>
17912
17913         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17914         if needed for __stack_chk_guard.
17915
17916 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17917
17918         * sysdeps/posix/spawni.c (script_execute): Always define it.
17919         It will be optimized away if unused.
17920         (maybe_script_execute): New function.
17921         (__spawni): Call it.
17922
17923         * Makerules: Don't include tls.make.
17924         (config-tls): Always set to thread.
17925         * tls.make.c: File removed.
17926
17927 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17928
17929         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17930         * config.make.in (CPPFLAGS-config): New substituted variable.
17931
17932 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17933
17934         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17935
17936         [BZ #13192]
17937         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17938         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17939
17940 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17941
17942         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17943         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17944         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17945         (CALL_FAIL): Likewise.
17946         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17947         (CALL_FAIL): Macro removed.
17948         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17949
17950 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17951
17952         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17953         for __FINITE_MATH_ONLY__ == 1.
17954
17955 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17956
17957         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17958         __ieee754_sqrt instead of sqrt.
17959         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17960         __ieee754_sqrtf instead of sqrtf.
17961         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17962         __floorf instead of floorf.
17963         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17964         __floorf, __truncf instead of floorf, truncf.
17965
17966 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17967
17968         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17969
17970         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17971         __extern_always_inline.
17972         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17973         32-bit.
17974
17975 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17976
17977         * elf/rtld.c (dl_main): Also relocate in dependency order when
17978         doing symbol dependency testing.
17979
17980 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17981
17982         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17983         Always define `refsym'.
17984
17985 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17986
17987         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17988         (__FD_ELT): Renamed from __FDELT.
17989         * misc/bits/select2.h (__FD_ELT): Likewise.
17990         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17991         __FD_MASK instead of __FDELT, __FDMASK.
17992         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17993         Likewise.
17994         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17995         Likewise.
17996
17997         * elf/Makefile (gen-ldd): Fix pattern.
17998
17999         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
18000         (init_tls): Likewise.
18001
18002 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
18003
18004         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
18005
18006 2011-09-12  Andreas Schwab  <schwab@redhat.com>
18007
18008         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
18009         `struct cmsghdr *' instead of `void *'.
18010         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
18011         Likewise.
18012
18013 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
18014
18015         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
18016         if non-absolute.
18017         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
18018         ldd_rewrite_script.
18019
18020 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
18021
18022         * configure.in: Remove --with-tls option.
18023         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
18024         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
18025         out in case it is missing.
18026         * sysdeps/ia64/elf/configure.in: Likewise.
18027         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
18028         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
18029         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
18030         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
18031         * sysdeps/sh/elf/configure.in: Likewise.
18032         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
18033         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
18034         * sysdeps/x86_64/elf/configure.in: Likewise.
18035         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
18036         * sysdeps/mach/hurd/tls.h: Likewise.
18037
18038         [BZ #13067]
18039         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
18040
18041         [BZ #13090]
18042         * configure.in: Fix use of AC_INIT.
18043
18044         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
18045
18046 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
18047
18048         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
18049         __set_errno.
18050         * malloc/hooks.c: Likewise.
18051
18052         [BZ #11929]
18053         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
18054         variables statically.
18055         (narenas): Initialize.
18056         (list_lock): Initialize.
18057         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
18058         initializtion of main_arena and list_lock.  Small cleanups.
18059         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
18060         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
18061         Add initializers to main_arena and mp_.
18062         (malloc_state): Remove pagesize member.  Change all users to use
18063         GLRO(dl_pagesize).
18064
18065         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
18066         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
18067         is always initialized.
18068
18069         * malloc/malloc.c: Removed unused configurations and dead code.
18070         * malloc/arena.c: Likewise.
18071         * malloc/hooks.c: Likewise.
18072         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
18073
18074         * include/tls.h: Removed.  USE___THREAD must always be defined.
18075         * bits/libc-tsd.h: Don't handle !USE___THREAD.
18076         * elf/dl-libc.c: Likewise.
18077         * elf/dl-tsd.c: Likewise.
18078         * include/errno.h: Likewise.
18079         * include/netdb.h: Likewise.
18080         * include/resolv.h: Likewise.
18081         * inet/herrno-loc.c: Likewise.
18082         * inet/herrno.c: Likewise.
18083         * malloc/arena.c: Likewise.
18084         * malloc/hooks.c: Likewise.
18085         * malloc/malloc.c: Likewise.
18086         * resolv/res-state.c: Likewise.
18087         * resolv/res_libc.c: Likewise.
18088         * sysdeps/i386/dl-machine.h: Likewise.
18089         * sysdeps/ia64/dl-machine.h: Likewise.
18090         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
18091         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
18092         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
18093         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
18094         * sysdeps/sh/dl-machine.h: Likewise.
18095         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18096         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18097         * sysdeps/unix/i386/sysdep.S: Likewise.
18098         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18099         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18100         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18101         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18102         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18103         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18104         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18105         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18106         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18107         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18108         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18109         * sysdeps/x86_64/dl-machine.h: Likewise.
18110         * tls.make.c: Likewise.
18111
18112         * configure.in: Remove --with-__thread option.  Make tests for
18113         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18114         tls_model attribute fail if no support is available.  Remove
18115         USE_IN_LIBIO.
18116         * Makeconfig: Adjust for dropped configure option.  All features are
18117         now mandatory.
18118         * Makerules: Likewise.
18119         * Versions.def: Likewise.
18120         * argp/argp-fmtstream.c: Likewise.
18121         * argp/argp-fmtstream.h: Likewise.
18122         * argp/argp-help.c: Likewise.
18123         * assert/assert.c: Likewise.
18124         * config.h.in: Likewise.
18125         * config.make.in: Likewise.
18126         * configure: Likewise.
18127         * configure.in: Likewise.
18128         * csu/Versions: Likewise.
18129         * csu/init.c: Likewise.
18130         * elf/tst-audit2.c: Likewise.
18131         * elf/tst-tls10.c: Likewise.
18132         * elf/tst-tls10.h: Likewise.
18133         * elf/tst-tls11.c: Likewise.
18134         * elf/tst-tls12.c: Likewise.
18135         * elf/tst-tls14.c: Likewise.
18136         * elf/tst-tlsmod11.c: Likewise.
18137         * elf/tst-tlsmod12.c: Likewise.
18138         * elf/tst-tlsmod13.c: Likewise.
18139         * elf/tst-tlsmod13a.c: Likewise.
18140         * elf/tst-tlsmod14a.c: Likewise.
18141         * elf/tst-tlsmod15b.c: Likewise.
18142         * elf/tst-tlsmod16a.c: Likewise.
18143         * elf/tst-tlsmod16b.c: Likewise.
18144         * elf/tst-tlsmod7.c: Likewise.
18145         * elf/tst-tlsmod8.c: Likewise.
18146         * elf/tst-tlsmod9.c: Likewise.
18147         * gmon/gmon.c: Likewise.
18148         * grp/fgetgrent_r.c: Likewise.
18149         * grp/putgrent.c: Likewise.
18150         * hurd/fopenport.c: Likewise.
18151         * include/libc-symbols.h: Likewise.
18152         * include/tls.h: Likewise.
18153         * intl/gettextP.h: Likewise.
18154         * intl/loadinfo.h: Likewise.
18155         * locale/global-locale.c: Likewise.
18156         * locale/localeinfo.h: Likewise.
18157         * mach/devstream.c: Likewise.
18158         * malloc/arena.c: Likewise.
18159         * malloc/set-freeres.c: Likewise.
18160         * misc/err.c: Likewise.
18161         * misc/getttyent.c: Likewise.
18162         * misc/mntent_r.c: Likewise.
18163         * posix/getopt.c: Likewise.
18164         * posix/wordexp.c: Likewise.
18165         * pwd/fgetpwent_r.c: Likewise.
18166         * resolv/Versions: Likewise.
18167         * resolv/res_hconf.c: Likewise.
18168         * shadow/fgetspent_r.c: Likewise.
18169         * shadow/putspent.c: Likewise.
18170         * stdio-common/printf_fphex.c: Likewise.
18171         * stdio-common/tmpfile.c: Likewise.
18172         * stdlib/abort.c: Likewise.
18173         * stdlib/fmtmsg.c: Likewise.
18174         * sunrpc/auth_unix.c: Likewise.
18175         * sunrpc/clnt_perr.c: Likewise.
18176         * sunrpc/clnt_tcp.c: Likewise.
18177         * sunrpc/clnt_udp.c: Likewise.
18178         * sunrpc/clnt_unix.c: Likewise.
18179         * sunrpc/openchild.c: Likewise.
18180         * sunrpc/svc_simple.c: Likewise.
18181         * sunrpc/svc_tcp.c: Likewise.
18182         * sunrpc/svc_udp.c: Likewise.
18183         * sunrpc/svc_unix.c: Likewise.
18184         * sunrpc/xdr.c: Likewise.
18185         * sunrpc/xdr_array.c: Likewise.
18186         * sunrpc/xdr_rec.c: Likewise.
18187         * sunrpc/xdr_ref.c: Likewise.
18188         * sunrpc/xdr_stdio.c: Likewise.
18189
18190 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18191
18192         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18193
18194 2011-07-03  Andreas Jaeger  <aj@suse.de>
18195
18196         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18197         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18198         regenerate with gen-libm-tests.pl.
18199
18200 2010-05-12  Petr Baudis  <pasky@suse.cz>
18201
18202         [BZ #11589]
18203         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18204         around j0() zero points by switching to j1().
18205         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18206         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18207         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18208         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18209
18210 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18211
18212         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18213         instead of 0.
18214         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18215         instead of 0.                              .
18216         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18217         Patch in part by Pavel Roskin <proski@gnu.org>.
18218
18219         [BZ #13138]
18220         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18221         realloc.
18222         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18223         Free memory block if necessary.
18224
18225         [BZ #12847]
18226         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18227         be NULL.  Don't lock in this case.
18228
18229 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18230
18231         * elf/elf.h (ELFOSABI_GNU): New macro.
18232         (ELFOSABI_LINUX): Define to that.
18233
18234 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18235
18236         * string/strncat.c (strncat): Undef the symbol in case it has been
18237         defined in bits/string.h.
18238
18239 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18240
18241         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18242
18243         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18244         link map.
18245
18246 2011-08-17  Andreas Jaeger  <aj@suse.de>
18247
18248         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18249
18250 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18251             Ian Lance Taylor  <iant@google.com>
18252
18253         * math/libm-test.inc (lround_test): New testcase.
18254         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18255
18256 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18257
18258         * Makefile: Remove support for automatic cvs check-ins.
18259         * Makerules: Likewise.
18260         * config.make.in: Likewise.
18261         * configure.in: Likewise.
18262         * intl/Makefile: Likewise.
18263         * locale/Makefile: Likewise.
18264         * po/Makefile: Likewise.
18265         * posix/Makefile: Likewise.
18266         * sysdeps/gnu/Makefile: Likewise.
18267         * sysdeps/mach/hurd/Makefile: Likewise.
18268         * sysdeps/sparc/sparc32/Makefile: Likewise.
18269
18270         [BZ #13118]
18271         * posix/Makefile (bug-regex32-ENV): Define.
18272         Patch by John Stanley <jpsinthemix@verizon.net>.
18273
18274         * misc/Makefile (headers): Add bits/select2.h.
18275         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18276         * misc/bits/select2.h: New file.
18277         * include/bits/select2.h: New file.
18278         * debug/Makefile (routines): Add fdelt_chk.
18279         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18280         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18281         FD_ISSET.
18282         * debug/fdelt_chk.c: New file.
18283
18284         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18285         * wcsmbs/test-wmemcmp.c: Likewise.
18286         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18287         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18288
18289 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18290
18291         * string/Makefile (strop-tests): Add memcmp.
18292         * string/test-wmemcmp.c: New file.
18293         * string/test-memcmp.c: Add wmemcmp support.
18294
18295 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18296
18297         [BZ #13153]
18298         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18299         2011-07-19 change.
18300
18301         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18302         garbage value in a __mach_port_mod_refs call in the cases of the
18303         task-self and thread-self ports.
18304
18305 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18306
18307         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18308
18309 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18310
18311         * elf/dl-load.c (lose): Check for non-null L.
18312
18313 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18314
18315         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18316
18317         * elf/dl-libc.c (dlerror_run): Pass back error code from
18318         dl_catch_error.
18319
18320         [BZ #13123]
18321         * elf/dl-load.c (lose): Free l_origin if it is valid.
18322
18323         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18324         names.
18325         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18326         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18327         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18328         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18329         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18330         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18331
18332 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18333
18334         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18335         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18336         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18337         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18338         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18339         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18340         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18341         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18342         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18343         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18344
18345 2011-08-15  Alan Modra  <amodra@gmail.com>
18346
18347         [BZ #13092]
18348         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18349         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18350         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18351         ppc_mcount to static-only-routines.
18352         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18353         __mcount_internal.
18354         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18355         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18356
18357 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18358
18359         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18360         for finite and infinity parameters.
18361
18362 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18363
18364         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18365         and add nop instructions for throughput optimization.
18366         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18367
18368 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18369
18370         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18371         aligned copy for power7 with vector-scalar instructions.
18372         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18373
18374 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18375
18376         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18377         AVX check.
18378
18379 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18380
18381         [BZ #13144]
18382         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18383         last change.
18384
18385 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18386
18387         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18388         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18389         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18390         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18391         clock_gettime.
18392
18393 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18394
18395         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18396         Forgot to demangle the pointer.
18397
18398         * sysdeps/i386/sysdep.h: Define atom_text_section.
18399         * sysdeps/x86_64/sysdep.h: Likewise.
18400         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18401         section with atom_text_section.
18402         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18403         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18404         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18405         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18406         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18407
18408         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18409         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18410         already be defined.  Change to take two parameters and don't assign
18411         result to variable.  Adjust all users.
18412         Define INTERNAL_GETTIME if not already defined.
18413         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18414         call.
18415         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18416         HAVE_CLOCK_GETTIME_VSYSCALL.
18417         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18418
18419         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18420         gettimeofday vsyscall, just use time.
18421
18422 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18423
18424         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18425         <errno.h>.
18426
18427 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18428
18429         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18430         syscall on x86-64.
18431         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18432         syscall.
18433         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18434         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18435         syscall if possible.
18436
18437 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18438
18439         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18440         e_ident.  Don't pass to find_mapsXX.
18441         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18442
18443 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18444
18445         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18446         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18447         * sysdeps/x86_64/multiarch/strchr.S: Update.
18448         Check bit_slow_BSF bit.
18449         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18450         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18451         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18452
18453 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18454
18455         [BZ #13134]
18456         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18457         before glibc 2.15.
18458         (tryshell): Define.
18459         (__spawni): Change last parameter to be flag.  Test
18460         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18461         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18462         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18463         * posix/spawni.c: Likewise.
18464         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18465         * posix/spawnp.c: Likewise.  Change normal version to use
18466         SPAWN_XFLAGS_USE_PATH.
18467         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18468         SPAWN_XFLAGS_TRY_SHELL.
18469
18470         [BZ #13150]
18471         * posix/glob.h: Remove gcc 1.x support.
18472
18473         [BZ #13068]
18474         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18475
18476 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18477
18478         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18479         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18480         strrchr-sse2-bsf
18481         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18482         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18483         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18484         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18485         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18486         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18487
18488 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18489
18490         * sysdeps/x86_64/wcscmp.S: New file.
18491
18492         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18493         wcscmp-c wcscmp-sse2
18494         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18495         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18496         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18497         * wcsmbs/wcscmp.c: Allow renaming.
18498
18499 2011-09-05  David S. Miller  <davem@davemloft.net>
18500
18501         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18502         stack slot, rather than the struct return pointer slot.
18503         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18504         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18505         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18506         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18507
18508 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18509
18510         * po/ja.po: Update from translation team.
18511
18512         [BZ #13144]
18513         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18514         kernel in 64-bit binaries.
18515
18516 2011-09-01  David S. Miller  <davem@davemloft.net>
18517
18518         * elf/elf.h (HWCAP_SPARC_*): Move to..
18519         * sysdeps/sparc/sysdep.h: this new file and add new values.
18520         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18521         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18522         _DL_HWCAP_COUNT to 24.
18523         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18524         entries.
18525         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18526         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18527         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18528         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18529         instead of magic constants.
18530         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18531
18532 2011-08-31  David S. Miller  <davem@davemloft.net>
18533
18534         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18535         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18536         Reimplement to do errno handling inline.
18537         (SYSCALL_ERROR_HANDLER): New macro.
18538         (__SYSCALL_STRING): Do not do errno handling in asm.
18539         (__CLONE_SYSCALL_STRING): Delete.
18540         (__INTERNAL_SYSCALL_STRING): Delete.
18541         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18542         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18543         (PSEUDO): Reimplement to do errno handling inline.
18544         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18545         (SYSCALL_ERROR_HANDLER): New macro.
18546         (__SYSCALL_STRING): Do not do errno handling in asm.
18547         (__CLONE_SYSCALL_STRING): Delete.
18548         (__INTERNAL_SYSCALL_STRING): Delete.
18549         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18550         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18551         i386.
18552         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18553         (inline_syscall*): Add 'err' argument.
18554         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18555         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18556         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18557         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18558
18559         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18560         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18561
18562 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18563
18564         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18565
18566 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18567
18568         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18569         directive.
18570
18571 2011-08-24  David S. Miller  <davem@davemloft.net>
18572
18573         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18574
18575 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18576
18577         * elf/Makefile: Add rules to build and run unload8 test.
18578         * elf/unload8.c: New file.
18579         * elf/unload8mod1.c: New file.
18580         * elf/unload8mod1x.c: New file.
18581         * elf/unload8mod2.c: New file.
18582         * elf/unload8mod3.c: New file.
18583
18584         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18585         it wasn't used.
18586
18587 2011-08-23  David S. Miller  <davem@davemloft.net>
18588
18589         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18590         subtract stack bias.
18591         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18592         %sp not %fp in calculations.
18593         (_JMPBUF_UNWINDS_ADJ): Likewise.
18594
18595         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18596         (aio_suspend): Call it to force an exception region around the
18597         AIO_MISC_WAIT() invocation.
18598
18599 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18600
18601         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18602         backslash.
18603
18604 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18605
18606         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18607         protection macro.
18608         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18609         and <dl-machine.h>.
18610         (Elf64_FuncDesc): Remove.
18611
18612 2011-08-22  David S. Miller  <davem@davemloft.net>
18613
18614         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18615         sigaltstack check, add missing cfi directives.
18616         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18617         missing cfi directives, and sigaltstack handling.
18618
18619 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18620
18621         [BZ #11724]
18622         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18623         object is seen twice.
18624         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18625
18626         * elf/Makefile (distribute): Add tst-initorder2.c.
18627         (tests): Add tst-initorder2.
18628         (modules-names): Add tst-initorder2a tst-initorder2b
18629         tst-initorder2c tst-initorder2d.  Add rules to build them.
18630         ($(objpfx)tst-initorder2.out): New rule.
18631         * elf/tst-initorder2.c: New file.
18632         * elf/tst-initorder2.exp: New file.
18633
18634 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18635
18636         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18637
18638         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18639         dependencies back to end of function.
18640
18641         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18642         $(elfobjdir)/ld.so.
18643
18644 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18645
18646         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18647         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18648         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18649         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18650         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18651         of __vdso_gettimeofday.
18652         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18653         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18654         attribute_hidden.
18655         (_libc_vdso_platform_setup): Remove initialization of
18656         __vdso_gettimeofday and __vdso_time.
18657
18658 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18659
18660         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18661         and fgetc_unlocked.
18662         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18663         getc_unlocked.
18664
18665         * elf/dl-open.c (add_to_global): Report additions to the global scope
18666         for LD_DEBUG=scopes.
18667         (dl_open_worker): Also print scope of newly loaded dependencies.
18668         (_dl_show_scope): Indicate if there is no scope.
18669
18670         [BZ #13114]
18671         * stdio-common/Makefile (tests): Add bug24.
18672         * stdio-common/bug24.c: New file.
18673
18674 2011-08-19  Andreas Jaeger  <aj@suse.de>
18675
18676         [BZ #13114]
18677         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18678         non-existant file when using close-on-exec mode.
18679
18680 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18681
18682         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18683         the very first instruction.
18684
18685         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18686         the CFI state in the end.
18687         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18688         inclusion of dl-trampoline.h.
18689         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18690
18691 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18692
18693         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18694         expectations for long double.
18695
18696         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18697         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18698
18699 2011-08-14  David S. Miller  <davem@davemloft.net>
18700
18701         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18702         artificual limit depends upon the system page size.
18703
18704 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18705
18706         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18707         * resolv/Makefile: Define CFLAGS-libresolv.
18708
18709 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18710
18711         * nss/makedb.c (compute_tables): Make variables used in nested
18712         function static.
18713
18714 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18715
18716         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18717         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18718         if buffer was too small.
18719
18720         * elf/pldd.c (main): Attach to all threads in the process.
18721         Rewrite /proc handling to use *at functions.
18722
18723 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18724
18725         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18726         specifies first scope to show.
18727         (dl_open_worker): Update callers.  Move printing scope of new
18728         object to before the relocation.
18729         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18730         * sysdeps/generic/ldsodefs.h: Update declaration.
18731
18732         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18733         string for the scope number.
18734
18735 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18736
18737         * nscd/servicescache.c (cache_addserv): Make sure written is always
18738         initialized.
18739
18740 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18741
18742         * sysdeps/i386/i486/bits/atomic.h
18743         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18744         statement expression, so as to suppress "set but not used" warning.
18745         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18746
18747         * string/strncat.c (STRNCAT): Use prototype definition.
18748
18749         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18750         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18751         -Iprograms here.
18752         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18753         (localedef-modules): Add localedef.
18754         (locale-modules): Add locale.
18755
18756         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18757         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18758         to avoid a warning.
18759
18760 2011-08-14  David S. Miller  <davem@davemloft.net>
18761
18762         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18763         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18764
18765 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18766
18767         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18768         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18769         * elf/rtld.c (dl_main): Set l_name of vDSO.
18770         Call _dl_show_scope when DL_DEBUG_SCOPES.
18771         (process_dl_debug): Recognize scopes flag and also set it for all.
18772         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18773         Declare _dl_show_scope.
18774
18775         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18776         (do_dlopen): Pass caller_dlopen to dl_open.
18777         (__libc_dlopen_mode): Initialize caller_dlopen.
18778
18779         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18780         of libc.  Make tolower call locale-independent.  Optimize a bit by
18781         using isdigit instead of isalnum.
18782         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18783
18784 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18785
18786         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18787         was a dependency or dynamically loaded.
18788
18789 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18790
18791         * intl/l10nflist.c: Allow architecture-specific pop function.
18792         * sysdeps/x86_64/l10nflist.c: New file.
18793
18794         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18795         classification.
18796
18797 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18798
18799         * include/dirent.h: Add libc_hidden_proto for scandirat and
18800         scandirat64.  Don't declare __scandirat64.
18801         * dirent/scandirat.c: Add libc_hidden_def.
18802         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18803         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18804
18805 2011-08-10  David S. Miller  <davem@davemloft.net>
18806
18807         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18808         enum.
18809         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18810         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18811         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18812
18813 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18814
18815         * Versions.def [libc]: Add GLIBC_2.15.
18816         * dirent/Makefile (routines): Add scandirat and scandirat64.
18817         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18818         GLIBC_2.15.
18819         * dirent/dirent.h: Declare scandirat and scandirat64.
18820         * dirent/scandirat.c: New file.
18821         * dirent/scandirat64.c: New file.
18822         * sysdeps/wordsize-64/scandirat.c: New file.
18823         * sysdeps/wordsize-64/scandirat64.c: New file.
18824         * dirent/opendir.c: Define opendirat.
18825         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18826         using scandirat.
18827         * dirent/scandir64.c: Adjust for scandir.c change.
18828         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18829         __scandirat64, and __scandir_cancel_handler.
18830         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18831         additional parameter and use openat instead of open (outside of ld.so).
18832         Add new __opendir as wrapper around __opendirat.
18833         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18834         here without requiring old scandirat implementation.
18835
18836 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18837
18838         * dirent/scandir.c (cancel_handler): Renamed to
18839         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18840         defined.  Adjust users.
18841         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18842         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18843
18844 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18845
18846         * string/test-string.h (IMPL): Use __STRING to expand name and then
18847         stringify it.
18848
18849         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18850         of cleanups.
18851
18852 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18853
18854         * string/Makefile: Update.
18855         (strop-tests): Append strncat.
18856         * string/test-wcscmp.c: New file.
18857         New comprehensive test for wcscmp.
18858         * string/test-strcmp.c: Update.
18859         (WIDE): New define.
18860
18861 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18862
18863         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18864         line.
18865
18866 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18867
18868         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18869         encoding to ACE if AI_IDN.
18870
18871 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18872
18873         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18874         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18875
18876 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18877
18878         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18879         Fix overflow bug in strncat.
18880         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18881
18882         * string/test-strncat.c: Update.
18883         Add new tests for checking overflow bugs.
18884
18885 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18886
18887         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18888         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18889         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18890         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18891         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18892         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18893         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18894         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18895         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18896
18897         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18898         (USE_AS_STRCAT): Define.
18899         Add strcat and strncat support.
18900         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18901
18902 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18903
18904         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18905         __n bigger than INT_MAX+1.
18906         (__strncmp_g): Likewise.
18907
18908 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18909
18910         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18911         * libio/stido.h: Likewise.
18912
18913         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18914         (AF_NFC): Define.
18915         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18916         (AF_NFC): Define.
18917
18918         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18919         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18920         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18921         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18922         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18923
18924         [BZ #13021]
18925         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18926         installed.
18927
18928         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18929         typo.
18930         (_dl_x86_64_save_sse): Likewise.
18931
18932 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18933
18934         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18935         OSXSAVE.
18936         (_dl_x86_64_save_sse): Likewise.
18937
18938         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18939
18940         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18941
18942 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18943
18944         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18945         change.
18946         (_dl_x86_64_save_sse): Use correct AVX check.
18947
18948 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18949
18950         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18951         bug in strncpy/strncat.
18952         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18953
18954 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18955
18956         * string/tester.c (test_strcat): Add tests for different alignments
18957         of source and destination.
18958         (test_strncat): Likewise.
18959
18960 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18961
18962         [BZ #12852]
18963         * posix/glob.c (glob): Check passed in values before using them in
18964         expressions to avoid some overflows.
18965         (glob_in_dir): Likewise.
18966
18967         [BZ #13007]
18968         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18969         check for AVX enablement so that we don't crash with old kernels and
18970         new hardware.
18971         * elf/tst-audit4.c: Add same checks here.
18972         * elf/tst-audit6.c: Likewise.
18973
18974         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18975
18976 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18977
18978         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18979
18980 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18981
18982         * po/cs.po: Update from translation team.
18983         * po/bg.po: Likewise.
18984
18985 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18986
18987         * misc/sys/cdefs.h: Add support for const attribute.
18988         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18989         to gnu_dev_{major,minor,makedev} functions.
18990
18991 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18992
18993         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18994
18995 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18996
18997         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18998         strlen results.
18999
19000 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19001
19002         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
19003         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
19004         register in order to avoid conflicts with the soft frame pointer
19005         being held in r11 when necessary.
19006         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
19007         (INTERNAL_VSYSCALL_NCS): Likewise.
19008
19009 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
19010
19011         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
19012         * elf/dl-fini.c (_dl_fini): Adjust caller.
19013         * elf/dl-close.c (_dl_close_worker): Likewise.
19014         * sysdeps/generic/ldsodefs.h: Adjust declaration.
19015
19016 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19017
19018         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
19019         "aux_cache->nlibs < 0".
19020
19021         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
19022         in the reload-count case.
19023
19024 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19025
19026         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19027         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
19028         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
19029         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
19030         * sysdeps/x86_64/multiarch/strcat.S: New file.
19031         * sysdeps/x86_64/multiarch/strncat.S: New file.
19032         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
19033         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
19034         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
19035         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
19036         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
19037         (USE_AS_STRCAT): Define.
19038         Add strcat and strncat support.
19039         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
19040         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
19041         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
19042         * string/strncat.c: Update.
19043         (USE_AS_STRNCAT): Define.
19044         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19045         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
19046         and i7.
19047         * sysdeps/x86_64/multiarch/init-arch.h
19048         (bit_Prefer_PMINUB_for_stringop): New.
19049         (index_Prefer_PMINUB_for_stringop): Likewise.
19050         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
19051         bit_Prefer_PMINUB_for_stringop.
19052
19053 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19054
19055         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
19056         buffer64.
19057         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
19058         of casting of buffer.
19059         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
19060         buffer32 and buffer64.
19061         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
19062         writes instead of casting of buffer.
19063         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
19064         buffer32.
19065         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
19066         casting of buffer.
19067
19068 2011-07-19  Andreas Schwab  <schwab@redhat.com>
19069
19070         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
19071
19072 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19073
19074         * nscd/nscd.c (termination_handler): Don't do anything for a database
19075         if it has not yet been initialized.
19076
19077 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19078
19079         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19080
19081 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19082
19083         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19084
19085 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19086
19087         * po/nl.po: Update from translation team.
19088         * po/sv.po: Likewise.
19089
19090 2011-07-16  Roland McGrath  <roland@hack.frob.com>
19091
19092         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
19093         now disallowed by GCC.
19094
19095         * configure.in (use-default-link): Default to yes if a test -shared
19096         link meets our qualifications.
19097         * configure: Regenerated.
19098
19099         * config.make.in (output-format): New variable.
19100         * configure.in: Check for ld --print-output-format support.
19101         * configure: Regenerated.
19102         * Makerules ($(common-objpfx)format.lds)
19103         [$(output-format) != unknown]: Just use $(output-format),
19104         instead of the linker-script munging.
19105
19106 2011-07-14  Roland McGrath  <roland@hack.frob.com>
19107
19108         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19109         of $(common-objpfx)shlib.lds.
19110         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19111
19112         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19113         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19114
19115         * configure.in (-z relro check): Adjust test code to add a large
19116         writable data section after it.
19117         * configure: Regenerated.
19118
19119 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19120
19121         * configure.in (-z relro check): Fix test code to make the variable
19122         truly const.
19123         * configure: Regenerated.
19124
19125 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19126
19127         * nscd/nscd.h (struct traced_file): Define.
19128         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19129         elements.  Add traced_files.
19130         (inotify_fd): Declare.
19131         (register_traced_file): Declare.
19132         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19133         (inotify_fd): Export.
19134         (resolv_conf_descr): Remove.
19135         (nscd_init): Move inotify descriptor creation to main.
19136         Don't register files for notification here.
19137         (register_traced_file): New function.
19138         (invalidate_cache): Don't use reset_res to determine whether to call
19139         res_init, go through the list of registered files.
19140         (main_loop_poll): The inotify descriptors are now stored in the
19141         structures for the traced files.
19142         (main_loop_epoll): Likewise
19143         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19144         to __nss_disable_nscd.
19145         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19146         for a database anymore.  Check the records for all the registered
19147         files instead.
19148         * nss/Makefile (libnss_files-routines): Add files-init.
19149         (libnss_db-routines): Add db-init.
19150         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19151         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19152         * nss/nss_db/db-init.c: New file.
19153         * nss/nss_files/files-init.c: New file.
19154         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19155         __nss_lookup_function.
19156         (__nss_lookup_function): Call nss_load_library.
19157         (nss_load_all_libraries): New function.
19158         (__nss_disable_nscd): Take parameter with callback function for files
19159         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19160         used for the cached services.
19161         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19162         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19163         options for features to all the files in nscd.
19164
19165         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19166
19167 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19168
19169         * csu/elf-init.c (__libc_csu_init): Comment typo.
19170
19171 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19172
19173         * po/pl.po: Update from translation team.
19174         * po/ja.po: Likewise.
19175         * po/ru.po: Likewise.
19176         * po/ko.po: Likewise.
19177         * po/fr.po: Likewise.
19178
19179 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19180
19181         * configure.in (.ctors/.dtors header and trailer check):
19182         Use an empirical test on a built program.
19183         * configure: Regenerated.
19184
19185         * configure.in (-z relro check): Use an empirical test on a built DSO.
19186         Detect, but do not require, on ia64.
19187         * configure: Regenerated.
19188
19189         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19190         Update tests that use readelf to use $READELF instead.
19191         * configure: Regenerated.
19192
19193 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19194
19195         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19196         if the result is not used.
19197
19198 2011-07-05  Andreas Jaeger  <aj@suse.de>
19199
19200         [BZ#9696]
19201         * stdlib/tst-strtod.c: Add testcase.
19202
19203 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19204
19205         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19206         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19207         The latter has a higher limit.  Take additional parameter to pass to
19208         the new function.
19209         (__pathconf): Pass file to __statfs_link_max.
19210         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19211         __statfs_link_max.
19212         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19213         __statfs_link_max.
19214
19215         [BZ #12868]
19216         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19217         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19218         Handle Lustre.
19219         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19220         (__statfs_filesize_max): Likewise.
19221         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19222
19223 2011-07-05  Andreas Jaeger  <aj@suse.de>
19224
19225         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19226
19227 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19228
19229         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19230         `status' variable.
19231         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19232         Likewise.
19233
19234 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19235
19236         * Makefile (strop-tests): Add strncat.
19237         * string/test-strncat.c: New file.
19238
19239 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19240
19241         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19242
19243 2011-06-21  Andreas Jaeger  <aj@suse.de>
19244
19245         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19246         Copy rule from iconvdata/Makefile.
19247
19248 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19249
19250         [BZ #12922]
19251         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19252         but no long options are defined, just return 'W'.
19253
19254 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19255
19256         [BZ #9696]
19257         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19258
19259 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19260
19261         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19262         netgroups to read.
19263         (innetgr): Likewise.
19264
19265 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19266
19267         * config.make.in (install_root): Default to $(DESTDIR).
19268
19269 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19270
19271         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19272
19273 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19274
19275         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19276
19277         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19278         containing directory rather than embedding absolute directory names.
19279
19280         * scripts/check-local-headers.sh: Rewritten using awk.
19281         Match by word, not by line.  Print error messages for matches.
19282         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19283
19284         * Makerules [shlib-lds-flags empty]:
19285         ($(common-objpfx)libc_pic.opts): New target.
19286         ($(common-objpfx)libc_pic.os.clean): New target.
19287         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19288
19289         * config.make.in (OBJCOPY): New variable.
19290         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19291         * configure: Regenerated.
19292
19293         * config.make.in (use-default-link): New variable.
19294         * configure.in (use_default_link): Grok --with-default-link to set it.
19295         * configure: Regenerated.
19296         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19297         (shlib-lds, shlib-lds-flags): Define to empty.
19298
19299         * Makerules (shlib-lds): New variable.
19300         (shlib-lds-flags): New variable.
19301         (build-shlib, build-moduile, build-module-asneeded): Use it.
19302         ($(common-objpfx)libc.so): Use $(shlib-lds).
19303         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19304         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19305
19306         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19307         DT_FLAGS/DT_FLAGS_1 with zero flags.
19308
19309         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19310         linker script munging.
19311
19312 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19313
19314         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19315         as 128-bit value.
19316         * crypt/sha512.c (sha512_process_block): Perform total addition using
19317         128-bit if possible.
19318         (__sha512_finish_ctx): Likewise.
19319         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19320         as 64-bit value.
19321         * crypt/sha256.c (SWAP64): Define.
19322         (sha256_process_block): Perform total addition using 64-bit if
19323         possible.
19324         (__sha256_finish_ctx): Likewise.
19325
19326 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19327
19328         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19329         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19330         * nscd/hstcache.c (cache_addhst): Likewise.
19331         * nscd/grpcache.c (cache_addgr): Likewise.
19332         * nscd/aicache.c (addhstaiX): Likewise
19333         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19334
19335 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19336
19337         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19338         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19339         * nscd/hstcache.c (cache_addhst): Likewise.
19340         * nscd/grpcache.c (cache_addgr): Likewise.
19341         * nscd/aicache.c (addhstaiX): Likewise
19342
19343 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19344
19345         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19346         domain only when needed.
19347
19348 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19349
19350         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19351         is always restored.
19352
19353 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19354
19355         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19356         are re-adding the entry.
19357         * nscd/servicescache.c (cache_addserv): Likewise.
19358
19359 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19360
19361         * sysdeps/generic/dl-irel.h: fix protection against multiple
19362         inclusions.
19363         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19364
19365 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19366
19367         [BZ #12935]
19368         * malloc/memusage.sh: Fix quoting in message.
19369         * debug/xtrace.sh: Likewise.
19370
19371         * configure.in: Remove support for --experimental-malloc option, make
19372         it the default.
19373         * config.make.in: Likewise.
19374         * malloc/Makefile: Likewise.
19375
19376 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19377
19378         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19379         two-byte characters.
19380
19381 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19382
19383         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19384         AC_CACHE_CHECK invocation.
19385         * configure: Regenerated.
19386
19387         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19388
19389 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19390
19391         [BZ #12350]
19392         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19393         bit from old_res_options.
19394
19395         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19396
19397         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19398         value type for setfct.
19399
19400 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19401
19402         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19403         __gettimeofday instead of gettimeofday.
19404
19405 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19406
19407         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19408
19409 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19410
19411         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19412
19413         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19414         info.
19415
19416 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19417
19418         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19419         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19420         strcpy-sse2-unaligned strncpy-sse2-unaligned
19421         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19422         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19423         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19424         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19425         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19426         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19427         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19428         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19429         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19430         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19431         (STRCPY): Support SSE2 and SSSE3 versions.
19432
19433 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19434
19435         [BZ #12874]
19436         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19437         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19438         kernels which artificially limit size of requests.
19439
19440 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19441
19442         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19443         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19444         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19445         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19446         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19447         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19448         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19449         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19450         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19451         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19452         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19453         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19454         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19455         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19456         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19457         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19458         Enable unaligned load optimization for Intel Core i3, i5 and i7
19459         processors.
19460         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19461         Define.
19462         (index_Fast_Unaligned_Load): Define.
19463         (HAS_FAST_UNALIGNED_LOAD): Define.
19464
19465 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19466
19467         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19468
19469 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19470
19471         [BZ #12907]
19472         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19473         until it is clear that the information is realy needed.
19474         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19475
19476 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19477
19478         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19479
19480 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19481
19482         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19483         /sys/devices/system/cpu/online if it is usable.
19484
19485         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19486         reading the information from the /proc filesystem to once a second.
19487
19488 2011-06-21  Andreas Jaeger  <aj@suse.de>
19489
19490         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19491         NULL after inclusion of kernel headers.
19492
19493 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19494
19495         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19496         calls to internal_setent.
19497
19498         [BZ #12885]
19499         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19500         addresses using gethostbyname4_r ignore IPv4 addresses.
19501
19502         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19503         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19504
19505         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19506
19507 2011-06-20  David S. Miller  <davem@davemloft.net>
19508
19509         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19510         inclusions.
19511         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19512
19513         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19514         (elf_irel): Use it.
19515         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19516         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19517         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19518         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19519         * sysdeps/x86_64/dl-irel.h: Likewise.
19520
19521         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19522         * elf/dl-sym.c: Likewise.
19523
19524 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19525
19526         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19527         need to dereference resplen2.
19528
19529 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19530
19531         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19532
19533 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19534
19535         * Makeconfig: Define vardbdir and inst_vardbdir.
19536         * nss/Makefile: Add rules to install db-Makefile.
19537
19538         * nss/nss_db/db-XXX.c: Cleanup.
19539
19540         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19541         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19542         GLIBC_PRIVATE.
19543         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19544         * nss/makedb.c: Implement -g option to specify that value strings
19545         are generated and should not be added to table iterated over for
19546         get*ent calls.
19547         * nss/nss_db/db-initgroups.c: New file.
19548
19549         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19550         interface.
19551
19552         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19553         (internal_getgrouplist): Adjust to name change.
19554         Update use_initgroups_entry if this is not the first call.
19555         * nss/databases.def: Add initgroups entry.
19556
19557         * nss/makedb.c (compute_tables): Check result of multiple hash table
19558         sizes to minimize maximum chain length.
19559
19560 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19561
19562         * Versions.def: Add entry for libnss_db.
19563         * shlib-versions: Likewise.
19564         * nss/Makefile: Add rules to build libnss_db.
19565         * nss/Versions: Add libnss_db information.  Organize libnss_files
19566         entries better.
19567         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19568         makedb progra.  Some minor improvements to generate smaller files.
19569         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19570         here from...
19571         * nss/makedb.c: ...here.
19572         Improve database format to be smaller and require less memory at
19573         runtime.
19574         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19575         db anymore.
19576         * nss/nss_db/db-netgrp.c: Likewise.
19577         * nss/nss_db/db-open.c: Likewise.
19578         * nss/nss_files/flies-XXX.x: Adjust comments.
19579         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19580         * nss/nss_files/files-grp.c: Likewise.
19581         * nss/nss_files/files-hosts.c: Likewise.
19582         * nss/nss_files/files-network.c: Likewise.
19583         * nss/nss_files/files-proto.c: Likewise.
19584         * nss/nss_files/files-pwd.c: Likewise.
19585         * nss/nss_files/files-rpc.c: Likewise.
19586         * nss/nss_files/files-service.c: Likewise.
19587         * nss/nss_files/files-sgrp.c: Likewise.
19588         * nss/nss_files/files-spwd.c: Likewise.
19589         * nss/nss_db/db-alias.c: Removed.
19590         * nss/nss_db/dummy-db.h: Removed.
19591
19592 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19593
19594         * nss/makedb.c: Rewritten to not use database library.
19595         * nss/Makefile: Update to build new makedb program.
19596
19597 2011-06-14  Andreas Jaeger  <aj@suse.de>
19598
19599         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19600         memset declaration.
19601
19602 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19603
19604         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19605         tmpbuf.
19606
19607 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19608
19609         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19610         * elf/Makefile ($(objpfx)ld.so): Likewise.
19611
19612         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19613         Don't list ld.so twice in dependencies.
19614
19615         * posix/bug-regex31.c: Include <stdlib.h>.
19616
19617         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19618
19619         * nis/nss_compat/compat-spwd.c
19620         (getspent_next_nss_netgr): Remove unused variable.
19621         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19622
19623         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19624         nonmembers" output to use the right array.
19625
19626         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19627
19628         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19629
19630         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19631         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19632         * catgets/gencat.c (read_input_file): Likewise.
19633         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19634
19635         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19636         variable definition inside #if's controlling its use.
19637
19638         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19639
19640         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19641
19642         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19643
19644         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19645         unreachable code.
19646
19647         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19648
19649         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19650         * configure: Regenerated.
19651
19652         * Makerules: Revert last change.
19653         * elf/Makefile: Likewise.
19654
19655 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19656
19657         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19658         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19659         (reloc-link): Likewise.
19660
19661 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19662
19663         * elf/Makefile: Add rules to build pldd.
19664         * elf/pldd.c: New file.
19665         * elf/pldd-xx.c: New file.
19666
19667 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19668
19669         * version.h: Update for 2.15 development version.
19670
19671 2011-06-07  David S. Miller  <davem@davemloft.net>
19672
19673         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19674         ifuncs.
19675         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19676         elf_machine_lazy_rel): Likewise.
19677         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19678         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19679         elf_machine_lazy_rel): Likewise.
19680         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19681         dl_hwcap via passed in argument.
19682         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19683         Likewise.
19684
19685 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19686
19687         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19688
19689 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19690
19691         [BZ #12849]
19692         * manual/fdl-1.1.texi: New file, verbatim from:
19693         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19694         * manual/lgpl-2.1.texi: New file, verbatim from:
19695         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19696         * manual/Makefile (licenses): New variable, list those new file names.
19697         (texis): Use it.
19698         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19699
19700         * manual/fdl.texi: File removed.
19701         * manual/lesser.texi: File removed.
19702         * manual/libc.texinfo (Copying, Documentation License):
19703         Use new @include file names, put @appendix directive before @include.
19704
19705 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19706
19707         [BZ #12841]
19708         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19709         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19710         (mq_open): Add __NTH.
19711
19712 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19713
19714         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19715         Assume Intel Core i3/i5/i7 processor if AVX is available.
19716
19717 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19718
19719         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19720         typo.
19721
19722 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19723
19724         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19725         memory.  Use alloca_account.  Fix memory leak when retrying.
19726
19727 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19728
19729         * version.h (RELEASE): Bump for 2.14 release.
19730         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19731
19732         * config.make.in (RANLIB): Remove entry.
19733
19734 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19735
19736         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19737         (libc.pot): Work around missing support for .ksh extension in xgettext.
19738
19739         [BZ #12684]
19740         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19741         if both request failed.
19742         (send_dg): In case of server errors clear resplen or *resplen2.
19743
19744         [BZ #12454]
19745         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19746         when there are multiple maps.
19747         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19748         (_dl_fini): Remove test here.
19749
19750         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19751
19752 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19753
19754         [BZ #12350]
19755         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19756         bit from old_res_options.
19757         (gaih_inet): Likewise.
19758
19759         [BZ #11099]
19760         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19761         as signed.
19762
19763         * resolv/res_init.c (res_setoptions): Make the code more compact.
19764
19765         [BZ #11558]
19766         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19767         set RES_USEVC.
19768
19769         [BZ #11634]
19770         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19771
19772         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19773
19774         [BZ #11781]
19775         * malloc/malloc.h: Declare malloc hook variables as volatile.
19776
19777         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19778         in last patch.
19779
19780         [BZ #11799]
19781         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19782         raise in the comment.
19783         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19784         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19785         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19786
19787 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19788
19789         [BZ #12811]
19790         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19791         grow the buffers more if it already has to be sufficient.
19792         (build_wcs_upper_buffer): Likewise.
19793         * posix/regexec.c (check_matching): Likewise.
19794         (clean_state_log_if_needed): Likewise.
19795         (extend_buffers): Don't enlarge buffers beyond size of the input
19796         buffer.
19797         Patches mostly by Emil Wojak <emil@wojak.eu>.
19798         * posix/bug-regex32.c: New file.
19799         * posix/Makefile (tests): Add bug-regex32.
19800
19801         * locale/findlocale.c (_nl_find_locale): Return right away if
19802         _nl_explode_name failed.
19803         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19804
19805         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19806
19807         * debug/xtrace.sh: Unify messages.
19808         * malloc/memusage.sh: Likewise.
19809
19810         [BZ #12813]
19811         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19812         time symbol from vDSO.  Substitute with vsyscall if not available.
19813         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19814         __vdso_time.
19815
19816         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19817         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19818         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19819         Add sendmmsg and internal_sendmmsg.
19820         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19821         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19822         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19823
19824         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19825         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19826         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19827
19828 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19829
19830         [BZ #12813]
19831         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19832         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19833         available.
19834         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19835         __vdso_getcpu.
19836
19837         [BZ #12814]
19838         * iconvdata/Makefile (tests): Add bug-iconv9.
19839         * iconvdata/bug-iconv9.c: New file.
19840
19841 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19842
19843         [BZ #12814]
19844         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19845
19846 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19847
19848         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19849         (struct user_regs_struct): Change intcs field back to cs.
19850
19851 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19852
19853         * po/ja.po: Update from translation team.
19854
19855 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19856
19857         [BZ #12795]
19858         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19859         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19860
19861 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19862
19863         * stdlib/longlong.h: Update from GCC.
19864
19865 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19866
19867         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19868         parameter name.
19869         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19870         Add parameter name.
19871         (__sysconf): Pass it down.
19872
19873 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19874
19875         [BZ #12671]
19876         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19877         some situations.
19878         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19879         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19880         add in in __libc_use_alloca calls.  Adjust callers.
19881         (glob): Use malloc in some situations.
19882
19883         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19884         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19885         pltexit.
19886
19887 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19888
19889         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19890         and CLOCK_BOOTTIME_ALARM.
19891
19892         [BZ #12782]
19893         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19894         is returned.
19895
19896         * string/_strerror.c (__strerror_r): Print negative errors as signed
19897         numbers.
19898
19899         [BZ #12777]
19900         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19901         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19902         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19903
19904         * configure.in: Fix typo in redirection and correct removal of test
19905         files in two cases.
19906
19907         [BZ #12788]
19908         * locale/setlocale.c (new_composite_name): Fix test to check for
19909         identical name of all categories.
19910
19911         [BZ #12792]
19912         * libio/filedoalloc.c (local_isatty): New function.
19913         (_IO_file_doallocate): Use local_isatty.
19914         * stdio-common/perror.c (perror): In case a new stream is used
19915         forward the stream error.
19916         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19917         error flag.
19918
19919 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19920
19921         [BZ #11869]
19922         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19923         alloca.
19924         * include/alloca.h (extend_alloca_account): Define.
19925
19926         [BZ #11857]
19927         * posix/regex.h: Fix comments with documentation of user-accessible
19928         fields after compilation and describe correct free'ing of pattern
19929         after re_compile_pattern.
19930         Patch by Reuben Thomas <rrt@sc3d.org>.
19931
19932 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19933
19934         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19935         and -mno-altivec to prevent the compiler from using Altivec and/or
19936         VSX instructions when the corresponding registers are not available.
19937
19938 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19939
19940         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19941
19942 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19943
19944         * libio/freopen.c (freopen): Use __dup2, not dup2.
19945         * libio/freopen64.c (freopen64): Likewise.
19946
19947 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19948
19949         [BZ #12775]
19950         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19951         * math/Makefile (tests): Add test-powl.
19952         (CFLAGS-test-powl.c): Define.
19953         * math/test-powl.c: New file.
19954
19955 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19956
19957         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19958
19959 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19960
19961         [BZ #11837]
19962         * iconvdata/gb18030.c: Update to GB18020-2005.
19963
19964 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19965
19966         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19967         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19968         Patch by Aharon Robbins <arnold@skeeve.com>.
19969
19970         [BZ #11892]
19971         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19972         on the stack.
19973
19974         [BZ #11895]
19975         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19976         through underflows.
19977
19978         [BZ #12766]
19979         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19980         point to strings before performing equality test for error_one_per_line
19981         mode.
19982
19983         [BZ #11697]
19984         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19985
19986         [BZ #11820]
19987         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19988         (struct user_fpregs_struct): Avoid __uint*_t types.
19989
19990         [BZ #6420]
19991         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19992         symbol info.  Use it instead of calling _dl_addr locally.
19993         (lock_and_info): New function.
19994         (tr_freehook): Call lock_and_info and pass symbol info as additional
19995         parameter to tr_where.
19996         (tr_mallochook): Likewise.
19997         (tr_reallochook): Likewise.
19998         (tr_memalignhook): Likewise.
19999
20000         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
20001         used and couldn't be at all thread-safe.
20002
20003 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
20004
20005         * libio/freopen.c (freopen): Don't close old file descriptor
20006         before the new one is opened.  Instead dup the new file descriptor
20007         to the old one after the new stream is created.
20008         * libio/freopen64.c (freopen64): Likewise.
20009         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
20010         * libio/fileops.c (_IO_new_file_close_it): Handle new
20011         _IO_FLAGS2_NOCLOSE flag.
20012         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
20013         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
20014         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
20015         _IO_FLAGS2_NOCLOSE flag.
20016         * include/unistd.h: Add hidden_proto for dup3.
20017         Define __have_dup3.
20018         * io/dup3.c: Define hidden symbol.
20019         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
20020
20021         [BZ #7101]
20022         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
20023         when an incomplete long option is used.
20024         * posix/tst-getopt_long1.c: New file.
20025         * posix/Makefile (tests): Add tst-getopt_long1.
20026
20027         [BZ #10138]
20028         * scripts/config.guess: Update from autoconf-2.68.
20029         * scripts/config.sub: Likewise.
20030
20031         [BZ #10157]
20032         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
20033         tests into ...
20034         (has_cpuclock): ...this.  New function.
20035         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
20036         macro here based on has_cpuclock code.
20037
20038         [BZ #10149]
20039         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20040         First byte (not low byte) is now always NUL.
20041         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
20042
20043         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20044         Use non-cancelable interfaces.
20045
20046         [BZ #9809]
20047         * locale/iso-639.def: Add entry for Sorani.
20048
20049         [BZ #11901]
20050         * include/stdlib.h: Move include protection to the right place.
20051         Define abort_msg_s.  Declare __abort_msg with it.
20052         * stdlib/abort.c (__abort_msg): Adjust type.
20053         * assert/assert.c (__assert_fail_base): New function.  Majority
20054         of code from __assert_fail.  Allocate memory for __abort_msg with
20055         mmap.
20056         (__assert_fail): Now call __assert_fail_base.
20057         * assert/assert-perr.c: Remove bulk of implementation.  Use
20058         __assert_fail_base.
20059         * include/assert.hL Declare __assert_fail_base.
20060         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
20061         mmap.
20062         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
20063
20064 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
20065
20066         [BZ #11952]
20067         [BZ #12453]
20068         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
20069         until all modules are registered in the DTV.
20070         * elf/Makefile: Add rules to build and run tst-tls19.
20071         * elf/tst-tls19.c: New file.
20072         * elf/tst-tls19mod1.c: New file.
20073         * elf/tst-tls19mod2.c: New file.
20074         * elf/tst-tls19mod3.c: New file.
20075         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
20076
20077         [BZ #12083]
20078         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
20079         correctly.
20080
20081         [BZ #12601]
20082         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
20083         two-byte sequence errors.
20084         * iconvdata/Makefile (tests): Add bug-iconv8.
20085         * iconvdata/bug-iconv8.c: New file.
20086
20087         [BZ #12626]
20088         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
20089         buf2 definition.
20090
20091         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
20092
20093         [BZ #12432]
20094         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
20095         (dummy_getcfa): New function.
20096         (init): Get _Unwind_GetCFA address, use dummy if not found.
20097         (backtrace_helper): In recursion check, also check whether CFA changes.
20098         (__backtrace): Completely initialize arg.
20099
20100         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20101         storing incomplete byte sequence in state object.  Avoid testing for
20102         guaranteed too small input if we know there is enough data available.
20103
20104 2011-05-11  Andreas Schwab  <schwab@redhat.com>
20105
20106         * Makeconfig (+link-pie): Indent.
20107         * Rules (binaries-pie): Define if $(have-fpie) and
20108         $(build-shared).
20109         (binaries-shared): Also filter out $(binaries-pie).
20110         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20111         * nscd/Makefile (others-pie): Add nscd.
20112         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20113         ($(objpfx)nscd): Remove command override.
20114         * login/Makefile (others-pie): Add pt_chown.
20115         ($(objpfx)pt_chown): Remove command override.
20116         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20117         remove command overrides.
20118
20119 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20120
20121         * libio/tst_putwc.c: Fix error messages.
20122
20123         [BZ #12724]
20124         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20125         currently writing and seek to current position when not.
20126         * libio/Makefile (tests): Add bug-fclose1.
20127         * libio/bug-fclose1.c: New file.
20128
20129 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20130
20131         [BZ #12511]
20132         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20133         don't set DF_1_NODELETE here.
20134         (do_lookup_x): When entering new entry test for copy relocation
20135         and if necessary set DF_1_NODELETE flag.
20136         * elf/tst-unique4.cc: New file.
20137         * elf/tst-unique4.h: New file.
20138         * elf/tst-unique4lib.cc: New file.
20139         * elf/Makefile: Add rules to build and run tst-unique4.
20140         Patch by Piotr Bury <pbury@goahead.com>.
20141
20142 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20143
20144         [BZ #12052]
20145         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20146
20147         [BZ #12625]
20148         * misc/mntent_r.c (addmntent): Flush the stream after the output
20149
20150         [BZ #12393]
20151         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20152         (is_trusted_path_normalize): Skip initial colon.  Append slash
20153         to empty buffer.  Duplicate is_trusted_path code but allow
20154         constructed patch to be prefix.
20155         (is_dst): Allow $ORIGIN followed by /.
20156         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20157         Correct testing of result of is_trusted_path_normalize
20158         (decompose_rpath): Fix warning.
20159
20160 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20161
20162         [BZ #11257]
20163         * grp/initgroups.c (internal_getgrouplist): When we found the service
20164         list through the initgroups entry in nsswitch.conf do not always
20165         continue on a successful lookup.  Don't always use the
20166         __nss_group_database value if it is set.
20167         * nss/nsswitch.conf (initgroups): Change action for successful db
20168         lookup to continue for compatibility.
20169
20170 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20171
20172         [BZ #11532]
20173         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20174         and CP774 modules.
20175         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20176         and CP774 modules.
20177         * iconvdata/tst-tables.sh: Likewise.
20178         * iconvdata/cp770.c: New file.
20179         * iconvdata/cp771.c: New file.
20180         * iconvdata/cp772.c: New file.
20181         * iconvdata/cp773.c: New file.
20182         * iconvdata/cp774.c: New file.
20183         * iconvdata/testdata/CP770: New file.
20184         * iconvdata/testdata/CP770..UTF8: New file.
20185         * iconvdata/testdata/CP771: New file.
20186         * iconvdata/testdata/CP771..UTF8: New file.
20187         * iconvdata/testdata/CP772: New file.
20188         * iconvdata/testdata/CP772..UTF8: New file.
20189         * iconvdata/testdata/CP773: New file.
20190         * iconvdata/testdata/CP773..UTF8: New file.
20191         * iconvdata/testdata/CP774: New file.
20192         * iconvdata/testdata/CP774..UTF8: New file.
20193
20194         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20195         END CHARMAP line.
20196         * iconvdata/gen-8bit-gap.sh: Likewise.
20197         * iconvdata/gen-8bit.sh: Likewise.
20198
20199         * locale/iso-639.def: Add ary entry.
20200
20201         [BZ #11258]
20202         * locale/C-translit.h.in: Add U20A1 transliteration.
20203
20204         [BZ #12178]
20205         * locale/iso-639.def: Add wae entry.
20206         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20207
20208         [BZ #12545]
20209         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20210         for n.
20211
20212         [BZ #12711]
20213         * locale/C-translit.h.in: Add entry for U20B9.
20214         Patch by pravin.d.s@gmail.com.
20215
20216 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20217
20218         [BZ #12713]
20219         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20220         ENAMETOOLONG use generic getcwd.
20221         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20222         in rtld.  Use *stat64.
20223         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20224         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20225         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20226         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20227         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20228         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20229         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20230         __fstatat64 macros.
20231         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20232         * dirent/rewinddir.c: Add libc_hidden_def.
20233         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20234         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20235
20236         * include/dirent.h (__alloc_dir): Add flags parameter.
20237         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20238         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20239         __alloc_dir.
20240         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20241         from fdopendir if O_CLOEXEC is already set.
20242
20243 2011-03-15  Alan Modra  <amodra@gmail.com>
20244
20245         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20246         l_tls_firstbyte_offset non-zero.  Save padding offset in
20247         l_tls_firstbyte_offset for later use.
20248         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20249         freeing static tls block.
20250
20251 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20252
20253         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20254         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20255         being defined by the kernel headers.
20256
20257 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20258
20259         [BZ #12734]
20260         * resolv/resolv.h: Define RES_NOTLDQUERY.
20261         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20262         no-tld-query and set RES_NOTLDQUERY.
20263         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20264         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20265         modern BIND to search name as TLD unless forbidden.
20266
20267 2011-05-07  Petr Baudis  <pasky@suse.cz>
20268             Ulrich Drepper  <drepper@gmail.com>
20269
20270         [BZ #12393]
20271         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20272         (is_trusted_path): ...to here.
20273         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20274         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20275         using is_trusted_path_normalize() in setuid scripts.
20276
20277 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20278
20279         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20280         __BEGIN/__END_DECLS.
20281
20282 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20283
20284         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20285         NSS_STATUS_NOTFOUND if no record was found.
20286
20287 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20288
20289         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20290         (headers-not-in-tirpc): Remove rpc/netdb.h
20291         * resolv/netdb.h: Revert last change.
20292
20293 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20294
20295         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20296         circular dependency between libgcc.a and libc.a.
20297
20298 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20299
20300         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20301         * nis/Makefile: Don't install rpcsvc/*.
20302         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20303         instead of <rpc/types.h>.
20304         (MAXHOSTNAMELEN): Define.
20305
20306 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20307
20308         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20309
20310 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20311
20312         [BZ #12714]
20313         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20314         gethostbyname4_r when IPv6 results are possible.
20315
20316 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20317
20318         [BZ #12723]
20319         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20320         _PC_PIPE_BUF handling.
20321
20322 2011-04-30  Bruno Haible  <bruno@clisp.org>
20323
20324         [BZ #12717]
20325         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20326         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20327         to 'int'.
20328         * inet/getnameinfo.c (getnameinfo): Likewise.
20329
20330 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20331
20332         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20333         to groups setting in database lookup.
20334         * nss/nsswitch.conf: Add initgroups entry.
20335
20336 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20337
20338         [BZ #12685]
20339         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20340         mode string.
20341         Patch by Eric Blake <eblake@redhat.com>.
20342
20343 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20344
20345         * sunrpc/Makefile (need-export-routines): Add svc_run.
20346         (routines): Remove svc_run.
20347         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20348         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20349         * sunrpc/svc_run.c (svc_run): Likewise.
20350         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20351
20352 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20353
20354         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20355         problem in reallocation in last patch.
20356
20357 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20358
20359         * sunrpc/Makefile: Move inclusion of Rules.
20360
20361 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20362
20363         * nss/nss_files/files-initgroups.c: New file.
20364         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20365         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20366         _nss_files_initgroups_dyn.
20367
20368 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20369
20370         * elf/elf.h (R_ARM_IRELATIVE): Define.
20371
20372 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20373
20374         * po/ru.po: Update from translation team.
20375
20376 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20377
20378         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20379         dependencies.
20380
20381 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20382
20383         [BZ #12653]
20384         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20385         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20386         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20387         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20388         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20389
20390 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20391
20392         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20393         differing bytes.
20394         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20395         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20396         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20397
20398 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20399
20400         [BZ #12420]
20401         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20402         storing it.
20403         * stdlib/bug-getcontext.c: New file.
20404         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20405
20406 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20407
20408         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20409         instructions into .machine "z9-109".
20410         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20411         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20412
20413 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20414
20415         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20416         between environment variables and auxiliary vector.
20417
20418 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20419
20420         * Makefile: Add rules to build linkobj/libc.so.
20421         * include/libc-symbols.h: Define libc_hidden_nolink.
20422         * include/rpc/auth.h: Mark functions which are to be hidden.
20423         * include/rpc/auth_des.h: Likewise.
20424         * include/rpc/auth_unix.h: Likewise.
20425         * include/rpc/clnt.h: Likewise.
20426         * include/rpc/des_crypt.h: Likewise.
20427         * include/rpc/key_prot.h: Likewise.
20428         * include/rpc/pmap_clnt.h: Likewise.
20429         * include/rpc/pmap_prot.h: Likewise.
20430         * include/rpc/pmap_rmt.h: Likewise.
20431         * include/rpc/rpc_msg.h: Likewise.
20432         * include/rpc/svc.h: Likewise.
20433         * include/rpc/svc_auth.h: Likewise.
20434         * include/rpc/xdr.h: Likewise.
20435         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20436         * nss/Makefile: Likewise.
20437         * sunrpc/Makefile: Don't install headers.  Build library with normal
20438         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20439         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20440         for the compat linking library.  Remove use of INTDEF/INTUSE.
20441         * sunrpc/auth_none.c: Likewise.
20442         * sunrpc/auth_unix.c: Likewise.
20443         * sunrpc/authdes_prot.c: Likewise.
20444         * sunrpc/authuxprot.c: Likewise.
20445         * sunrpc/clnt_gen.c: Likewise.
20446         * sunrpc/clnt_perr.c: Likewise.
20447         * sunrpc/clnt_raw.c: Likewise.
20448         * sunrpc/clnt_simp.c: Likewise.
20449         * sunrpc/clnt_tcp.c: Likewise.
20450         * sunrpc/clnt_udp.c: Likewise.
20451         * sunrpc/clnt_unix.c: Likewise.
20452         * sunrpc/des_crypt.c: Likewise.
20453         * sunrpc/des_soft.c: Likewise.
20454         * sunrpc/get_myaddr.c: Likewise.
20455         * sunrpc/key_call.c: Likewise.
20456         * sunrpc/key_prot.c: Likewise.
20457         * sunrpc/netname.c: Likewise.
20458         * sunrpc/pm_getmaps.c: Likewise.
20459         * sunrpc/pm_getport.c: Likewise.
20460         * sunrpc/pmap_clnt.c: Likewise.
20461         * sunrpc/pmap_prot.c: Likewise.
20462         * sunrpc/pmap_prot2.c: Likewise.
20463         * sunrpc/pmap_rmt.c: Likewise.
20464         * sunrpc/publickey.c: Likewise.
20465         * sunrpc/rpc_cmsg.c: Likewise.
20466         * sunrpc/rpc_common.c: Likewise.
20467         * sunrpc/rpc_dtable.c: Likewise.
20468         * sunrpc/rpc_prot.c: Likewise.
20469         * sunrpc/rpc_thread.c: Likewise.
20470         * sunrpc/rtime.c: Likewise.
20471         * sunrpc/svc.c: Likewise.
20472         * sunrpc/svc_auth.c: Likewise.
20473         * sunrpc/svc_authux.c: Likewise.
20474         * sunrpc/svc_raw.c: Likewise.
20475         * sunrpc/svc_run.c: Likewise.
20476         * sunrpc/svc_simple.c: Likewise.
20477         * sunrpc/svc_tcp.c: Likewise.
20478         * sunrpc/svc_udp.c: Likewise.
20479         * sunrpc/svc_unix.c: Likewise.
20480         * sunrpc/svcauth_des.c: Likewise.
20481         * sunrpc/xcrypt.c: Likewise.
20482         * sunrpc/xdr.c: Likewise.
20483         * sunrpc/xdr_array.c: Likewise.
20484         * sunrpc/xdr_float.c: Likewise.
20485         * sunrpc/xdr_intXX_t.c: Likewise.
20486         * sunrpc/xdr_mem.c: Likewise.
20487         * sunrpc/xdr_rec.c: Likewise.
20488         * sunrpc/xdr_ref.c: Likewise.
20489         * sunrpc/xdr_sizeof.c: Likewise.
20490         * sunrpc/xdr_stdio.c: Likewise.
20491
20492 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20493
20494         [BZ #12650]
20495         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20496         * sysdeps/ia64/dl-tls.h: Likewise.
20497         * sysdeps/powerpc/dl-tls.h: Likewise.
20498         * sysdeps/s390/dl-tls.h: Likewise.
20499         * sysdeps/sh/dl-tls.h: Likewise.
20500         * sysdeps/sparc/dl-tls.h: Likewise.
20501         * sysdeps/x86_64/dl-tls.h: Likewise.
20502         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20503
20504 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20505
20506         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20507         rpath element also skip the following colon.
20508         (expand_dynamic_string_token): Add is_path parameter and pass
20509         down to DL_DST_REQUIRED and _dl_dst_substitute.
20510         (decompose_rpath): Call expand_dynamic_string_token with
20511         non-zero is_path.  Ignore empty rpaths.
20512         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20513         with zero is_path.
20514
20515 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20516
20517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20518         Make cancelable.
20519
20520 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20521
20522         [BZ #12655]
20523         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20524         Patch by Filipe David Manana <fdmanana@apache.org>.
20525
20526 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20527
20528         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20529         Maintain aligned stack.
20530         (CHECK_RSP): Remove unused macro.
20531
20532 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20533
20534         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20535         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20536
20537 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20538
20539         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20540
20541         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20542
20543 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20544
20545         [BZ #12518]
20546         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20547         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20548         * sysdeps/x86_64/memmove.c: New file.
20549         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20550         (memcpy): Renamed to ...
20551         (__new_memcpy): This.
20552         (memcpy): Provide GLIBC_2_14 memcpy.
20553         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20554         (memcpy): Provide GLIBC_2_2_5 memcpy.
20555
20556 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20557
20558         [BZ #12631]
20559         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20560
20561 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20562
20563         * misc/syncfs.c: New file.
20564         * misc/Makefile (routines): Add syncfs.
20565         * posix/unistd.h: Declare syncfs.
20566         * sysdeps/unix/syscalls.list: Add syncfs.
20567
20568 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20569
20570         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20571         open_by_handle_at.
20572         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20573         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20574         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20575         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20576         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20577         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20578         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20579
20580 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20581
20582         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20583         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20584         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20585         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20586         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20587         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20588         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20589
20590         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20591         sync_file_range.c with -fexceptions.
20592         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20593         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20594         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20595         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20596         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20597         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20598         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20599         sync_file_range as cancellation point
20600         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20601         now a wrapper around __call_sync_file_range with cancellation handling.
20602         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20603         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20604         function name to __call_sync_file_range.
20605         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20606         Add call_sync_file_range.
20607
20608 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20609
20610         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20611         bits/timex.h.
20612
20613 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20614
20615         * iconv/iconv.h: Fix typo in comment.
20616         * io/fcntl.h: Likewise.
20617         * libio/stdio.h: Likewise.
20618         * posix/spawn.h: Likewise.
20619         * posix/unistd.h: Likewise.
20620         * stdlib/stdlib.h: Likewise.
20621         * time/time.h: Likewise.
20622         * wcsmbs/wchar.h: Likewise.
20623
20624         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20625         open_by_handle): Add.
20626         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20627         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20628         Augment a few comments.
20629         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20630         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20631         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20632         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20633         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20634         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20635         open_by_handle.
20636
20637         * io/fcntl.h (AT_EMPTY_PATH): Define.
20638
20639 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20640
20641         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20642         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20643         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20644         to...
20645         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20646         * Versions.def: Add GLIBC_2.14.
20647         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20648         Export.
20649
20650 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20651
20652         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20653         round counter.
20654         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20655
20656 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20657
20658         [BZ #12597]
20659         * string/test-strncmp.c (do_page_test): New function.
20660         (check2): Likewise.
20661         (test_main): Call check2.
20662         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20663
20664 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20665
20666         [BZ #12587]
20667         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20668         Handle cache information in CPU leaf 4.
20669         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20670
20671 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20672
20673         [BZ #12583]
20674         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20675         character representation.
20676         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20677
20678 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20679
20680         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20681         END(__isnan) to END(__isnanf) to match function entry point/label
20682         EALIGN(__isnanf,...).
20683
20684 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20685
20686         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20687
20688 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20689
20690         [BZ #12510]
20691         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20692         copy from the symbol referenced in the relocation to initialize the
20693         used variable.
20694         Patch by Piotr Bury <pbury@goahead.com>.
20695         * elf/Makefile: Add rules to build and tst-unique3.
20696         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20697         * elf/tst-unique3.cc: New file.
20698         * elf/tst-unique3.h: New file.
20699         * elf/tst-unique3lib.cc: New file.
20700         * elf/tst-unique3lib2.cc: New file.
20701
20702         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20703
20704 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20705
20706         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20707         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20708         to _start.
20709
20710 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20711
20712         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20713         to-be-loaded object along a path to loader is ld.so.
20714
20715 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20716             Ulrich Drepper  <drepper@gmail.com>
20717
20718         * sysdeps/x86_64/memset.S: After aligning destination, code
20719         branches to different locations depending on the value of
20720         misalignment, when multiarch is enabled. Fix this.
20721
20722 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20723
20724         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20725         Set _x86_64_preferred_memory_instruction for AMD processsors.
20726         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20727         Set bit_Prefer_SSE_for_memop for AMD processors.
20728
20729 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20730
20731         * libio/fmemopen.c (fmemopen): Optimize a bit.
20732
20733 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20734
20735         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20736
20737 2011-03-03  Roland McGrath  <roland@redhat.com>
20738
20739         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20740
20741 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20742
20743         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20744         __bzero_ultra1 instead of __memset_ultra1.
20745
20746 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20747             Ulrich Drepper  <drepper@gmail.com>
20748
20749         [BZ #12509]
20750         * include/link.h (struct link_map): Add l_orig_initfini.
20751         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20752         returning unsuccessfully.
20753         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20754         close of a file loaded at startup, restore the original l_initfini
20755         list.
20756         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20757         list, store the pointer.
20758         * elf/Makefile ($(objpfx)noload-mem): New rule.
20759         (noload-ENV): Define.
20760         (tests): Add $(objpfx)noload-mem.
20761         * elf/noload.c: Include <memcheck.h>.
20762         (main): Call mtrace.  Close all opened handles.
20763
20764 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20765
20766         [BZ #12454]
20767         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20768         dependencies are missing.
20769
20770 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20771
20772         Fix __if_freereq crash: Unlike the generic version which uses free,
20773         Hurd needs munmap.
20774         * sysdeps/mach/hurd/ifreq.h: New file.
20775
20776 2011-01-27  Petr Baudis  <pasky@suse.cz>
20777             Ulrich Drepper  <drepper@gmail.com>
20778
20779         [BZ 12445]#
20780         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20781         to extend_alloca().
20782         * stdio-common/bug23.c: New file.
20783         * stdio-common/Makefile (tests): Add bug23.
20784
20785 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20786             Ulrich Drepper  <drepper@gmail.com>
20787
20788         [BZ #12489]
20789         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20790         before performing relro protection.  At old place add assertion
20791         to make sure nothing changed.
20792
20793 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20794             Glauber de Oliveira Costa  <glommer@gmail.com>
20795
20796         * elf/elf.h: Add new ARM TLS relocs.
20797
20798 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20799
20800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20801         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20802         cast from r3.
20803         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20804         'tests' variable.
20805         * sysdeps/wordsize-64/tst-writev.c: New file.
20806
20807 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20808
20809         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20810         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20811         insns in _dl_start to prevent a TOC reference before relocs are
20812         resolved.
20813
20814 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20815
20816         [BZ #12469]
20817         * Makeconfig: Remove RANLIB definition.
20818         * Makerules: Don't use RANLIB.
20819         * aclocal.m4: Remove ranlib test.
20820         * configure.in: No need to check for ranlib.
20821         * elf/rtld-Rules: Don't use RANLIB.
20822
20823 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20824
20825         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20826         protection macro.
20827         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20828         inclusion protection macro.
20829
20830         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20831         SIGRTMIN and SIGRTMAX and print information in that case only when
20832         SIGRTMIN is defined.
20833
20834 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20835
20836         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20837         arginfo fn returning -1.
20838
20839         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20840         and thousands string is zero terminated.
20841
20842 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20843
20844         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20845         sysdeps/unix/sysv/linux/bits/socket.h.
20846
20847 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20848
20849         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20850         (__CPU_COUNT): Remove old macros.
20851         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20852         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20853         (__CPU_ALLOC, __CPU_FREE): Add macros.
20854         (__sched_cpualloc, __sched_cpufree): Add declarations.
20855
20856 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20857
20858         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20859         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20860         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20861         (readdhstai): Return value of addhstaiX call.
20862         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20863         (addgrbyX): Return value returned by cache_addgr.
20864         (readdgrbyname): Return value returned by addgrbyX.
20865         (readdgrbygid): Likewise.
20866         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20867         (addpwbyX): Return value returned by cache_addpw.
20868         (readdpwbyname): Return value returned by addhstbyX.
20869         (readdpwbyuid): Likewise.
20870         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20871         (addservbyX): Return value returned by cache_addserv.
20872         (readdservbyname): Return value returned by addservbyX:
20873         (readdservbyport): Likewise.
20874         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20875         (addhstbyX): Return value returned by cache_addhst.
20876         (readdhstbyname): Return value returned by addhstbyX.
20877         (readdhstbyaddr): Likewise.
20878         (readdhstbynamev6): Likewise.
20879         (readdhstbyaddrv6): Likewise.
20880         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20881         (readdinitgroups): Return value returned by addinitgroupsX.
20882         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20883         (prune_cache): Keep track of timeout value of re-added entries.
20884         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20885         * nscd/nscd.h: Adjust prototypes of readd* functions.
20886
20887 2011-02-04  Roland McGrath  <roland@redhat.com>
20888
20889         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20890         (nis_stats): Likewise.
20891         * nis/nis_modify.c (nis_modify): Likewise.
20892         * nis/nis_remove.c (nis_remove): Likewise.
20893         * nis/nis_add.c (nis_add): Likewise.
20894
20895         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20896
20897         * posix/fnmatch_loop.c: Add some consts.
20898
20899         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20900
20901 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20902
20903         [BZ #12460]
20904         * config.make.in (config-cflags-novzeroupper): Define.
20905         * configure.in: Substitute libc_cv_cc_novzeroupper.
20906         * elf/Makefile (AVX-CFLAGS): Define.
20907         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20908         (CFLAGS-tst-auditmod4a.c): Likewise.
20909         (CFLAGS-tst-auditmod4b.c): Likewise.
20910         (CFLAGS-tst-auditmod6b.c): Likewise.
20911         (CFLAGS-tst-auditmod6c.c): Likewise.
20912         (CFLAGS-tst-auditmod7b.c): Likewise.
20913         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20914
20915 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20916
20917         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20918         function to the callback.
20919         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20920
20921 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20922
20923         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20924         of errno.
20925
20926 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20927
20928         [BZ #11724]
20929         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20930         of constructors.
20931         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20932         of destructors.
20933         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20934
20935         [BZ #11724]
20936         * elf/Makefile: Add rules to build and run new test.
20937         * elf/tst-initorder.c: New file.
20938         * elf/tst-initorder.exp: New file.
20939         * elf/tst-initordera1.c: New file.
20940         * elf/tst-initordera2.c: New file.
20941         * elf/tst-initordera3.c: New file.
20942         * elf/tst-initordera4.c: New file.
20943         * elf/tst-initorderb1.c: New file.
20944         * elf/tst-initorderb2.c: New file.
20945         * elf/tst-order-a1.c: New file.
20946         * elf/tst-order-a2.c: New file.
20947         * elf/tst-order-a3.c: New file.
20948         * elf/tst-order-a4.c: New file.
20949         * elf/tst-order-b1.c: New file.
20950         * elf/tst-order-b2.c: New file.
20951         * elf/tst-order-main.c: New file.
20952         New test case by George Gensure <werkt0@gmail.com>.
20953
20954 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20955
20956         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20957         decoding ACE if AI_CANONIDN.
20958
20959 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20960
20961         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20962
20963 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20964
20965         * version.h (RELEASE): Bump for 2.13 release.
20966         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20967
20968         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20969
20970         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20971         MADV_NOHUGEPAGE.
20972         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20973         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20974         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20975         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20976         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20977         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20978
20979         * posix/getconf.c: Update copyright year.
20980         * catgets/gencat.c: Likewise.
20981         * csu/version.c: Likewise.
20982         * debug/catchsegv.sh: Likewise.
20983         * debug/xtrace.sh: Likewise.
20984         * elf/ldconfig.c: Likewise.
20985         * elf/ldd.bash.in: Likewise.
20986         * elf/sprof.c (print_version): Likewise.
20987         * iconv/iconv_prog.c: Likewise.
20988         * iconv/iconvconfig.c: Likewise.
20989         * locale/programs/locale.c: Likewise.
20990         * locale/programs/localedef.c: Likewise.
20991         * malloc/memusage.sh: Likewise.
20992         * malloc/mtrace.pl: Likewise.
20993         * nscd/nscd.c (print_version): Likewise.
20994         * nss/getent.c: Likewise.
20995
20996         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20997         PF_CAIF, and PF_ALG.
20998         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20999
21000 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
21001
21002         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
21003         (modules-names): Use them.
21004         (ifunc-test-modules, ifunc-pie-tests): Define.
21005         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
21006         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
21007         (test-extras): Likewise.
21008         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
21009         $(compile-command.c).
21010         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
21011         (all-built-dso): Define.
21012         (check-textrel.out, check-execstack.out): Depend on it.
21013
21014         * configure.in: Don't override --enable-multi-arch.
21015
21016 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
21017
21018         [BZ #6812]
21019         * nscd/hstcache.c (tryagain): Define.
21020         (cache_addhst): Return tryagain not notfound for temporary errors.
21021         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
21022         failed.
21023
21024 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
21025
21026         [BZ #10563]
21027         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
21028         to make the syscall.
21029         * sysdeps/unix/sysv/linux/setgroups.c: New file.
21030
21031         [BZ #12378]
21032         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
21033         and fall back to matching as normal character if the string ends before
21034         the matching ']' is found.  This is what POSIX requires.
21035         * posix/testfnm.c: Adjust test result.
21036         * posix/globtest.sh: Adjust test result.  Add new test.
21037         * posix/tst-fnmatch.input: Likewise.
21038         * posix/tst-fnmatch2.c: Add new test.
21039
21040 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
21041
21042         * elf/Makefile (check-execstack): Revert last change.  Depend on
21043         check-execstack.h.
21044         (check-execstack.h): New target.
21045         (generated): Add check-execstack.h.
21046         * elf/check-execstack.c: Include "check-execstack.h".
21047         (main): Revert last change.
21048         (handle_file): Return zero if GNU_STACK is absent and
21049         DEFAULT_STACK_PERMS doesn't include PF_X.
21050
21051 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
21052
21053         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
21054         in child fails because the descriptor is already closed.
21055         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
21056         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
21057         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
21058
21059         [BZ #12397]
21060         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
21061         syscall.
21062
21063         [BZ #10484]
21064         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
21065         temporary buffer used to handle multi lookups locally.
21066         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
21067
21068 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21069
21070         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
21071         loader is ld.so.
21072
21073 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
21074
21075         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
21076         alignment for SSE2.
21077
21078 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21079
21080         [BZ #12394]
21081         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
21082         characters.  When rounding increased number of integer digits recompute
21083         number of groups.
21084         * stdio-common/tst-grouping.c: New file.
21085         * stdio-common/Makefile: Add rules to build and run tst-grouping.
21086
21087 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
21088
21089         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
21090         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
21091
21092         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
21093         void.
21094         * bits/select.h: Likewise.
21095
21096 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
21097
21098         * po/ja.po: Update from translation team.
21099
21100 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
21101
21102         [BZ #11155]
21103         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21104         implementation just like for lxstat, fxstatat, et al.
21105
21106 2010-12-27  Jim Meyering  <meyering@redhat.com>
21107
21108         [BZ #12348]
21109         * posix/regexec.c (build_trtable): Return failure indication upon
21110         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21111
21112 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21113
21114         [BZ #12201]
21115         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21116         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21117         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21118         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21119
21120         [BZ #12207]
21121         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21122
21123         [BZ #12204]
21124         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21125         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21126
21127 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21128
21129         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21130         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21131         script has SORT_BY_INIT_PRIORITY.
21132         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21133         NO_CTORS_DTORS_SECTIONS is defined.
21134         * elf/soinit.c: Likewise.
21135         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21136         NO_CTORS_DTORS_SECTIONS is defined.
21137         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21138         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21139         * sysdeps/sh/init-first.c: Likewise.
21140         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21141
21142 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21143
21144         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21145         always use the slow path.
21146
21147 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21148
21149         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21150         similar rule which adds the sysdep directories to the header search in
21151         order to pick up the correct platform stackinfo.h.
21152         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21153         perform test if it is, otherwise return successfully without testing.
21154         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21155         DEFAULT_STACK_PERMS define in stackinfo.h.
21156         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21157         defined in stackinfo.h.
21158         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21159         DEFAULT_STACK_PERMS defined in stackinfo.h.
21160         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21161         * sysdeps/ia64/stackinfo.h: Likewise.
21162         * sysdeps/s390/stackinfo.h: Likewise.
21163         * sysdeps/sh/stackinfo.h: Likewise.
21164         * sysdeps/sparc/stackinfo.h: Likewise.
21165         * sysdeps/x86_64/stackinfo.h: Likewise.
21166         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21167         PF_X for powerpc64.  Retain PF_X for powerpc32.
21168
21169 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21170
21171         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21172         accurately.
21173         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21174         GETDENTS_64BIT_ALIGNED.
21175
21176 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21177
21178         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21179
21180 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21181
21182         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21183         _GNU_SOURCE.
21184
21185         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21186         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21187         Remove __restrict.
21188         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21189         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21190
21191 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21192
21193         [BZ #11655]
21194         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21195         are initialized.
21196
21197 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21198
21199         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21200
21201 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21202
21203         * po/it.po: Update from translation team.
21204
21205 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21206
21207         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21208         unused codes.
21209
21210 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21211
21212         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21213
21214 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21215
21216         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21217         specially.
21218         (gaih_getanswer_slice): Likewise.
21219
21220 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21221
21222         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21223
21224 2010-05-31  Petr Baudis  <pasky@suse.cz>
21225
21226         [BZ #11149]
21227         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21228         silently even in the chroot mode.
21229
21230 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21231
21232         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21233         last patch a bit.  Pretty printing
21234
21235 2010-05-31  Petr Baudis <pasky@suse.cz>
21236
21237         [BZ #10085]
21238         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21239         initialization of skip_initgroups_dyn.
21240
21241 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21242
21243         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21244         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21245
21246 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21247
21248         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21249
21250 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21251
21252         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21253         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21254         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21255         ($(objpfx)tst-fnmatch-mem): New rule.
21256         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21257         * posix/tst-fnmatch.c (main): Call mtrace.
21258
21259 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21260
21261         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21262         Support Intel processor model 6 and model 0x2c.
21263
21264 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21265
21266         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21267           signed comparison.
21268
21269 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21270
21271         [BZ #12205]
21272         * string/test-strncasecmp.c (check_result): New function.
21273         (do_one_test): Use it.
21274         (check1): New function.
21275         (test_main): Use it.
21276         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21277         Support strcasecmp and strncasecmp.
21278
21279 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21280
21281         [BZ #12194]
21282         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21283         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21284
21285 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21286
21287         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21288         IFUNC support.
21289         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21290         memset-x86-64.
21291         * sysdeps/x86_64/multiarch/bzero.S: New file.
21292         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21293         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21294         * sysdeps/x86_64/multiarch/memset.S: New file.
21295         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21296         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21297         Set bit_Prefer_SSE_for_memop for Intel processors.
21298         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21299         Define.
21300         (index_Prefer_SSE_for_memop): Define.
21301         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21302
21303 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21304
21305         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21306         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21307
21308 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21309
21310         [BZ #12191]
21311         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21312         (__x86_64_raw_data_cache_size_half): Likewise.
21313         (__x86_64_raw_shared_cache_size): Likewise.
21314         (__x86_64_raw_shared_cache_size_half): Likewise.
21315
21316         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21317         (__x86_64_raw_data_cache_size_half): Likewise.
21318         (__x86_64_raw_shared_cache_size): Likewise.
21319         (__x86_64_raw_shared_cache_size_half): Likewise.
21320         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21321         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21322         and __x86_64_raw_shared_cache_size_half.  Round
21323         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21324         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21325         to multiple of 256 bytes.
21326
21327 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21328
21329         [BZ #12167]
21330         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21331         of inacessible symlinks.  Verify result of symlink before returning it.
21332         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21333         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21334
21335 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21336
21337         * math/math.h (isinf): Fix typo in comment.
21338
21339 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21340
21341         * po/da.po: Update from translation team.
21342
21343 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21344
21345         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21346         is added to the list.
21347
21348 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21349             Ulrich Drepper  <drepper@gmail.com>
21350
21351         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21352         the global list here.  Move code to...
21353         (_dl_add_to_namespace_list): ...here.  New function.
21354         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21355         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21356         * elf/dl-load.c (lose): Don't remove the element from the list.
21357         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21358         (_dl_map_object): Likewise.
21359
21360 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21361
21362         [BZ #12159]
21363         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21364         into all bytes of SSE register.
21365         Patch by Richard Li <richardpku@gmail.com>.
21366
21367 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21368
21369         [BZ #12140]
21370         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21371         perturbing.
21372
21373 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21374
21375         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21376         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21377         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21378         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21380         submachine.
21381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21382
21383 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21384
21385         * include/dlfcn.h (__RTLD_SECURE): Define.
21386         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21387         mode & __RTLD_SECURE instead.
21388         (open_path): Rename preloaded parameter to secure.
21389         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21390         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21391         * elf/dl-deps.c (openaux): Likewise.
21392         * elf/rtld.c (struct map_args): Remove is_preloaded.
21393         (map_doit): Don't use it.
21394         (dl_main): Likewise.
21395         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21396         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21397
21398 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21399
21400         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21401         (sysd-rules-targets): Remove duplicates.
21402         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21403         rtld-%.$o dependency.
21404
21405 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21406
21407         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21408         _dl_map_object do it.
21409
21410 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21411
21412         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21413         fast fma builtins, define the macros in the C99 standard.
21414         (FP_FAST_FMAF): Likewise.
21415         (FP_FAST_FMAL): Likewise.
21416         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21417
21418         * bits/mathdef.h: Update copyright year.
21419         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21420
21421 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21422
21423         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21424         builtins, define the macros in the C99 standard.
21425         (FP_FAST_FMAF): Likewise.
21426         (FP_FAST_FMAL): Likewise.
21427         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21428         multiply/add.
21429         (FP_FAST_FMAF): Likewise.
21430
21431 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21432
21433         [BZ #3268]
21434         * math/libm-test.inc (fma_test): Some new testcases.
21435         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21436         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21437         y and infinite z.  Do multiplication by C already in long double.
21438         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21439         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21440         y and infinite z.  Do bitwise or of inexact bit into u.d.
21441         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21442         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21443         * sysdeps/i386/fpu/s_fma.S: Removed.
21444         * sysdeps/i386/fpu/s_fmal.S: Removed.
21445
21446 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21447
21448         [BZ #3268]
21449         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21450         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21451         computation is not scheduled after fetestexcept.  Fix value
21452         of minimum denormal long double.
21453
21454 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21455
21456         [BZ #3268]
21457         * math/libm-test.inc (fma_test): Add some more tests.
21458         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21459         correctly.
21460
21461 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21462
21463         * scripts/data/localplt-s390-linux-gnu.data: New file.
21464         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21465
21466 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21467
21468         [BZ #3268]
21469         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21470         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21471         instead of dbl-64.
21472         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21473         inlines.
21474         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21475         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21476         if one of x and y is very large and the other is subnormal.
21477         * sysdeps/s390/fpu/s_fmaf.c: New file.
21478         * sysdeps/s390/fpu/s_fma.c: New file.
21479         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21480         * sysdeps/powerpc/fpu/s_fma.S: New file.
21481         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21482         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21483         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21484
21485 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21486
21487         [BZ #3268]
21488         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21489         fma tests.
21490         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21491         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21492         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21493         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21494         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21495         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21496         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21497
21498 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21499
21500         [BZ #12078]
21501         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21502         * posix/bug-regex31.input: Add test case.
21503
21504 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21505
21506         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21507         * posix/bug-regex31.input: New file.
21508
21509         [BZ #12078]
21510         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21511         (parse_sub_exp): Fix last change, use postorder.
21512
21513         * posix/bug-regex31.c: New file.
21514         * posix/Makefile: Add rules to build and run bug-regex31.
21515
21516         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21517
21518         [BZ #12078]
21519         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21520
21521         [BZ #12108]
21522         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21523         to have entries in sys_siglist.
21524
21525         [BZ #12093]
21526         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21527         be NULL.
21528
21529 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21530
21531         [BZ #3268]
21532         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21533         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21534         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21535         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21536         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21537         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21538         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21539         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21540         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21541         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21542         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21543         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21544         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21545         * math/ftestexcept.c (fetestexcept): Likewise.
21546         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21547         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21548         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21549         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21550         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21551         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21552         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21553
21554 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21555
21556         [BZ #12107]
21557         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21558         newline.
21559
21560 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21561
21562         * string/bug-strstr1.c: New file.
21563         * string/Makefile: Add rules to build and run bug-strstr1.
21564
21565 2010-10-05  Eric Blake  <eblake@redhat.com>
21566
21567         [BZ #12092]
21568         * string/str-two-way.h (two_way_long_needle): Always clear memory
21569         when skipping input due to the shift table.
21570
21571 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21572
21573         [BZ #12005]
21574         * malloc/mcheck.c: Handle large requests.
21575
21576         [BZ #12077]
21577         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21578         for strncmp and strncasecmp.
21579         * string/stratcliff.c: Add tests for strcmp and strncmp.
21580         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21581
21582 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21583
21584         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21585         __set_fpscr.
21586
21587 2010-09-30  Andreas Jaeger  <aj@suse.de>
21588
21589         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21590         (CGROUP_SUPER_MAGIC): Define.
21591         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21592         Handle btrfs and cgroup file systems.
21593         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21594         Likewise.
21595
21596 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21597
21598         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21599         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21600
21601 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21602
21603         [BZ #12067]
21604         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21605         trying to locate the ELF header.
21606
21607 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21608
21609         [BZ #11611]
21610         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21611         Mask out sign-bit copies when constructing f_fsid.
21612
21613 2010-09-24  Petr Baudis <pasky@suse.cz>
21614
21615         * debug/stack_chk_fail_local.c: Add missing licence exception.
21616         * debug/warning-nop.c: Likewise.
21617
21618 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21619
21620         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21621         implementing getdents64 using getdents syscall, set d_type if
21622         __ASSUME_GETDENTS32_D_TYPE.
21623
21624 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21625
21626         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21627         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21628
21629 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21630
21631         [BZ #12037]
21632         * posix/unistd.h: Undo change of feature selection for ftruncate from
21633         2010-01-11.
21634
21635 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21636
21637         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21638         detection.
21639
21640 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21641
21642         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21643         fanotify_mark.
21644         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21645
21646 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21647
21648         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21649         variables after CHECK_SP call.
21650         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21651
21652 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21653             Ulrich Drepper  <drepper@redhat.com>
21654
21655         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21656         re-relocationg ld.so.
21657         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21658         _dl_init_paths call.
21659         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21660         here anymore.
21661
21662 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21663
21664         * resolv/res_init.c (__res_vinit): Count the default server we added.
21665
21666 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21667             Ulrich Drepper  <drepper@redhat.com>
21668
21669         [BZ #11968]
21670         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21671         (____longjmp_chk): Use %ebx for saving value across system call.
21672         Add unwind info.
21673
21674 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21675
21676         * manual/Makefile: Don't mix pattern rules with normal rules.
21677
21678 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21679
21680         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21681         operation.
21682         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21683         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21684         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21685         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21686         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21687         Likewise.
21688
21689 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21690
21691         [BZ #11979]
21692         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21693         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21694
21695 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21696
21697         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21698         * sysdeps/x86_64/addmul_1.S: Likewise.
21699         * sysdeps/x86_64/lshift.S: Likewise.
21700         * sysdeps/x86_64/mul_1.S: Likewise.
21701         * sysdeps/x86_64/rshift.S: Likewise.
21702         * sysdeps/x86_64/sub_n.S: Likewise.
21703         * sysdeps/x86_64/submul_1.S: Likewise.
21704
21705 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21706
21707         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21708         Define __sched_param instead of SCHED_* and sched_param when
21709         <bits/sched.h> is included with __need_schedparam defined.
21710         * bits/sched.h [__need_schedparam]
21711         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21712         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21713         (__defined_schedparam): Define to 1.
21714         (__sched_param): New structure, identical to sched_param.
21715         (__need_schedparam): Undefine.
21716
21717 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21718
21719         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21720         (epoll_create1): Declare.
21721
21722         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21723
21724 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21725
21726         [BZ #7066]
21727         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21728         shifting retval into place.
21729
21730 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21731
21732         * nis/rpcsvc/nis.h: Update copyright notice.
21733         * nis/rpcsvc/nis.x: Likewise.
21734         * nis/rpcsvc/nis_callback.h: Likewise.
21735         * nis/rpcsvc/nis_callback.x: Likewise.
21736         * nis/rpcsvc/nis_object.x: Likewise.
21737         * nis/rpcsvc/nis_tags.h: Likewise.
21738         * nis/rpcsvc/yp.h: Likewise.
21739         * nis/rpcsvc/yp.x: Likewise.
21740         * nis/rpcsvc/ypupd.h: Likewise.
21741         * nis/yp_xdr.c: Likewise.
21742         * nis/ypupdate_xdr.c: Likewise.
21743
21744         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21745         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21746         (pmap_getport): Use __libc_rpc_getport.
21747         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21748         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21749         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21750
21751 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21752
21753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21754         fanotify_mark.
21755
21756 2010-08-27  Roland McGrath  <roland@redhat.com>
21757
21758         * sysdeps/i386/i686/multiarch/Makefile
21759         (CFLAGS-varshift.c): New variable.
21760
21761 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21762
21763         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21764         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21765
21766         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21767
21768         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21769
21770 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21771
21772         * sysdeps/x86_64/strlen.S: Unroll the loop.
21773         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21774         strlen-sse2 strlen-sse2-bsf.
21775         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21776         __strlen_no_bsf if bit_Slow_BSF is set.
21777         (__strlen_sse42): Removed.
21778         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21779         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21780
21781 2010-08-25  Roland McGrath  <roland@redhat.com>
21782
21783         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21784         * sysdeps/x86_64/multiarch/varshift.c: New file.
21785         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21786         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21787         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21788         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21789
21790 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21791
21792         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21793         strlen-sse2 strlen-sse2-bsf.
21794         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21795         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21796         (__strlen_sse2): Removed.
21797         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21798         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21800         bit_Slow_BSF for Atom.
21801         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21802         (index_Slow_BSF): Define.
21803         (HAS_SLOW_BSF): Define.
21804
21805 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21806
21807         [BZ #10851]
21808         * resolv/res_init.c (__res_vinit): When no server address at all
21809         is given default to loopback.
21810
21811 2010-08-24  Roland McGrath  <roland@redhat.com>
21812
21813         * configure.in: Remove config-name.h generation.
21814         * configure: Regenerated.
21815         * config-name.in: File removed.
21816         * scripts/config-uname.sh: New file.
21817         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21818         ($(objdir)config-name.h): New target.
21819
21820         * sunrpc/rpc_parse.h: Avoid nested comment.
21821
21822 2010-08-24  Richard Henderson  <rth@redhat.com>
21823             Ulrich Drepper  <drepper@redhat.com>
21824             H.J. Lu  <hongjiu.lu@intel.com>
21825
21826         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21827         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21828         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21829         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21830         _mm_alignr_epi8 with _mm_loadu_si128.
21831         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21832         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21833         (__m128i_shift_right): Removed.
21834         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21835         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21836         * sysdeps/x86_64/multiarch/varshift.h: New file.
21837         * sysdeps/x86_64/multiarch/varshift.S: New file.
21838
21839 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21840
21841         * configure.in: Move assembler checks to before sysdep dir checking.
21842
21843 2010-08-20  Petr Baudis  <pasky@suse.cz>
21844
21845         * LICENSES: Sync the sunrpc license.
21846
21847 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21848
21849         * sunrpc/auth_des.c: Update copyright notice once again.
21850         * sunrpc/auth_none.c: Likewise.
21851         * sunrpc/auth_unix.c: Likewise.
21852         * sunrpc/authdes_prot.c: Likewise.
21853         * sunrpc/authuxprot.c: Likewise.
21854         * sunrpc/bindrsvprt.c: Likewise.
21855         * sunrpc/clnt_gen.c: Likewise.
21856         * sunrpc/clnt_perr.c: Likewise.
21857         * sunrpc/clnt_raw.c: Likewise.
21858         * sunrpc/clnt_simp.c: Likewise.
21859         * sunrpc/clnt_tcp.c: Likewise.
21860         * sunrpc/clnt_udp.c: Likewise.
21861         * sunrpc/clnt_unix.c: Likewise.
21862         * sunrpc/des_crypt.c: Likewise.
21863         * sunrpc/des_soft.c: Likewise.
21864         * sunrpc/get_myaddr.c: Likewise.
21865         * sunrpc/getrpcport.c: Likewise.
21866         * sunrpc/key_call.c: Likewise.
21867         * sunrpc/key_prot.c: Likewise.
21868         * sunrpc/openchild.c: Likewise.
21869         * sunrpc/pm_getmaps.c: Likewise.
21870         * sunrpc/pm_getport.c: Likewise.
21871         * sunrpc/pmap_clnt.c: Likewise.
21872         * sunrpc/pmap_prot.c: Likewise.
21873         * sunrpc/pmap_prot2.c: Likewise.
21874         * sunrpc/pmap_rmt.c: Likewise.
21875         * sunrpc/rpc/auth.h: Likewise.
21876         * sunrpc/rpc/auth_unix.h: Likewise.
21877         * sunrpc/rpc/clnt.h: Likewise.
21878         * sunrpc/rpc/des_crypt.h: Likewise.
21879         * sunrpc/rpc/key_prot.h: Likewise.
21880         * sunrpc/rpc/netdb.h: Likewise.
21881         * sunrpc/rpc/pmap_clnt.h: Likewise.
21882         * sunrpc/rpc/pmap_prot.h: Likewise.
21883         * sunrpc/rpc/pmap_rmt.h: Likewise.
21884         * sunrpc/rpc/rpc.h: Likewise.
21885         * sunrpc/rpc/rpc_des.h: Likewise.
21886         * sunrpc/rpc/rpc_msg.h: Likewise.
21887         * sunrpc/rpc/svc.h: Likewise.
21888         * sunrpc/rpc/svc_auth.h: Likewise.
21889         * sunrpc/rpc/types.h: Likewise.
21890         * sunrpc/rpc/xdr.h: Likewise.
21891         * sunrpc/rpc_clntout.c: Likewise.
21892         * sunrpc/rpc_cmsg.c: Likewise.
21893         * sunrpc/rpc_common.c: Likewise.
21894         * sunrpc/rpc_cout.c: Likewise.
21895         * sunrpc/rpc_dtable.c: Likewise.
21896         * sunrpc/rpc_hout.c: Likewise.
21897         * sunrpc/rpc_main.c: Likewise.
21898         * sunrpc/rpc_parse.c: Likewise.
21899         * sunrpc/rpc_parse.h: Likewise.
21900         * sunrpc/rpc_prot.c: Likewise.
21901         * sunrpc/rpc_sample.c: Likewise.
21902         * sunrpc/rpc_scan.c: Likewise.
21903         * sunrpc/rpc_scan.h: Likewise.
21904         * sunrpc/rpc_svcout.c: Likewise.
21905         * sunrpc/rpc_tblout.c: Likewise.
21906         * sunrpc/rpc_util.c: Likewise.
21907         * sunrpc/rpc_util.h: Likewise.
21908         * sunrpc/rpcinfo.c: Likewise.
21909         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21910         * sunrpc/rpcsvc/key_prot.x: Likewise.
21911         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21912         * sunrpc/rpcsvc/mount.x: Likewise.
21913         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21914         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21915         * sunrpc/rpcsvc/rex.x: Likewise.
21916         * sunrpc/rpcsvc/rstat.x: Likewise.
21917         * sunrpc/rpcsvc/rusers.x: Likewise.
21918         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21919         * sunrpc/rpcsvc/spray.x: Likewise.
21920         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21921         * sunrpc/rtime.c: Likewise.
21922         * sunrpc/svc.c: Likewise.
21923         * sunrpc/svc_auth.c: Likewise.
21924         * sunrpc/svc_authux.c: Likewise.
21925         * sunrpc/svc_raw.c: Likewise.
21926         * sunrpc/svc_run.c: Likewise.
21927         * sunrpc/svc_simple.c: Likewise.
21928         * sunrpc/svc_tcp.c: Likewise.
21929         * sunrpc/svc_udp.c: Likewise.
21930         * sunrpc/svc_unix.c: Likewise.
21931         * sunrpc/svcauth_des.c: Likewise.
21932         * sunrpc/xcrypt.c: Likewise.
21933         * sunrpc/xdr.c: Likewise.
21934         * sunrpc/xdr_array.c: Likewise.
21935         * sunrpc/xdr_float.c: Likewise.
21936         * sunrpc/xdr_mem.c: Likewise.
21937         * sunrpc/xdr_rec.c: Likewise.
21938         * sunrpc/xdr_ref.c: Likewise.
21939         * sunrpc/xdr_sizeof.c: Likewise.
21940         * sunrpc/xdr_stdio.c: Likewise.
21941
21942         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21943         handling.
21944
21945 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21946
21947         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21948
21949 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21950
21951         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21952         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21953         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21954         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21955         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21956         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21957         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21958         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21959         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21960         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21961         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21962         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21963         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21964         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21965
21966 2010-07-26  Anton Blanchard  <anton@samba.org>
21967
21968         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21969         * malloc/arena.c (heap_trim): Likewise.
21970
21971 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21972
21973         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21974         here.  Not...
21975         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21976         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21977
21978 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21979
21980         * sysdeps/i386/elf/Makefile: New file.
21981
21982 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21983
21984         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21985         from fanotify_init.
21986         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21987         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21988
21989 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21990
21991         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21992         of strncasecmp_l.
21993         * sysdeps/multiarch/strcmp.S: Likewise.
21994
21995 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21996
21997         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21998         strncase_l-nonascii.
21999         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22000         Add strncase_l-ssse3.
22001         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
22002         * sysdeps/x86_64/strcmp.S: Likewise.
22003         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
22004         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
22005         * sysdeps/x86_64/strncase.S: New file.
22006         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
22007         * sysdeps/x86_64/strncase_l.S: New file.
22008         * string/Makefile (strop-tests): Add strncasecmp.
22009         * string/test-strncasecmp.c: New file.
22010
22011         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
22012         warning.
22013
22014         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
22015         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
22016
22017 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
22018
22019         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
22020
22021 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
22022
22023         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
22024         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
22025         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
22026
22027 2010-05-01  Alan Modra  <amodra@gmail.com>
22028
22029         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
22030         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
22031         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
22032         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
22033         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
22034         tidying.  Don't tail-call __sigjmp_save for static lib.
22035         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
22036         save location.
22037         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
22038         (CALL_MCOUNT): Add eh info, and nop after bl.
22039         (TAIL_CALL_SYSCALL_ERROR): New macro.
22040         (PSEUDO_RET): Use it.
22041         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
22042         Correct save location of integer regs and cr.
22043         (_dl_profile_resolve): Correct cr save location.  Delete nops
22044         after bl when SHARED.  Reduce cfi size a little by better
22045         placement of cfi directives.
22046         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
22047         make a stack frame.  Instead use parm save area as a temp.
22048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
22049         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
22050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
22051         Don't make a stack frame for parent, use parm save area.
22052         Increase child stack frame to 112 bytes.  Don't save unused reg,
22053         and adjust reg usage.  Set up cfi on error recovery and
22054         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
22055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
22056         (__makecontext): Add dummy nop after jump to exit.
22057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
22058         Use correct parm save area and cr save, reduce stack frame.
22059         Correct cfi for possible PSEUDO_RET frame setup.
22060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
22061         Branch to local label emitted by PSEUDO_RET rather than
22062         __syscall_error.
22063
22064 2010-08-12  Andreas Schwab  <schwab@redhat.com>
22065
22066         [BZ #11904]
22067         * locale/programs/locale.c (print_assignment): New function.
22068         (show_locale_vars): Use it.
22069
22070 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
22071
22072         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
22073         field.
22074         (struct statfs64): Likewise.
22075         (_STATFS_F_FLAGS): Define.
22076         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
22077         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22078         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
22079         (ST_VALID): Define locally.
22080         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
22081         __statvfs_getflags, use the provided value.
22082         * sysdeps/unix/sysv/linux/kernel-features.h: Define
22083         __ASSUME_STATFS_F_FLAGS.
22084
22085         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
22086
22087         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
22088         Add sys/fanotify.h.
22089         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
22090         fanotify_mask for GLIBC_2.13.
22091         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
22092         fanotify_init and fanotify_mark.
22093         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22094         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
22095
22096         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22097         Add prlimit.
22098         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22099         prlimit64 for GLIBC_2.13.
22100         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22101         prlimit64.
22102         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22103         syscall.
22104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22105         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22106         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22107         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22108         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22109         add prlimit alias.
22110         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22111
22112         [BZ #11903]
22113         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22114         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22115
22116         * nss/Makefile: Add rules to build and run tst-nss-test1.
22117         * shlib-versions: Add entry for libnss_test1.
22118         * nss/nss_test1.c: New file.
22119         * nss/tst-nss-test1.c: New file.
22120
22121         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22122         (__nss_configure_lookup): Set appropriate entry in
22123         __nss_configure_lookup to true.
22124         * nss/nsswitch.h: Define enum with indeces of databases in
22125         databases and __nss_database_custom arrays.  Declare
22126         __nss_database_custom.
22127         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22128         to avoid using nscd when custom rules are installed.
22129         * nss/getXXbyYY_r.c: Likewise.
22130         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22131
22132         * nss/nss_files/files-parse.c: Whitespace fixes.
22133
22134 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22135
22136         [BZ #11883]
22137         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22138         * posix/fnmatch_loop.c: Likewise.
22139
22140 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22141
22142         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22143         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22144         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22145         * Versions.def [GLIBC_2.13]: Add.
22146
22147 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22148
22149         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22150         Also fail if tpwd after pwuid call is NULL.
22151
22152 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22153
22154         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22155         when converting to ms.
22156
22157 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22158
22159         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22160         EOPNOTSUPP errors with ENOTTY.
22161         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22162         EOPNOTSUPP errors with ENOTTY.
22163
22164 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22165
22166         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22167         Add strcasecmp_l-ssse3.
22168         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22169         strcasecmp.
22170         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22171         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22172         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22173
22174 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22175
22176         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22177
22178         * string/Makefile (strop-tests): Add strcasecmp.
22179         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22180         strcasecmp_l-nonascii.
22181         (gen-as-const-headers): Add locale-defines.sym.
22182         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22183         * sysdeps/x86_64/strcasecmp.S: New file.
22184         * sysdeps/x86_64/strcasecmp_l.S: New file.
22185         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22186         * sysdeps/x86_64/locale-defines.sym: New file.
22187         * string/test-strcasecmp.c: New file.
22188
22189         * string/test-strcasestr.c: Test both ends of the range of characters.
22190         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22191
22192 2010-07-29  Roland McGrath  <roland@redhat.com>
22193
22194         [BZ #11856]
22195         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22196
22197 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22198
22199         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22200         for ld.so.
22201
22202 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22203
22204         * manual/memory.texi (Malloc Tunable Parameters): Document
22205         M_PERTURB.
22206
22207 2010-07-26  Roland McGrath  <roland@redhat.com>
22208
22209         [BZ #11840]
22210         * configure.in (-fgnu89-inline check): Set and substitute
22211         gnu89_inline, not libc_cv_gnu89_inline.
22212         * configure: Regenerated.
22213         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22214
22215 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22216
22217         * string/test-strnlen.c: New file.
22218         * string/Makefile (strop-tests): Add strnlen.
22219         * string/tester.c (test_strnlen): Add a few more test cases.
22220         * string/tst-strlen.c: Better error reporting.
22221
22222         * sysdeps/x86_64/strnlen.S: New file.
22223
22224 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22225
22226         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22227         lower-latency instructions.
22228
22229 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22230
22231         * string/test-strcasestr.c: New file.
22232         * string/test-strstr.c: New file.
22233         * string/Makefile (strop-tests): Add strstr and strcasestr.
22234         * string/str-two-way.h: Don't undefine MAX.
22235         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22236
22237 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22238
22239         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22240         strcasestr-nonascii.
22241         (CFLAGS-strcasestr-nonascii.c): Define.
22242         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22243         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22244         Remove unused attribute.
22245
22246 2010-07-20  Roland McGrath  <roland@redhat.com>
22247
22248         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22249         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22250         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22251         like LD_HWCAP_MASK can disable hwcaps.
22252
22253 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22254
22255         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22256
22257 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22258
22259         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22260         call in strcasestr.
22261         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22262         __strcasestr_sse42_nonascii.
22263         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22264         strcasestr-nonascii.c.
22265         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22266
22267 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22268
22269         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22270         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22271         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22272         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22273
22274 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22275
22276         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22277         fcntl.
22278
22279 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22280
22281         [BZ #11577]
22282         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22283         dl_signal_cerror.
22284
22285 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22286
22287         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22288         _PC_PIPE_BUF using F_GETPIPE_SZ.
22289
22290 2010-07-05  Roland McGrath  <roland@redhat.com>
22291
22292         * manual/arith.texi (Rounding Functions): Fix rint description
22293         implicit in round description.
22294
22295 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22296
22297         * elf/Makefile: Fix linking for a few tests to make recent linker
22298         happy.
22299
22300 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22301
22302         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22303         $(common-objpfx)libc_nonshared.a.
22304
22305 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22306
22307         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22308         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22309         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22310         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22311         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22312         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22313         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22314         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22329         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22330         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22331         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22332         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22333         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22334         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22335         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22336         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22337         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22338         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22339         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22340         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22341         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22342         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22347         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22348         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22349         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22350         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22351         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22352         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22355
22356 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22357
22358         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22359         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22360         * string/memmove.c (memmove): Renamed to ...
22361         (MEMMOVE): ...this.  Default to memmove.
22362         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22363         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22364         (END_CHK): Define.
22365         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22366         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22367         mempcpy-ssse3-back memmove-ssse3-back.
22368         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22369         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22370         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22371         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22372         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22373         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22374         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22375         * sysdeps/x86_64/multiarch/memmove.c: New file.
22376         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22377         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22378         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22379         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22380         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22381         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22382         Define.
22383         (index_Fast_Copy_Backward): Define.
22384         (HAS_ARCH_FEATURE): Define.
22385         (HAS_FAST_REP_STRING): Define.
22386         (HAS_FAST_COPY_BACKWARD): Define.
22387
22388 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22389
22390         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22391         Restore proper fallback handling.
22392
22393 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22394
22395         [BZ #11701]
22396         * posix/group_member.c (__group_member): Correct checking loop.
22397
22398         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22399         OOM in getpwuid_r correctly.  Return error number when the caller
22400         should return, otherwise -1.
22401         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22402         call returning > 0 value.
22403         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22404
22405 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22406
22407         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22408         libc_nonshared.a from targets in modules-names.
22409
22410 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22411
22412         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22413         requires it.
22414
22415 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22416
22417         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22418         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22419         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22420         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22421
22422 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22423
22424         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22425
22426 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22427
22428         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22429         and F_GETPIPE_SZ.
22430         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22431         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22432         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22433         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22434         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22435         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22436
22437 2010-06-14  Roland McGrath  <roland@redhat.com>
22438
22439         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22440
22441 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22442
22443         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22444         __REDIRECT followed by __THROW.
22445         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22446         * posix/getopt.h (getopt): Likewise.
22447
22448 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22449
22450         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22451         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22452         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22453         in AT_FLAGS.
22454         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22455         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22456
22457 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22458
22459         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22460
22461 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22462
22463         [BZ #11640]
22464         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22465         Properly check family and model.
22466
22467 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22468
22469         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22470
22471 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22472
22473         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22474
22475 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22476
22477         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22478         symbol reference.
22479
22480 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22481
22482         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22483         symbol reference.
22484
22485 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22486
22487         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22488         and internal_recvmmsg.
22489         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22490         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22491         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22492         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22493
22494         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22495         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22496         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22497
22498 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22499
22500         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22501
22502 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22503
22504         POWER7 optimizations.
22505         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22506         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22507
22508 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22509
22510         * version.h: Update for 2.13 development version.
22511
22512 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22513
22514         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22515         exceptions.  Return 0.
22516
22517 2010-05-07  Roland McGrath  <roland@redhat.com>
22518
22519         * elf/ldconfig.c (main): Add a const.
22520
22521 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22522
22523         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22524         (args_options): Add no-idn option.
22525         (ahosts_keys_int): Add idn_flags to ai_flags.
22526         (parse_option): Handle 'i' option to clear idn_flags.
22527
22528         * malloc/malloc.c (_int_free): Possible race in the most recently
22529         added check.  Only act on the data if no current modification
22530         happened.
22531
22532 See ChangeLog.17 for earlier changes.