Add ldconfig cache tag handling for AArch64
[glibc.git] / ChangeLog
blob63e00edcb151b97188cd133cc9170f10c190bd1a
1 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
3         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
4         * elf/cache.c (print_entry): Print ",AArch64" for
5         FLAG_AARCH64_LIB64
7         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
8         * elf/cache.c (print_entry): Print ",hard-float" for
9         FLAG_ARM_LIBHF.
11 2012-11-18  David S. Miller  <davem@davemloft.net>
13         With help from Joseph Myers.
14         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
15         cutoff to 2**-13.
16         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
17         cutoff to 2**-25.
18         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
19         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
20         small.
21         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
22         * math/libm-test.inc (y0_test): New tests.
23         (y1_test): New tests.
24         * sysdeps/i386/fpu/libm-test-ulps: Update.
25         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26         * sysdeps/sparc/fpu/libm-test-ulps: Update.
28 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
30         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
31         64-bit targets.
32         * configure: Regenerated.
34 2012-11-17  David S. Miller  <davem@davemloft.net>
36         [BZ #14811]
37         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
38         nonzero exponents with absolute value below 0x1p-128 to +/-
39         0x1p-128.
41 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
43         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
45         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
47         * posix/getconf-speclist.c: New file.
48         * posix/posix-envs.def: Likewise.
49         * posix/confstr.c (START_ENV_GROUP): New macro.
50         (END_ENV_GROUP): Likewise.
51         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
52         (KNOWN_PRESENT_ENV_STRING): Likewise.
53         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
54         (UNKNOWN_ENVIRONMENT): Likewise.
55         (confstr): Include posix-envs.def instead of handling
56         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
57         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
58         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
59         (END_ENV_GROUP): Likewise.
60         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
61         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
62         (UNKNOWN_ENVIRONMENT): Likewise.
63         (__sysconf): Include posix-envs.def instead of handling associated
64         cases directly here.
65         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
66         preprocessing getconf-speclist.c rather than running getconf or
67         generating empty file.
69 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
71         * scripts/check-local-headers.sh: Ignore 'mach' headers.
73 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
75         [BZ #14672]
76         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
78 2012-11-16  David S. Miller  <davem@davemloft.net>
80         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
81         smaller than LDBL_EPSILON/2.0L, just return xm1.
83 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
85         * elf/tst-array1.c (init): Set constructor priority to 1000.
86         (fini): Set destructor priority to 1000.
87         * elf/tst-array2dep.c: Likewise.
89 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
91         [BZ #11741]
92         * libio/fileops.c (_IO_new_file_write): Correctly return error.
93         (_IO_new_file_xsputn): Also return EOF if none of the input
94         data was written when overflow failed.
95         * libio/iopadn.c (_IO_padn): Likewise.
96         * libio/iowpadn.c (_IO_wpadn): Likewise.
97         * stdio-common/tst-put-error.c: Add copyright notice.
98         (do_test): Add case for printing padded string.
99         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
100         _IO_padn returned error.
101         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
102         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
103         return EOF.
105 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
107         * libio/libioP.h: Add comment note that the references to C++
108         bits are now obsolete.
110 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
112         * math/libm-test.inc (check_complex): Use asprintf.
114 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
116         * debug/pcprofiledump.c (print_version): Update copyright year.
117         * malloc/memusagestat.c (print_version): Likewise.
119 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
121         [BZ #14831]
122         * elf/Makefile (tests): Add tst-audit8.
123         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
124         ($(objpfx)tst-audit8.out): New target.
125         (tst-audit8-ENV): New variable.
126         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
127         audit if l_reloc_result is NULL.
128         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
129         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
130         * elf/tst-audit8.c: New file.
132 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
134         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
135         * misc/Makefile (CFLAGS-select.c): Define.
136         * posix/Makefile (CFLAGS-pause.c): Define.
138 2012-11-13  David S. Miller  <davem@davemloft.net>
140         * crypt/Makefile: Move test targets after toplevel Rules
141         inclusion.  Grab any necessary sysdep routines when linking.
142         * crypt/md5.c (md5_process_block): Remove define, we will always
143         name it __md5_process_block.
144         (md5_finish_ctx): Update md5_process_block call.
145         (md5_stream): Likewise.
146         (md5_process_bytes): Likewise.
147         (md5_process_block): Rename to __md5_process_block and move to ...
148         * crypt/md5-block.c: ... here.
149         * crypt/sha256.c (sha256_process_block): Move to ...
150         * crypt/sha256-block.c: ... here.
151         * crypt/sha512.c (sha512_process_block): Move to ...
152         * crypt/sha512-block.c: ... here.
153         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
154         path.
155         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
156         * sysdeps/sparc/sparc64/multiarch/Makefile
157         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
158         crypt subdir.
159         (localedef-aux): Add md5 crypto assembler when in locale subdir.
160         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
161         multiarch changes.
162         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
163         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
164         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
165         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
166         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
167         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
168         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
169         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
170         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
171         file.
172         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
173         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
174         file.
175         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
177 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
179         * timezone/tzselect.ksh: Update from tzcode git revision
180         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
181         * timezone/zdump.c: Likewise.
182         * timezone/zic.c: Likewise.
183         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
184         in TZVERSION setting, not $(PKGVERSION).
185         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
186         REPORT_BUGS_TO settings.
188         [BZ #14838]
189         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
190         macro.
192 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
194         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
195         detection to immediately after _FP_ROUND().
196         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
197         bits are 0.
199 2012-11-11  David S. Miller  <davem@davemloft.net>
201         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
202         inttypes.h
203         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
204         __close rather than their public counterparts.
206 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
208         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
209         file.
210         [UNIX98] (sem_timedwait): Do not expect.
211         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
212         [XPG4 || UNIX98] (sockatmark): Do not expect.
213         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
214         (clock_getcpuclockid): Do not expect.
215         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
216         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
217         Do not expect.
218         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
219         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
220         [UNIX98] (vwscanf): Likewise.
221         [UNIX98] (vswscanf): Likewise.
223 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
225         * timezone/version.h: Remove file.
226         * timezone/README: Do not refer to version.h.
227         * timezone/Makefile ($(objpfx)zic.o): New dependency on
228         $(objpfx)version.h.
229         ($(objpfx)zdump.o): Likewise.
230         ($(objpfx)version.h): New target.
232         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
233         2012i.
234         * timezone/README: Don't mention modification to tzselect.ksh.
235         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
236         work on unmodified tzselect.ksh.  Substitute version numbers in
237         tzselect.ksh.
239         * Makefile (format-me): Remove.
240         (INSTALL): Adjust indentation.  Use commands directly instead of
241         using $(format-me).
243         * aclocal.m4 (ACX_PKGVERSION): New macro.
244         (ACX_BUGURL): Likewise.
245         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
246         (PKGVERSION): New AC_DEFINE_UNQUOTED.
247         (REPORT_BUGS_TO): Likewise.
248         * configure: Regenerated.
249         * config.h.in (PKGVERSION): New macro.
250         (REPORT_BUGS_TO): Likewise.
251         * config.make.in (PKGVERSION): New variable.
252         (PKGVERSION_TEXI): Likewise.
253         (REPORT_BUGS_TO): Likewise.
254         (REPORT_BUGS_TEXI): Likewise.
255         * Makefile (format-me): Use -I$(common-objpfx)manual.
256         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
257         ($(common-objpfx)manual/%): New target.
258         (manual/%): Remove target.
259         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
260         (print_version): Use PKGVERSION.
261         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
262         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
263         and REPORT_BUGS_TO.
264         ($(objpfx)xtrace): Likewise.
265         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
266         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
267         (print_version): Use PKGVERSION.
268         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
269         (do_version): Use PKGVERSION.
270         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
271         REPORT_BUGS_TO.
272         (common-ldd-rewrite): Likewise.
273         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
274         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
275         (print_version): Use PKGVERSION.
276         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
277         * elf/pldd.c (argp_program_bug_address): Remove variable.
278         (more_help): New function.
279         (argp): Use more_help.
280         (print_version): Use PKGVERSION.
281         * elf/sln.c (main): Use PKGVERSION.
282         (usage): Use REPORT_BUGS_TO.
283         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
284         (top level): Use PKGVERSION.
285         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
286         (print_version): Use PKGVERSION.
287         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
288         (print_version): Use PKGVERSION.
289         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
290         (print_version): Use PKGVERSION.
291         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
292         (print_version): Use PKGVERSION.
293         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
294         (print_version): Use PKGVERSION.
295         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
296         (print_version): Use PKGVERSION.
297         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
298         and BUGURL.
299         ($(objpfx)memusage): Likewise.
300         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
301         (do_version): Use PKGVERSION.
302         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
303         (print_version): Use PKGVERSION.
304         * malloc/mtrace.pl ($PACKAGE): Remove variable.
305         ($PKGVERSION): New variable.
306         ($REPORT_BUGS_TO): Likewise.
307         (usage): Use $REPORT_BUGS_TO.
308         (top level): Use $PKGVERSION.
309         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
310         ($(objpfx)pkgvers.texi): New rule.
311         ($(objpfx)stamp-pkgvers): Likewise.
312         * manual/install.texi: Include pkgvers.texi.
313         (--with-pkgversion): Document new configure option.
314         (--with-bugurl): Likewise.
315         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
316         than necessarily for this particular distribution.  Use
317         REPORT_BUGS_TO for where to report bugs.
318         * INSTALL: Regenerated.
319         * manual/libc.texinfo: Include pkgvers.texi.
320         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
321         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
322         (print_version): Use PKGVERSION.
323         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
324         (print_version): Use PKGVERSION.
325         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
326         (print_version): Use PKGVERSION.
327         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
328         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
329         macro.
330         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
331         (print_version): Use PKGVERSION.
332         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
333         (print_version): Use PKGVERSION.
334         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
335         and PKGVERSION.
337         * timezone/checktab.awk: Update from tzcode 2012i.
338         * timezone/ialloc.c: Likewise.
339         * timezone/private.h: Likewise.
340         * timezone/scheck.c: Likewise.
341         * timezone/tzfile.h: Likewise.
342         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
343         (TZVERSION): Hardcode tzcode version number.
344         * timezone/zdump.c: Update from tzcode 2012i.
345         * timezone/zic.c: Likewise.
346         * timezone/version.h: New file.
347         * timezone/README: Describe version.h.  Update upstream location.
349         [BZ #14824]
350         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
351         (mktemp): Enable declaration.
352         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
353         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
354         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
355         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
356         Likewise.
357         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
358         Likewise.
359         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
360         Likewise.
361         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
362         Likewise.
363         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
364         Likewise.
365         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
366         Likewise.
368         [BZ #14821]
369         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
370         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
371         for copies of such integer values.
372         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
373         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
375 2012-11-09  Andreas Jaeger  <aj@suse.de>
377         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
378         definitions and declarations that are provided by
379         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
381 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
383         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
384         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
385         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
386         definition.
388 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
390         * elf/elf.h: Update comment before AArch64 relocations.
392 2012-11-07  David S. Miller  <davem@davemloft.net>
394         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
395         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
396         (__start_context): Declare.
397         (__makecontext_ret): Delete.
398         (__makecontext): Hook up __start_context instead of
399         __makecontext_ret.
400         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
401         (sysdep_routines): Add __start_context when in stdlib.
403 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
405         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
406         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
407         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
408         hardcoded "nm".
409         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
410         (READELF): New variable.  Use it instead of hardcoded "readelf".
412 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
414         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
415         * sysdeps/x86/Makefile: Here.
416         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
417         * sysdeps/x86/tst-xmmymm.sh: This.
419 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
421         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
422         expectations.
423         [UNIX98] (pthread_barrier_t): Do not expect.
424         [UNIX98] (pthread_barrierattr_t): Likewise.
425         [UNIX98] (pthread_spinlock_t): Likewise.
426         [UNIX98] (pthread_barrier_destroy): Likewise.
427         [UNIX98] (pthread_barrier_init): Likewise.
428         [UNIX98] (pthread_barrier_wait): Likewise.
429         [UNIX98] (pthread_barrierattr_destroy): Likewise.
430         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
431         [UNIX98] (pthread_barrierattr_init): Likewise.
432         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
433         [UNIX98] (pthread_getcpuclockid): Likewise.
434         [UNIX98] (pthread_mutex_timedlock): Likewise.
435         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
436         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
437         [UNIX98] (pthread_sigmask): Likewise.
438         [UNIX98] (pthread_spin_destroy): Likewise.
439         [UNIX98] (pthread_spin_init): Likewise.
440         [UNIX98] (pthread_spin_lock): Likewise.
441         [UNIX98] (pthread_spin_trylock): Likewise.
442         [UNIX98] (pthread_spin_unlock): Likewise.
443         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
444         Do not expect.
445         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
446         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
447         [XPG3 || XPG4] (pthread_cond_t): Likewise.
448         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
449         [XPG3 || XPG4] (pthread_key_t): Likewise.
450         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
451         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
452         [XPG3 || XPG4] (pthread_once_t): Likewise.
453         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
454         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
455         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
456         [XPG3 || XPG4] (pthread_t): Likewise.
458         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
459         not expect.
460         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
462         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
463         Change function return type to int.
465         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
466         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
467         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
468         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
469         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
470         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
471         [!POSIX] (posix_madvise): Likewise.
472         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
473         && !UNIX98].
474         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
475         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
476         (mode_t): Likewise.
477         (posix_mem_offset): Likewise.
478         (posix_typed_mem_get_info): Likewise.
479         (posix_typed_mem_open): Likewise.
481         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
482         Change condition to [XOPEN2K8].
484         * conform/conformtest.pl: Preprocess allow-header data with -x c
485         instead of from stdin.
486         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
487         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
488         [C99-based standards] (cerfc): Likewise.
489         [C99-based standards] (cexp2): Likewise.
490         [C99-based standards] (cexpm1): Likewise.
491         [C99-based standards] (clog10): Likewise.
492         [C99-based standards] (clog1p): Likewise.
493         [C99-based standards] (clog2): Likewise.
494         [C99-based standards] (clgamma): Likewise.
495         [C99-based standards] (ctgamma): Likewise.
496         [C99-based standards] (cerff): Likewise.
497         [C99-based standards] (cerfcf): Likewise.
498         [C99-based standards] (cexp2f): Likewise.
499         [C99-based standards] (cexpm1f): Likewise.
500         [C99-based standards] (clog10f): Likewise.
501         [C99-based standards] (clog1pf): Likewise.
502         [C99-based standards] (clog2f): Likewise.
503         [C99-based standards] (clgammaf): Likewise.
504         [C99-based standards] (ctgammaf): Likewise.
505         [C99-based standards] (cerfl): Likewise.
506         [C99-based standards] (cerfcl): Likewise.
507         [C99-based standards] (cexp2l): Likewise.
508         [C99-based standards] (cexpm1l): Likewise.
509         [C99-based standards] (clog10l): Likewise.
510         [C99-based standards] (clog1pl): Likewise.
511         [C99-based standards] (clog2l): Likewise.
512         [C99-based standards] (clgammal): Likewise.
513         [C99-based standards] (ctgammal): Likewise.
514         * conform/data/inttypes.h-data [C99-based standards]: Include
515         stdint.h-data.  Remove all expectations for stdint.h contents.
516         [C99-based standards] (PRI*): Do not allow.
517         [C99-based standards] (SCN*): Likewise.
518         [C99-based standards] (*_t): Likewise.
519         [C99-based-standards] (PRId8): Expect macro.
520         [C99-based-standards] (PRIi8): Likewise.
521         [C99-based-standards] (PRIo8): Likewise.
522         [C99-based-standards] (PRIu8): Likewise.
523         [C99-based-standards] (PRIx8): Likewise.
524         [C99-based-standards] (PRIX8): Likewise.
525         [C99-based-standards] (SCNd8): Likewise.
526         [C99-based-standards] (SCNi8): Likewise.
527         [C99-based-standards] (SCNo8): Likewise.
528         [C99-based-standards] (SCNu8): Likewise.
529         [C99-based-standards] (SCNx8): Likewise.
530         [C99-based-standards] (PRIdLEAST8): Likewise.
531         [C99-based-standards] (PRIiLEAST8): Likewise.
532         [C99-based-standards] (PRIoLEAST8): Likewise.
533         [C99-based-standards] (PRIuLEAST8): Likewise.
534         [C99-based-standards] (PRIxLEAST8): Likewise.
535         [C99-based-standards] (PRIXLEAST8): Likewise.
536         [C99-based-standards] (SCNdLEAST8): Likewise.
537         [C99-based-standards] (SCNiLEAST8): Likewise.
538         [C99-based-standards] (SCNoLEAST8): Likewise.
539         [C99-based-standards] (SCNuLEAST8): Likewise.
540         [C99-based-standards] (SCNxLEAST8): Likewise.
541         [C99-based-standards] (PRIdFAST8): Likewise.
542         [C99-based-standards] (PRIiFAST8): Likewise.
543         [C99-based-standards] (PRIoFAST8): Likewise.
544         [C99-based-standards] (PRIuFAST8): Likewise.
545         [C99-based-standards] (PRIxFAST8): Likewise.
546         [C99-based-standards] (PRIXFAST8): Likewise.
547         [C99-based-standards] (SCNdFAST8): Likewise.
548         [C99-based-standards] (SCNiFAST8): Likewise.
549         [C99-based-standards] (SCNoFAST8): Likewise.
550         [C99-based-standards] (SCNuFAST8): Likewise.
551         [C99-based-standards] (SCNxFAST8): Likewise.
552         [C99-based-standards] (PRId16): Likewise.
553         [C99-based-standards] (PRIi16): Likewise.
554         [C99-based-standards] (PRIo16): Likewise.
555         [C99-based-standards] (PRIu16): Likewise.
556         [C99-based-standards] (PRIx16): Likewise.
557         [C99-based-standards] (PRIX16): Likewise.
558         [C99-based-standards] (SCNd16): Likewise.
559         [C99-based-standards] (SCNi16): Likewise.
560         [C99-based-standards] (SCNo16): Likewise.
561         [C99-based-standards] (SCNu16): Likewise.
562         [C99-based-standards] (SCNx16): Likewise.
563         [C99-based-standards] (PRIdLEAST16): Likewise.
564         [C99-based-standards] (PRIiLEAST16): Likewise.
565         [C99-based-standards] (PRIoLEAST16): Likewise.
566         [C99-based-standards] (PRIuLEAST16): Likewise.
567         [C99-based-standards] (PRIxLEAST16): Likewise.
568         [C99-based-standards] (PRIXLEAST16): Likewise.
569         [C99-based-standards] (SCNdLEAST16): Likewise.
570         [C99-based-standards] (SCNiLEAST16): Likewise.
571         [C99-based-standards] (SCNoLEAST16): Likewise.
572         [C99-based-standards] (SCNuLEAST16): Likewise.
573         [C99-based-standards] (SCNxLEAST16): Likewise.
574         [C99-based-standards] (PRIdFAST16): Likewise.
575         [C99-based-standards] (PRIiFAST16): Likewise.
576         [C99-based-standards] (PRIoFAST16): Likewise.
577         [C99-based-standards] (PRIuFAST16): Likewise.
578         [C99-based-standards] (PRIxFAST16): Likewise.
579         [C99-based-standards] (PRIXFAST16): Likewise.
580         [C99-based-standards] (SCNdFAST16): Likewise.
581         [C99-based-standards] (SCNiFAST16): Likewise.
582         [C99-based-standards] (SCNoFAST16): Likewise.
583         [C99-based-standards] (SCNuFAST16): Likewise.
584         [C99-based-standards] (SCNxFAST16): Likewise.
585         [C99-based-standards] (PRId32): Likewise.
586         [C99-based-standards] (PRIi32): Likewise.
587         [C99-based-standards] (PRIo32): Likewise.
588         [C99-based-standards] (PRIu32): Likewise.
589         [C99-based-standards] (PRIx32): Likewise.
590         [C99-based-standards] (PRIX32): Likewise.
591         [C99-based-standards] (SCNd32): Likewise.
592         [C99-based-standards] (SCNi32): Likewise.
593         [C99-based-standards] (SCNo32): Likewise.
594         [C99-based-standards] (SCNu32): Likewise.
595         [C99-based-standards] (SCNx32): Likewise.
596         [C99-based-standards] (PRIdLEAST32): Likewise.
597         [C99-based-standards] (PRIiLEAST32): Likewise.
598         [C99-based-standards] (PRIoLEAST32): Likewise.
599         [C99-based-standards] (PRIuLEAST32): Likewise.
600         [C99-based-standards] (PRIxLEAST32): Likewise.
601         [C99-based-standards] (PRIXLEAST32): Likewise.
602         [C99-based-standards] (SCNdLEAST32): Likewise.
603         [C99-based-standards] (SCNiLEAST32): Likewise.
604         [C99-based-standards] (SCNoLEAST32): Likewise.
605         [C99-based-standards] (SCNuLEAST32): Likewise.
606         [C99-based-standards] (SCNxLEAST32): Likewise.
607         [C99-based-standards] (PRIdFAST32): Likewise.
608         [C99-based-standards] (PRIiFAST32): Likewise.
609         [C99-based-standards] (PRIoFAST32): Likewise.
610         [C99-based-standards] (PRIuFAST32): Likewise.
611         [C99-based-standards] (PRIxFAST32): Likewise.
612         [C99-based-standards] (PRIXFAST32): Likewise.
613         [C99-based-standards] (SCNdFAST32): Likewise.
614         [C99-based-standards] (SCNiFAST32): Likewise.
615         [C99-based-standards] (SCNoFAST32): Likewise.
616         [C99-based-standards] (SCNuFAST32): Likewise.
617         [C99-based-standards] (SCNxFAST32): Likewise.
618         [C99-based-standards] (PRId64): Likewise.
619         [C99-based-standards] (PRIi64): Likewise.
620         [C99-based-standards] (PRIo64): Likewise.
621         [C99-based-standards] (PRIu64): Likewise.
622         [C99-based-standards] (PRIx64): Likewise.
623         [C99-based-standards] (PRIX64): Likewise.
624         [C99-based-standards] (SCNd64): Likewise.
625         [C99-based-standards] (SCNi64): Likewise.
626         [C99-based-standards] (SCNo64): Likewise.
627         [C99-based-standards] (SCNu64): Likewise.
628         [C99-based-standards] (SCNx64): Likewise.
629         [C99-based-standards] (PRIdLEAST64): Likewise.
630         [C99-based-standards] (PRIiLEAST64): Likewise.
631         [C99-based-standards] (PRIoLEAST64): Likewise.
632         [C99-based-standards] (PRIuLEAST64): Likewise.
633         [C99-based-standards] (PRIxLEAST64): Likewise.
634         [C99-based-standards] (PRIXLEAST64): Likewise.
635         [C99-based-standards] (SCNdLEAST64): Likewise.
636         [C99-based-standards] (SCNiLEAST64): Likewise.
637         [C99-based-standards] (SCNoLEAST64): Likewise.
638         [C99-based-standards] (SCNuLEAST64): Likewise.
639         [C99-based-standards] (SCNxLEAST64): Likewise.
640         [C99-based-standards] (PRIdFAST64): Likewise.
641         [C99-based-standards] (PRIiFAST64): Likewise.
642         [C99-based-standards] (PRIoFAST64): Likewise.
643         [C99-based-standards] (PRIuFAST64): Likewise.
644         [C99-based-standards] (PRIxFAST64): Likewise.
645         [C99-based-standards] (PRIXFAST64): Likewise.
646         [C99-based-standards] (SCNdFAST64): Likewise.
647         [C99-based-standards] (SCNiFAST64): Likewise.
648         [C99-based-standards] (SCNoFAST64): Likewise.
649         [C99-based-standards] (SCNuFAST64): Likewise.
650         [C99-based-standards] (SCNxFAST64): Likewise.
651         [C99-based-standards] (PRIdMAX): Likewise.
652         [C99-based-standards] (PRIiMAX): Likewise.
653         [C99-based-standards] (PRIoMAX): Likewise.
654         [C99-based-standards] (PRIuMAX): Likewise.
655         [C99-based-standards] (PRIxMAX): Likewise.
656         [C99-based-standards] (PRIXMAX): Likewise.
657         [C99-based-standards] (SCNdMAX): Likewise.
658         [C99-based-standards] (SCNiMAX): Likewise.
659         [C99-based-standards] (SCNoMAX): Likewise.
660         [C99-based-standards] (SCNuMAX): Likewise.
661         [C99-based-standards] (SCNxMAX): Likewise.
662         [C99-based-standards] (PRIdPTR): Likewise.
663         [C99-based-standards] (PRIiPTR): Likewise.
664         [C99-based-standards] (PRIoPTR): Likewise.
665         [C99-based-standards] (PRIuPTR): Likewise.
666         [C99-based-standards] (PRIxPTR): Likewise.
667         [C99-based-standards] (PRIXPTR): Likewise.
668         [C99-based-standards] (SCNdPTR): Likewise.
669         [C99-based-standards] (SCNiPTR): Likewise.
670         [C99-based-standards] (SCNoPTR): Likewise.
671         [C99-based-standards] (SCNuPTR): Likewise.
672         [C99-based-standards] (SCNxPTR): Likewise.
673         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
674         allow.
675         * conform/data/stdint.h-data: Update comments to clarify
676         requirements.
677         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
678         type.
679         [C99-based standards] (INT8_MAX): Likewise.
680         [C99-based standards] (INT16_MIN): Likewise.
681         [C99-based standards] (INT16_MAX): Likewise.
682         [C99-based standards] (INT32_MIN): Likewise.
683         [C99-based standards] (INT32_MAX): Likewise.
684         [C99-based standards] (INT64_MIN): Likewise.
685         [C99-based standards] (INT64_MAX): Likewise.
686         [C99-based standards] (UINT8_MAX): Likewise.
687         [C99-based standards] (UINT16_MAX): Likewise.
688         [C99-based standards] (UINT32_MAX): Likewise.
689         [C99-based standards] (UINT64_MAX): Likewise.
690         [C99-based standards] (INT_LEAST8_MIN): Likewise.
691         [C99-based standards] (INT_LEAST8_MAX): Likewise.
692         [C99-based standards] (INT_LEAST16_MIN): Likewise.
693         [C99-based standards] (INT_LEAST16_MAX): Likewise.
694         [C99-based standards] (INT_LEAST32_MIN): Likewise.
695         [C99-based standards] (INT_LEAST32_MAX): Likewise.
696         [C99-based standards] (INT_LEAST64_MIN): Likewise.
697         [C99-based standards] (INT_LEAST64_MAX): Likewise.
698         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
699         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
700         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
701         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
702         [C99-based standards] (INT_FAST8_MIN): Likewise.
703         [C99-based standards] (INT_FAST8_MAX): Likewise.
704         [C99-based standards] (INT_FAST16_MIN): Likewise.
705         [C99-based standards] (INT_FAST16_MAX): Likewise.
706         [C99-based standards] (INT_FAST32_MIN): Likewise.
707         [C99-based standards] (INT_FAST32_MAX): Likewise.
708         [C99-based standards] (INT_FAST64_MIN): Likewise.
709         [C99-based standards] (INT_FAST64_MAX): Likewise.
710         [C99-based standards] (UINT_FAST8_MAX): Likewise.
711         [C99-based standards] (UINT_FAST16_MAX): Likewise.
712         [C99-based standards] (UINT_FAST32_MAX): Likewise.
713         [C99-based standards] (UINT_FAST64_MAX): Likewise.
714         [C99-based standards] (INTPTR_MIN): Likewise.
715         [C99-based standards] (INTPTR_MAX): Likewise.
716         [C99-based standards] (UINTPTR_MAX): Likewise.
717         [C99-based standards] (INTMAX_MIN): Likewise.
718         [C99-based standards] (INTMAX_MAX): Likewise.
719         [C99-based standards] (UINTMAX_MAX): Likewise.
720         [C99-based standards] (PTRDIFF_MIN): Likewise.
721         [C99-based standards] (PTRDIFF_MAX): Likewise.
722         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
723         [C99-based standards] (SIZE_MAX): Likewise.
724         [C99-based standards] (WCHAR_MAX): Likewise.
725         [C99-based standards] (WINT_MAX): Likewise.
726         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
727         constraint on value.
728         [C99-based standards] (WCHAR_MIN): Likewise.
729         [C99-based standards] (WINT_MIN): Likewise.
730         [C99-based standards] (*_t): Allow.
731         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
732         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
733         Include math.h-data and complex.h-data.  Remove all expectations
734         of math.h and complex.h contents.
735         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
736         at end of line.
737         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
738         (struct tm): Expect tag.
739         [C99-based-standards] (wcstof): Expect function.
740         [C99-based-standards] (wcstold): Likewise.
741         [C99-based-standards] (wcstoll): Likewise.
742         [C99-based-standards] (wcstoull): Likewise.
743         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
744         macro-int-constant.  Specify type.
745         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
746         constraint on value.
747         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
748         Specify type.
749         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
750         Specify value.
751         [ISO C standards]: Do not allow headers.
752         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
753         wcs[abcdefghijklmnopqrstuvwxyz]*.
754         [ISO C standards] (*_t): Do not allow.
755         * conform/data/wctype.h-data [C99-based standards] (iswblank):
756         Expect function.
757         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
758         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
759         Specify type.
760         [ISO C standards]: Do not allow headers.
761         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
762         is[abcdefghijklmnopqrstuvwxyz]*.
763         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
764         to[abcdefghijklmnopqrstuvwxyz]*.
765         [ISO C standards] (*_t): Do not allow.
766         * conform/data/stdalign.h-data: New file.
767         * conform/data/stdbool.h-data: Likewise.
768         * conform/data/stdnoreturn.h-data: Likewise.
770 2012-11-07  Andreas Jaeger  <aj@suse.de>
772         [BZ #14809]
773         * sysdeps/unix/sysv/linux/sys/sysctl.h (_UAPI_LINUX_KERNEL_H)
774         (_UAPI_LINUX_TYPES_H): Starting with Linux 3.7, the include header
775         guards are changed.  Only define if not yet defined, #undef back
776         after including linux/sysctl.h if defined here.
778 2012-11-07  Roland McGrath  <roland@hack.frob.com>
780         [BZ #14815]
781         * manual/filesys.texi (Directory Entries): Typo fix.
782         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
784 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
786         * elf/elf.h (EM_AARCH64): New macro.
787         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
788         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
789         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
790         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
791         (R_AARCH64_TLSDESC): Likewise.
792         (NT_ARM_TLS): Likewise.
793         (NT_ARM_HW_BREAK): Likewise.
794         (NT_ARM_HW_WATCH): Likewise.
796 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
798         [BZ #14811]
799         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
800         (__ieee754_powl): Saturate nonzero exponents with absolute value
801         below 0x1p-79 to +/- 0x1p-79.
802         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
803         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
804         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
805         nonzero exponents with absolute value below 0x1p-32 to +/-
806         0x1p-32.
807         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
808         (__ieee754_powl): Saturate nonzero exponents with absolute value
809         below 0x1p-79 to +/- 0x1p-79.
810         * math/libm-test.inc (pow_test): Add more tests.
812 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
814         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
815         _dl_s390_cap_flags with kernel. Increase string length.
816         (_dl_s390_platforms): Add z196 and zEC12.
818 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
820         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
821         Change XOPEN21K to XOPEN2K.
823 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
825         * string/memmove.c: Use memcpy when possible.
827 2012-11-06  Andreas Jaeger  <aj@suse.de>
829         * po/eo.po: Update from translation team.
831 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
833         [BZ #14793]
834         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
835         exponent and small x and y exponents, scale x or y up.  Increase
836         by 2 the exponent used in scaling up.
837         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
838         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
839         * math/libm-test.inc (fma_test): Add more tests.
840         (fma_test_towardzero): Likewise.
841         (fma_test_downward): Likewise.
842         (fma_test_upward): Likewise.
844 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
846         [BZ #14805]
847         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
848         fenv_t *.
850         [BZ #14801]
851         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
852         namespace for names of struct fields.
853         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
854         fenv_t fields.
855         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
856         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
858 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
860         [BZ #3665]
861         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
863 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
865         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
866         PTR_DEMANGLE.
868         [BZ #5246]
869         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
870         PTR_DEMANGLE.
872 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
874         [BZ #14797]
875         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
876         definitely overflow as x * y not x * y + z.
877         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
878         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
879         * math/libm-test.inc (fma_test): Add more tests.
880         (fma_test_towardzero): Likewise.
881         (fma_test_downward): Likewise.
882         (fma_test_upward): Likewise.
884 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
886         [BZ #157]
888         * include/stub-tag.h: Remove file.
889         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
890         '#include' of it.
891         * manual/maint.texi (Porting): Don't reference it.
892         * Makerules ($(objpfx)stubs): Likewise.
893         * dirent/closedir.c: Don't include <stub-tag.h>.
894         * dirent/dirfd.c: Likewise.
895         * dirent/fdopendir.c: Likewise.
896         * dirent/getdents.c: Likewise.
897         * dirent/getdents64.c: Likewise.
898         * dirent/opendir.c: Likewise.
899         * dirent/readdir.c: Likewise.
900         * dirent/readdir64.c: Likewise.
901         * dirent/readdir64_r.c: Likewise.
902         * dirent/readdir_r.c: Likewise.
903         * dirent/rewinddir.c: Likewise.
904         * dirent/seekdir.c: Likewise.
905         * dirent/telldir.c: Likewise.
906         * gmon/profil.c: Likewise.
907         * grp/setgroups.c: Likewise.
908         * inet/if_index.c: Likewise.
909         * io/access.c: Likewise.
910         * io/chdir.c: Likewise.
911         * io/chmod.c: Likewise.
912         * io/chown.c: Likewise.
913         * io/close.c: Likewise.
914         * io/dup.c: Likewise.
915         * io/dup2.c: Likewise.
916         * io/dup3.c: Likewise.
917         * io/euidaccess.c: Likewise.
918         * io/faccessat.c: Likewise.
919         * io/fchdir.c: Likewise.
920         * io/fchmod.c: Likewise.
921         * io/fchmodat.c: Likewise.
922         * io/fchown.c: Likewise.
923         * io/fchownat.c: Likewise.
924         * io/fcntl.c: Likewise.
925         * io/flock.c: Likewise.
926         * io/fstatfs.c: Likewise.
927         * io/fstatfs64.c: Likewise.
928         * io/fstatvfs.c: Likewise.
929         * io/fstatvfs64.c: Likewise.
930         * io/futimens.c: Likewise.
931         * io/fxstat.c: Likewise.
932         * io/fxstat64.c: Likewise.
933         * io/fxstatat.c: Likewise.
934         * io/fxstatat64.c: Likewise.
935         * io/getcwd.c: Likewise.
936         * io/isatty.c: Likewise.
937         * io/lchmod.c: Likewise.
938         * io/lchown.c: Likewise.
939         * io/link.c: Likewise.
940         * io/linkat.c: Likewise.
941         * io/lseek.c: Likewise.
942         * io/lseek64.c: Likewise.
943         * io/lxstat64.c: Likewise.
944         * io/mkdir.c: Likewise.
945         * io/mkdirat.c: Likewise.
946         * io/mkfifo.c: Likewise.
947         * io/mkfifoat.c: Likewise.
948         * io/open.c: Likewise.
949         * io/open64.c: Likewise.
950         * io/openat.c: Likewise.
951         * io/openat64.c: Likewise.
952         * io/pipe.c: Likewise.
953         * io/pipe2.c: Likewise.
954         * io/poll.c: Likewise.
955         * io/posix_fadvise.c: Likewise.
956         * io/posix_fadvise64.c: Likewise.
957         * io/posix_fallocate.c: Likewise.
958         * io/posix_fallocate64.c: Likewise.
959         * io/read.c: Likewise.
960         * io/readlink.c: Likewise.
961         * io/readlinkat.c: Likewise.
962         * io/rmdir.c: Likewise.
963         * io/sendfile.c: Likewise.
964         * io/sendfile64.c: Likewise.
965         * io/statfs.c: Likewise.
966         * io/statfs64.c: Likewise.
967         * io/statvfs.c: Likewise.
968         * io/statvfs64.c: Likewise.
969         * io/symlink.c: Likewise.
970         * io/symlinkat.c: Likewise.
971         * io/ttyname.c: Likewise.
972         * io/ttyname_r.c: Likewise.
973         * io/umask.c: Likewise.
974         * io/unlink.c: Likewise.
975         * io/unlinkat.c: Likewise.
976         * io/utime.c: Likewise.
977         * io/utimensat.c: Likewise.
978         * io/write.c: Likewise.
979         * io/xmknod.c: Likewise.
980         * io/xmknodat.c: Likewise.
981         * io/xstat.c: Likewise.
982         * io/xstat64.c: Likewise.
983         * login/getpt.c: Likewise.
984         * login/grantpt.c: Likewise.
985         * login/unlockpt.c: Likewise.
986         * math/e_acoshl.c: Likewise.
987         * math/e_acosl.c: Likewise.
988         * math/e_asinl.c: Likewise.
989         * math/e_atan2l.c: Likewise.
990         * math/e_atanhl.c: Likewise.
991         * math/e_coshl.c: Likewise.
992         * math/e_expl.c: Likewise.
993         * math/e_fmodl.c: Likewise.
994         * math/e_gammal_r.c: Likewise.
995         * math/e_hypotl.c: Likewise.
996         * math/e_j0l.c: Likewise.
997         * math/e_j1l.c: Likewise.
998         * math/e_jnl.c: Likewise.
999         * math/e_lgammal_r.c: Likewise.
1000         * math/e_log10l.c: Likewise.
1001         * math/e_log2l.c: Likewise.
1002         * math/e_logl.c: Likewise.
1003         * math/e_powl.c: Likewise.
1004         * math/e_rem_pio2l.c: Likewise.
1005         * math/e_sinhl.c: Likewise.
1006         * math/e_sqrtl.c: Likewise.
1007         * math/fclrexcpt.c: Likewise.
1008         * math/fedisblxcpt.c: Likewise.
1009         * math/feenablxcpt.c: Likewise.
1010         * math/fegetenv.c: Likewise.
1011         * math/fegetexcept.c: Likewise.
1012         * math/fegetround.c: Likewise.
1013         * math/feholdexcpt.c: Likewise.
1014         * math/fesetenv.c: Likewise.
1015         * math/fesetround.c: Likewise.
1016         * math/feupdateenv.c: Likewise.
1017         * math/fgetexcptflg.c: Likewise.
1018         * math/fraiseexcpt.c: Likewise.
1019         * math/fsetexcptflg.c: Likewise.
1020         * math/ftestexcept.c: Likewise.
1021         * math/k_cosl.c: Likewise.
1022         * math/k_rem_pio2l.c: Likewise.
1023         * math/k_sinl.c: Likewise.
1024         * math/k_tanl.c: Likewise.
1025         * math/s_asinhl.c: Likewise.
1026         * math/s_atanl.c: Likewise.
1027         * math/s_cbrtl.c: Likewise.
1028         * math/s_erfl.c: Likewise.
1029         * math/s_expm1l.c: Likewise.
1030         * math/s_log1pl.c: Likewise.
1031         * math/s_tanhl.c: Likewise.
1032         * misc/acct.c: Likewise.
1033         * misc/brk.c: Likewise.
1034         * misc/chflags.c: Likewise.
1035         * misc/chroot.c: Likewise.
1036         * misc/fchflags.c: Likewise.
1037         * misc/fgetxattr.c: Likewise.
1038         * misc/flistxattr.c: Likewise.
1039         * misc/fremovexattr.c: Likewise.
1040         * misc/fsetxattr.c: Likewise.
1041         * misc/fsync.c: Likewise.
1042         * misc/ftruncate.c: Likewise.
1043         * misc/futimes.c: Likewise.
1044         * misc/futimesat.c: Likewise.
1045         * misc/getdomain.c: Likewise.
1046         * misc/getdtsz.c: Likewise.
1047         * misc/gethostid.c: Likewise.
1048         * misc/gethostname.c: Likewise.
1049         * misc/getloadavg.c: Likewise.
1050         * misc/getpagesize.c: Likewise.
1051         * misc/getsysstats.c: Likewise.
1052         * misc/getxattr.c: Likewise.
1053         * misc/gtty.c: Likewise.
1054         * misc/ioctl.c: Likewise.
1055         * misc/lgetxattr.c: Likewise.
1056         * misc/listxattr.c: Likewise.
1057         * misc/llistxattr.c: Likewise.
1058         * misc/lremovexattr.c: Likewise.
1059         * misc/lsetxattr.c: Likewise.
1060         * misc/lutimes.c: Likewise.
1061         * misc/madvise.c: Likewise.
1062         * misc/mincore.c: Likewise.
1063         * misc/mlock.c: Likewise.
1064         * misc/mlockall.c: Likewise.
1065         * misc/mmap.c: Likewise.
1066         * misc/mprotect.c: Likewise.
1067         * misc/msync.c: Likewise.
1068         * misc/munlock.c: Likewise.
1069         * misc/munlockall.c: Likewise.
1070         * misc/munmap.c: Likewise.
1071         * misc/preadv.c: Likewise.
1072         * misc/preadv64.c: Likewise.
1073         * misc/ptrace.c: Likewise.
1074         * misc/pwritev.c: Likewise.
1075         * misc/pwritev64.c: Likewise.
1076         * misc/readv.c: Likewise.
1077         * misc/reboot.c: Likewise.
1078         * misc/remap_file_pages.c: Likewise.
1079         * misc/removexattr.c: Likewise.
1080         * misc/revoke.c: Likewise.
1081         * misc/select.c: Likewise.
1082         * misc/setdomain.c: Likewise.
1083         * misc/setegid.c: Likewise.
1084         * misc/seteuid.c: Likewise.
1085         * misc/sethostid.c: Likewise.
1086         * misc/sethostname.c: Likewise.
1087         * misc/setregid.c: Likewise.
1088         * misc/setreuid.c: Likewise.
1089         * misc/setxattr.c: Likewise.
1090         * misc/sstk.c: Likewise.
1091         * misc/stty.c: Likewise.
1092         * misc/swapoff.c: Likewise.
1093         * misc/swapon.c: Likewise.
1094         * misc/sync.c: Likewise.
1095         * misc/syncfs.c: Likewise.
1096         * misc/syscall.c: Likewise.
1097         * misc/truncate.c: Likewise.
1098         * misc/ualarm.c: Likewise.
1099         * misc/usleep.c: Likewise.
1100         * misc/ustat.c: Likewise.
1101         * misc/utimes.c: Likewise.
1102         * misc/vhangup.c: Likewise.
1103         * misc/writev.c: Likewise.
1104         * posix/_exit.c: Likewise.
1105         * posix/alarm.c: Likewise.
1106         * posix/execve.c: Likewise.
1107         * posix/fexecve.c: Likewise.
1108         * posix/fork.c: Likewise.
1109         * posix/fpathconf.c: Likewise.
1110         * posix/getaddrinfo.c: Likewise.
1111         * posix/getegid.c: Likewise.
1112         * posix/geteuid.c: Likewise.
1113         * posix/getgid.c: Likewise.
1114         * posix/getgroups.c: Likewise.
1115         * posix/getlogin.c: Likewise.
1116         * posix/getlogin_r.c: Likewise.
1117         * posix/getpgid.c: Likewise.
1118         * posix/getpid.c: Likewise.
1119         * posix/getppid.c: Likewise.
1120         * posix/getresgid.c: Likewise.
1121         * posix/getresuid.c: Likewise.
1122         * posix/getsid.c: Likewise.
1123         * posix/getuid.c: Likewise.
1124         * posix/glob64.c: Likewise.
1125         * posix/nanosleep.c: Likewise.
1126         * posix/pathconf.c: Likewise.
1127         * posix/pause.c: Likewise.
1128         * posix/posix_madvise.c: Likewise.
1129         * posix/pread.c: Likewise.
1130         * posix/pread64.c: Likewise.
1131         * posix/pwrite.c: Likewise.
1132         * posix/pwrite64.c: Likewise.
1133         * posix/sched_getaffinity.c: Likewise.
1134         * posix/sched_getp.c: Likewise.
1135         * posix/sched_gets.c: Likewise.
1136         * posix/sched_primax.c: Likewise.
1137         * posix/sched_primin.c: Likewise.
1138         * posix/sched_rr_gi.c: Likewise.
1139         * posix/sched_setaffinity.c: Likewise.
1140         * posix/sched_setp.c: Likewise.
1141         * posix/sched_sets.c: Likewise.
1142         * posix/sched_yield.c: Likewise.
1143         * posix/setgid.c: Likewise.
1144         * posix/setlogin.c: Likewise.
1145         * posix/setpgid.c: Likewise.
1146         * posix/setresgid.c: Likewise.
1147         * posix/setresuid.c: Likewise.
1148         * posix/setsid.c: Likewise.
1149         * posix/setuid.c: Likewise.
1150         * posix/sleep.c: Likewise.
1151         * posix/spawni.c: Likewise.
1152         * posix/sysconf.c: Likewise.
1153         * posix/times.c: Likewise.
1154         * posix/wait.c: Likewise.
1155         * posix/wait3.c: Likewise.
1156         * posix/wait4.c: Likewise.
1157         * posix/waitpid.c: Likewise.
1158         * resolv/gai_sigqueue.c: Likewise.
1159         * resource/getpriority.c: Likewise.
1160         * resource/getrlimit.c: Likewise.
1161         * resource/getrusage.c: Likewise.
1162         * resource/nice.c: Likewise.
1163         * resource/setpriority.c: Likewise.
1164         * resource/setrlimit.c: Likewise.
1165         * resource/ulimit.c: Likewise.
1166         * rt/aio_cancel.c: Likewise.
1167         * rt/aio_fsync.c: Likewise.
1168         * rt/aio_read.c: Likewise.
1169         * rt/aio_sigqueue.c: Likewise.
1170         * rt/aio_suspend.c: Likewise.
1171         * rt/aio_write.c: Likewise.
1172         * rt/clock_getres.c: Likewise.
1173         * rt/clock_gettime.c: Likewise.
1174         * rt/clock_nanosleep.c: Likewise.
1175         * rt/clock_settime.c: Likewise.
1176         * rt/lio_listio.c: Likewise.
1177         * rt/mq_close.c: Likewise.
1178         * rt/mq_getattr.c: Likewise.
1179         * rt/mq_notify.c: Likewise.
1180         * rt/mq_open.c: Likewise.
1181         * rt/mq_receive.c: Likewise.
1182         * rt/mq_send.c: Likewise.
1183         * rt/mq_setattr.c: Likewise.
1184         * rt/mq_timedreceive.c: Likewise.
1185         * rt/mq_timedsend.c: Likewise.
1186         * rt/mq_unlink.c: Likewise.
1187         * rt/shm_open.c: Likewise.
1188         * rt/shm_unlink.c: Likewise.
1189         * rt/timer_create.c: Likewise.
1190         * rt/timer_delete.c: Likewise.
1191         * rt/timer_getoverr.c: Likewise.
1192         * rt/timer_gettime.c: Likewise.
1193         * rt/timer_settime.c: Likewise.
1194         * setjmp/__longjmp.c: Likewise.
1195         * setjmp/setjmp.c: Likewise.
1196         * signal/kill.c: Likewise.
1197         * signal/killpg.c: Likewise.
1198         * signal/raise.c: Likewise.
1199         * signal/sigaction.c: Likewise.
1200         * signal/sigaltstack.c: Likewise.
1201         * signal/sigblock.c: Likewise.
1202         * signal/sigignore.c: Likewise.
1203         * signal/sigintr.c: Likewise.
1204         * signal/signal.c: Likewise.
1205         * signal/sigpause.c: Likewise.
1206         * signal/sigpending.c: Likewise.
1207         * signal/sigqueue.c: Likewise.
1208         * signal/sigreturn.c: Likewise.
1209         * signal/sigset.c: Likewise.
1210         * signal/sigsetmask.c: Likewise.
1211         * signal/sigstack.c: Likewise.
1212         * signal/sigsuspend.c: Likewise.
1213         * signal/sigtimedwait.c: Likewise.
1214         * signal/sigvec.c: Likewise.
1215         * signal/sigwait.c: Likewise.
1216         * signal/sigwaitinfo.c: Likewise.
1217         * signal/sysv_signal.c: Likewise.
1218         * socket/accept.c: Likewise.
1219         * socket/accept4.c: Likewise.
1220         * socket/bind.c: Likewise.
1221         * socket/connect.c: Likewise.
1222         * socket/getpeername.c: Likewise.
1223         * socket/getsockname.c: Likewise.
1224         * socket/getsockopt.c: Likewise.
1225         * socket/isfdtype.c: Likewise.
1226         * socket/listen.c: Likewise.
1227         * socket/recv.c: Likewise.
1228         * socket/recvfrom.c: Likewise.
1229         * socket/recvmsg.c: Likewise.
1230         * socket/send.c: Likewise.
1231         * socket/sendmsg.c: Likewise.
1232         * socket/sendto.c: Likewise.
1233         * socket/setsockopt.c: Likewise.
1234         * socket/shutdown.c: Likewise.
1235         * socket/sockatmark.c: Likewise.
1236         * socket/socket.c: Likewise.
1237         * socket/socketpair.c: Likewise.
1238         * stdio-common/ctermid.c: Likewise.
1239         * stdio-common/cuserid.c: Likewise.
1240         * stdio-common/remove.c: Likewise.
1241         * stdio-common/rename.c: Likewise.
1242         * stdio-common/renameat.c: Likewise.
1243         * stdio-common/tempname.c: Likewise.
1244         * stdlib/getcontext.c: Likewise.
1245         * stdlib/makecontext.c: Likewise.
1246         * stdlib/setcontext.c: Likewise.
1247         * stdlib/swapcontext.c: Likewise.
1248         * stdlib/system.c: Likewise.
1249         * streams/fattach.c: Likewise.
1250         * streams/fdetach.c: Likewise.
1251         * streams/getmsg.c: Likewise.
1252         * streams/getpmsg.c: Likewise.
1253         * streams/putmsg.c: Likewise.
1254         * streams/putpmsg.c: Likewise.
1255         * sysdeps/unix/bsd/getpt.c: Likewise.
1256         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
1257         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
1258         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
1260         Likewise.
1261         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
1262         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
1263         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1264         * sysvipc/msgctl.c: Likewise.
1265         * sysvipc/msgget.c: Likewise.
1266         * sysvipc/msgrcv.c: Likewise.
1267         * sysvipc/msgsnd.c: Likewise.
1268         * sysvipc/semctl.c: Likewise.
1269         * sysvipc/semget.c: Likewise.
1270         * sysvipc/semop.c: Likewise.
1271         * sysvipc/semtimedop.c: Likewise.
1272         * sysvipc/shmat.c: Likewise.
1273         * sysvipc/shmctl.c: Likewise.
1274         * sysvipc/shmdt.c: Likewise.
1275         * sysvipc/shmget.c: Likewise.
1276         * termios/tcdrain.c: Likewise.
1277         * termios/tcflow.c: Likewise.
1278         * termios/tcflush.c: Likewise.
1279         * termios/tcgetattr.c: Likewise.
1280         * termios/tcgetpgrp.c: Likewise.
1281         * termios/tcsendbrk.c: Likewise.
1282         * termios/tcsetattr.c: Likewise.
1283         * termios/tcsetpgrp.c: Likewise.
1284         * time/adjtime.c: Likewise.
1285         * time/clock.c: Likewise.
1286         * time/getitimer.c: Likewise.
1287         * time/gettimeofday.c: Likewise.
1288         * time/setitimer.c: Likewise.
1289         * time/settimeofday.c: Likewise.
1290         * time/stime.c: Likewise.
1291         * time/time.c: Likewise.
1293 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
1295         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
1296         /usr/old/bin.
1298         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
1299         instead of spaces.
1300         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
1302 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
1304         [BZ #14796]
1305         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
1306         FE_TONEAREST before applying Dekker multiplication and Knuth
1307         addition.  Clear inexact exceptions and check for exact zero
1308         results afterwards.
1309         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1310         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
1311         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1312         * math/libm-test.inc (fma_test): Add more tests.
1313         (fma_test_towardzero): Likewise.
1314         (fma_test_downward): Likewise.
1315         (fma_test_upward): Likewise.
1316         * sysdeps/generic/math_private.h (default_libc_fesetround): New
1317         function.
1318         (libc_fesetround): New macro.
1319         (libc_fesetroundf): Likewise.
1320         (libc_fesetroundl): Likewise.
1321         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
1322         function.
1323         (libc_fesetround_387): Likewise.
1324         (libc_fesetroundf): New macro.
1325         (libc_fesetround): Likewise.
1326         (libc_fesetroundl): Likewise.
1327         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
1328         function.
1329         (libc_fesetroundf): New macro.
1330         (libc_fesetround): Likewise.
1331         (libc_fesetroundl): Likewise.
1332         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
1333         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
1334         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
1335         libm_hidden_ver.
1336         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
1337         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
1338         libm_hidden_def.
1339         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
1340         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
1341         libm_hidden_ver.
1342         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
1343         libm_hidden_def.
1345         [BZ #3439]
1346         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
1347         integer constant usable in #if and use that to give value to enum
1348         constant.
1349         (FE_DIVBYZERO): Likewise.
1350         (FE_UNDERFLOW): Likewise.
1351         (FE_OVERFLOW): Likewise.
1352         (FE_INVALID): Likewise.
1353         (FE_INVALID_SNAN): Likewise.
1354         (FE_INVALID_ISI): Likewise.
1355         (FE_INVALID_IDI): Likewise.
1356         (FE_INVALID_ZDZ): Likewise.
1357         (FE_INVALID_IMZ): Likewise.
1358         (FE_INVALID_COMPARE): Likewise.
1359         (FE_INVALID_SOFTWARE): Likewise.
1360         (FE_INVALID_SQRT): Likewise.
1361         (FE_INVALID_INTEGER_CONVERSION): Likewise.
1362         (FE_TONEAREST): Likewise.
1363         (FE_TOWARDZERO): Likewise.
1364         (FE_UPWARD): Likewise.
1365         (FE_DOWNWARD): Likewise.
1366         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
1367         (FE_DIVBYZERO): Likewise.
1368         (FE_OVERFLOW): Likewise.
1369         (FE_UNDERFLOW): Likewise.
1370         (FE_INEXACT): Likewise.
1371         (FE_TONEAREST): Likewise.
1372         (FE_DOWNWARD): Likewise.
1373         (FE_UPWARD): Likewise.
1374         (FE_TOWARDZERO): Likewise.
1375         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
1376         (FE_UNDERFLOW): Likewise.
1377         (FE_OVERFLOW): Likewise.
1378         (FE_DIVBYZERO): Likewise.
1379         (FE_INVALID): Likewise.
1380         (FE_TONEAREST): Likewise.
1381         (FE_TOWARDZERO): Likewise.
1382         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
1383         (FE_OVERFLOW): Likewise.
1384         (FE_UNDERFLOW): Likewise.
1385         (FE_DIVBYZERO): Likewise.
1386         (FE_INEXACT): Likewise.
1387         (FE_TONEAREST): Likewise.
1388         (FE_TOWARDZERO): Likewise.
1389         (FE_UPWARD): Likewise.
1390         (FE_DOWNWARD): Likewise.
1391         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
1392         (FE_DIVBYZERO): Likewise.
1393         (FE_OVERFLOW): Likewise.
1394         (FE_UNDERFLOW): Likewise.
1395         (FE_INEXACT): Likewise.
1396         (FE_TONEAREST): Likewise.
1397         (FE_DOWNWARD): Likewise.
1398         (FE_UPWARD): Likewise.
1399         (FE_TOWARDZERO): Likewise.
1401 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
1403         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
1405 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
1407         * scripts/cross-test-ssh.sh (command): Use newlines to separate
1408         commands.  Quote $PWD.
1409         (blacklist_exports): Don't use remove_newlines.  Replace "declare
1410         -x" by "export".
1411         (remove_newlines): Remove.
1413 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1415         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
1416         * stdlib/stdlib.h (atof): Moved to ...
1417         * include/bits/stdlib-float.h: Here.  New file.
1418         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
1419         * stdlib/bits/stdlib-float.h: New file.
1420         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
1421         -mno-sse -mno-mmx.
1422         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
1423         <xmmintrin.h>.
1425 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1427         * conform/conformtest.pl (@headers): Add fenv.h.
1428         * conform/data/fenv.h-data: New file.
1429         * include/fenv.h [_ISOMAC]: Disable all contents of file except
1430         include of <math/fenv.h>.
1432         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
1433         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
1434         && !UNIX98].  Enables tests for XOPEN2K8.
1435         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
1436         POSIX2008]: Likewise.
1438         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
1439         (struct rusage): Do not expect type or its members.
1441         [BZ #3439]
1442         * math/math.h (FP_NAN): Define macro to integer constant usable in
1443         #if and use that to give value to enum constant.
1444         (FP_INFINITE): Likewise.
1445         (FP_ZERO): Likewise.
1446         (FP_SUBNORMAL): Likewise.
1447         (FP_NORMAL): Likewise.
1449 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
1451         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
1452         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
1453         arguments.
1455 2012-11-02  Roland McGrath  <roland@hack.frob.com>
1457         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
1458         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
1459         autoconf-time if not.
1460         * configure.in: Remove AC_PREREQ.
1462 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1464         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
1465         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
1466         of the internal implementation.
1468 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
1470         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
1471         except include of <misc/sys/syslog.h>.
1473 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
1476         function returns with a NULL context exit with zero.
1478 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1480         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
1482 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
1484         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
1485         (run_program_cmd): This.
1486         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
1487         (tst_langinfo): New variable.  Use it.
1489 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
1491         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
1492         floating point opcodes.
1494 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1496         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
1497         variable.
1499         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
1501         * sysdeps/mach/hurd/powerpc: Remove directory.
1502         * sysdeps/mach/powerpc: Likewise.
1504 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
1506         * scripts/check-local-headers.sh: Ignore c++ headers.
1508 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1510         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
1511         __libc_cleanup_region_start argument.
1513 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
1515         [BZ #14784]
1516         [BZ #14785]
1517         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
1518         x * y using scaling, not as x * y + z.
1519         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1520         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1521         * math/libm-test.inc (fma_test): Add more tests.
1522         (fma_test_towardzero): Likewise.
1523         (fma_test_downward): Likewise.
1524         (fma_test_upward): Likewise.
1526 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
1528         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
1530 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1532         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
1533         New variable.
1535 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
1537         * rt/tst-shm.c (worker): Correct checking for mmap failure.
1539 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1542         Fix sort order.
1543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1544         Likewise.
1546 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1548         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1549         Fix the order of the list for glibc 2.17.
1550         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1551         Likewise.
1553 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
1555         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1557 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
1559         [BZ #14610]
1560         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
1561         for low part of x being zero before using __atanl (y).
1562         * math/libm-test.inc (atan2_test): Add another test.
1564         * manual/install.texi (Configuring and compiling): Document
1565         general use of test-wrapper and test-wrapper-env.
1566         * INSTALL: Regenerated.
1568         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
1569         (__fma): Do not extract and scale down low bits on after-rounding
1570         systems when result rounded to normal precision would have normal
1571         exponent.
1572         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
1573         (__fmal): Do not extract and scale down low bits on after-rounding
1574         systems when result rounded to normal precision would have normal
1575         exponent.
1576         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
1577         (__fmal): Do not extract and scale down low bits on after-rounding
1578         systems when result rounded to normal precision would have normal
1579         exponent.
1580         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
1581         macro.
1582         (fma_test): Add more tests.
1583         (fma_test_towardzero): Likewise.
1584         (fma_test_downward): Likewise.
1585         (fma_test_upward): Likewise.
1587 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1589         * sysdeps/i386/tininess.h: Renamed to ...
1590         * sysdeps/x86/tininess.h: This.
1591         * sysdeps/x86_64/tininess.h: Removed.
1593 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1595         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
1596         input.  Use $(build-program-cmd).
1597         ($(objpfx)tst-array1-static.out): Likewise.
1598         ($(objpfx)tst-array2.out): Likewise.
1599         ($(objpfx)tst-array3.out): Likewise.
1600         ($(objpfx)tst-array4.out): Likewise.
1601         ($(objpfx)tst-array5.out): Likewise.
1602         ($(objpfx)tst-array5-static.out): Likewise.
1604 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
1606         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
1607         if defined.
1609         * nss/nsswitch.h (nss_interface_function): Provide new
1610         macro for use with NSS functions.
1611         * grp/initgroups.c: Use new macro.
1612         * nss/getXXbyYY.c: Likewise.
1613         * nss/getXXbyYY_r.c: Likewise.
1614         * nss/getXXent.c: Likewise.
1615         * nss/getXXent_r.c: Likewise.
1616         * sysdeps/posix/getaddrinfo.c: Likewise.
1618 2012-10-30  Andreas Jaeger  <aj@suse.de>
1620         * po/ru.po: Update Russion translation from translation project.
1622 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
1624         [BZ #14152]
1625         [BZ #14783]
1626         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
1627         result and shift together with sticky bit instead of replicating
1628         round-to-nearest rounding.
1629         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
1630         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
1631         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
1632         missing underflow exceptions.
1633         (fma_test_towardzero): Add more tests.
1634         (fma_test_downward): Likewise.
1635         (fma_test_upward): Likewise.
1637         [BZ #14047]
1638         * sysdeps/generic/tininess.h: New file.
1639         * sysdeps/i386/tininess.h: Likewise.
1640         * sysdeps/sh/tininess.h: Likewise.
1641         * sysdeps/x86_64/tininess.h: Likewise.
1642         * stdlib/tst-strtod-underflow.c: Likewise.
1643         * stdlib/tst-tininess.c: Likewise.
1644         * stdlib/strtod_l.c: Include <tininess.h>.
1645         (round_and_return): Do not set errno for exact underflow cases.
1646         Force an underflow exception when setting errno for underflow.
1647         Determine underflow based on rounding to normal precision if
1648         TININESS_AFTER_ROUNDING.
1649         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
1650         ERANGE for exact underflow cases.
1651         * stdlib/Makefile (tests): Add tst-tininess and
1652         tst-strtod-underflow.
1653         ($(objpfx)tst-tininess): Use $(link-libm).
1654         ($(objpfx)tst-strtod-underflow): Likewise.
1656 2012-10-30  Andreas Jaeger  <aj@suse.de>
1658         [BZ#14767]
1659         * elf/Makefile (tests): Remove conditional for have-initfini-array
1660         since this is now always required and the variable does not exist
1661         anymore.
1662         (tests-static): Likewise.
1663         (modules-names): Likewise.
1665         * po/eo.po: Add Esperanto translation from translation project.
1667         * elf/tst-array1.c (fini_array): Make writeable so that it can be
1668         merged with constructor/destructor.
1669         (init_array): Likewise.
1670         * elf/tst-array2dep.c (fini_array): Likewise.
1671         (init_array): Likewise.
1673 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
1675         * manual/message.texi: Delete @cartouche tags.
1677 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
1679         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
1680         EOPNOTSUPP.
1681         * sysdeps/mach/hurd/fsync.c: Likewise.
1683         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
1684         [_POSIX_REALTIME_SIGNALS]: Change condition to
1685         [_POSIX_REALTIME_SIGNALS > 0].
1687 2012-10-27  Andreas Jaeger  <aj@suse.de>
1689         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
1690         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
1691         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
1692         [__WORDSIZE != 64]: Likewise.
1694 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1696         *  iconvdata/tst-table.sh: Remove ${SHELL}.
1697         *  iconvdata/tst-tables.sh: Likewise.
1699 2012-10-25  David S. Miller  <davem@davemloft.net>
1701         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1702         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
1703         of strtoull.
1705         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
1706         ifunc-impl-list.c
1707         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1708         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
1709         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
1710         file.
1712 2012-10-25  Roland McGrath  <roland@hack.frob.com>
1714         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1715         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
1716         __getdirentries.
1718 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1719             Jim Blandy  <jimb@codesourcery.com>
1721         * scripts/cross-test-ssh.sh: New file.
1722         * manual/install.texi (Configuring and compiling): Document use of
1723         cross-test-ssh.sh.
1724         * INSTALL: Regenerated.
1726 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
1728         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
1729         EOPNOTSUPP.
1731 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
1733         * Makeconfig (run-program-prefix): Fix comment.
1735 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1736             Jim Blandy  <jimb@codesourcery.com>
1738         * Makeconfig (test-wrapper): New variable,
1739         (test-wrapper-env): Likewise.
1740         [$(cross-compiling) = yes && $(test-wrapper) != ""]
1741         (run-built-tests): Define to yes.
1742         (run-program-prefix): Use $(test-wrapper).
1743         (built-program-cmd): Likewise.
1744         * Rules (make-test-out): Use $(test-wrapper-env) and
1745         $(host-built-program-cmd).
1746         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
1747         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
1748         tst-pathopt.sh.
1749         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
1750         $(test-wrapper-env) to tst-rtld-load-self.sh.
1751         ($(objpfx)order2.out): Use $(test-wrapper).
1752         ($(objpfx)tst-initorder.out): Likewise.
1753         ($(objpfx)tst-initorder2.out): Likewise.
1754         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
1755         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
1756         (test_wrapper_env): New variable.  Use it to run ld.so.
1757         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
1758         Use it to run ld.so.
1759         (test_wrapper_env): Likewise.
1760         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
1761         $(test-wrapper) to run-iconv-test.sh.
1762         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
1763         (ICONV): Use $test_wrapper.
1764         * posix/Makefile ($(objpfx)globtest.out): Pass
1765         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
1766         globtest.sh, not $(run-program-prefix).
1767         * posix/globtest.sh (run_via_rtld_prefix): New variable.
1768         (test_wrapper): Likewise.
1769         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
1770         set together with run_via_rtld_prefix.
1771         (run_program_prefix): Define in terms of test_wrapper and
1772         run_via_rtld_prefix.
1774 2012-10-24  Roland McGrath  <roland@hack.frob.com>
1776         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
1777         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
1778         Targets removed.
1780         [BZ #14743]
1781         * include/time.h: Remove librt_hidden_proto (clock_gettime).
1782         Declare __clock_getres, __clock_gettime, __clock_settime,
1783         __clock_nanosleep, and __clock_getcpuclockid.
1784         * rt/clock_gettime.c: Define __clock_gettime as an alias.
1785         Remove librt_hidden_def (clock_gettime).
1786         * sysdeps/unix/clock_gettime.c: Likewise.
1787         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
1788         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
1789         * rt/clock_getres.c: Define __clock_getres as an alias.
1790         * sysdeps/posix/clock_getres.c: Likewise.
1791         * rt/clock_settime.c: Define __clock_settime as an alias.
1792         * sysdeps/unix/clock_settime.c: Likewise.
1793         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
1794         * sysdeps/unix/clock_nanosleep.c: Likewise.
1795         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
1796         * rt/clock-compat.c: New file.
1797         * rt/Makefile (librt-routines): Add clock-compat and move
1798         $(clock-routines) to ...
1799         (routines): ... here, new variable.
1800         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
1801         Don't add get_clockfreq here.
1802         * rt/Versions (libc: GLIBC_2.17): New version set.
1803         Add clock_* symbols here.
1804         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
1805         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
1806         (GLIBC_2.17): Add clock_* symbols.
1807         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1808         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1809         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1811         Likewise.
1812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1813         Likewise.
1814         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1815         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1816         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1817         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1818         * NEWS: Mention the move.
1820         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
1821         Use __open, __read, __close rather than their public counterparts.
1822         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
1823         (__get_clockfreq_via_cpuinfo): Likewise.
1824         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
1825         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
1827         * config.h.in (HAVE_IFUNC): New #undef.
1828         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
1829         was successful.
1830         * configure: Regenerated.
1832 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1834         * configure.in: Move READELF check to start of file.
1835         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
1836         libc_cv_asm_gnu_indirect_function in the process.
1837         * configure: Regenerated.
1839 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
1841         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
1842         send the output to /dev/null.
1843         (libc_cv_cc_with_libunwind): Likewise.
1844         (libc_cv_as_noexecstack): Likewise.
1845         * configure: Regenerate.
1847 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
1849         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
1851         * posix/globtest.sh (TMPDIR): Do not set.
1852         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
1853         (testout): Likewise.
1855 2012-10-24  Andreas Jaeger  <aj@suse.de>
1857         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
1858         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
1859         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
1860         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
1861         posix_fadvise64, posix_fallocate64.
1863         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
1864         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
1865         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
1866         Likewise.
1867         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
1868         Likewise.
1869         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
1871         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
1872         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
1873         <bits/fcntl-linux.h>.
1874         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
1876         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
1877         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
1878         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
1879         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
1880         [__WORDSIZE != 64]: Likewise.
1882 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1884         * Makeconfig (run-built-tests): New variable.
1885         * Rules [$(cross-compiling) = yes]: Change condition to
1886         [$(run-built-tests) = no].
1887         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
1888         to [$(run-built-tests) = yes].
1889         * elf/Makefile [$(cross-compiling) = no]: Likewise
1890         * grp/Makefile [$(cross-compiling) = no]: Likewise.
1891         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
1892         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
1893         * intl/Makefile [$(cross-compiling) = no]: Likewise.
1894         * io/Makefile [$(cross-compiling) = no]: Likewise.
1895         * libio/Makefile [$(cross-compiling) = no]: Likewise.
1896         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
1897         * misc/Makefile [$(cross-compiling) = no]: Likewise.
1898         * posix/Makefile [$(cross-compiling) = no]: Likewise.
1899         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
1900         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
1901         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
1902         * string/Makefile [$(cross-compiling) = no]: Likewise.
1904         * posix/Makefile ($(objpfx)globtest.out): Pass
1905         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
1906         $(rtld-installed-name).
1907         * posix/globtest.sh (elf_objpfx): Remove variable.
1908         (rtld_installed_name): Likewise.
1909         (library_path): Likewise.
1910         (run_program_prefix): New variable.  Use for running globtest
1911         binary.
1913 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
1914             Joseph Myers  <joseph@codesourcery.com>
1916         * Makeconfig (host-built-program-cmd): New variable.
1917         * elf/Makefile (tst-stackguard1-ARGS): Use
1918         $(host-built-program-cmd).
1919         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
1920         (tst-spawn-ARGS): Likewise.
1921         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
1923 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
1924             Jim Blandy  <jimb@codesourcery.com>
1926         * Makeconfig (run-via-rtld-prefix): New variable.
1927         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
1928         (built-program-cmd): Likewise.
1930 2012-10-22  Andreas Jaeger  <aj@suse.de>
1932         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
1933         __O_RSYNC if it exists, otherwise to O_SYNC.
1935 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
1936             Joseph Myers  <joseph@codesourcery.com>
1938         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
1939         /dev/null.
1940         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
1941         from /dev/null
1942         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
1943         /dev/null.
1945 2012-10-22  Andreas Jaeger  <aj@suse.de>
1947         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
1948         Define always.
1949         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
1951         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
1952         bits/fcntl-linux.h.
1954         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
1955         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
1957         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
1958         to __O_LARGEFILE.
1959         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
1960         to __O_LARGEFILE.
1962 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
1963             Joseph Myers  <joseph@codesourcery.com>
1965         * config.make.in (NM): New variable.
1967 2012-10-21  Andreas Jaeger  <aj@suse.de>
1969         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
1970         definitions and declarations that are provided by
1971         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
1973 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
1975         [BZ #14683]
1976         * elf/Makefile (tests-static): Add tst-leaks1-static.
1977         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
1978         ($(objpfx)tst-leaks1-static): New rule.
1979         ($(objpfx)tst-leaks1-static-mem): Likewise.
1980         (tst-leaks1-static-ENV): New macro.
1981         * elf/dl-open.c (dl_open_worker): Check the main application
1982         only if SHARED is defined.
1983         * elf/tst-leaks1-static.c: New file.
1985 2012-10-20  Andreas Jaeger  <aj@suse.de>
1987         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
1988         generic values for Linux.
1989         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
1990         and declarations that are provided by <bits/fcntl-linux.h> and
1991         include <bits/fcntl-linux.h>.
1992         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
1993         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
1995 2012-10-20  Roland McGrath  <roland@hack.frob.com>
1997         * io/fcntl.h: Move include of <bits/types.h> to the top and
1998         include it unconditionally.
2000 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2002         * wcsmbs/Makefile (tests-ifunc): New variable.
2003         (tests): Add $(tests-ifunc).
2004         * wcsmbs/test-wcschr-ifunc.c: New file.
2005         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
2006         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
2007         * wcsmbs/test-wcslen-ifunc.c: Likewise.
2008         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
2009         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
2011         * string/Makefile (tests-ifunc): New variable.
2012         (tests): Add $(tests-ifunc).
2013         * string/test-memccpy.c (TEST_NAME): New macro.
2014         * string/test-memchr.c (TEST_NAME): Likewise.
2015         * string/test-memcmp.c (TEST_NAME): Likewise.
2016         * string/test-memcpy.c (TEST_NAME): Likewise.
2017         * string/test-memmem.c (TEST_NAME): Likewise.
2018         * string/test-memmove.c (TEST_NAME): Likewise.
2019         * string/test-memset.c (TEST_NAME): Likewise.
2020         * string/test-rawmemchr.c (TEST_NAME): Likewise.
2021         * string/test-stpcpy.c (TEST_NAME): Likewise.
2022         * string/test-stpncpy.c (TEST_NAME): Likewise.
2023         * string/test-strcasecmp.c (TEST_NAME): Likewise.
2024         * string/test-strcasestr.c (TEST_NAME): Likewise.
2025         * string/test-strcat.c (TEST_NAME): Likewise.
2026         * string/test-strchr.c (TEST_NAME): Likewise.
2027         * string/test-strcmp.c(TEST_NAME): Likewise.
2028         * string/test-strcpy.c (TEST_NAME): Likewise.
2029         * string/test-strcspn.c (TEST_NAME): Likewise.
2030         * string/test-strlen.c (TEST_NAME): Likewise.
2031         * string/test-strncasecmp.c (TEST_NAME): Likewise.
2032         * string/test-strncmp.c (TEST_NAME): Likewise.
2033         * string/test-strncpy.c (TEST_NAME): Likewise.
2034         * string/test-strnlen.c (TEST_NAME): Likewise.
2035         * string/test-strpbrk.c (TEST_NAME): Likewise.
2036         * string/test-strrchr.c (TEST_NAME): Likewise.
2037         * string/test-strspn.c (TEST_NAME): Likewise.
2038         * string/test-strstr.c (TEST_NAME): Likewise.
2039         * string/test-bcopy-ifunc.c: New file.
2040         * string/test-bzero-ifunc.c: Likewise.
2041         * string/test-memccpy-ifunc.c: Likewise.
2042         * string/test-memchr-ifunc.c: Likewise.
2043         * string/test-memcmp-ifunc.c: Likewise.
2044         * string/test-memcpy-ifunc.c: Likewise.
2045         * string/test-memmem-ifunc.c: Likewise.
2046         * string/test-memmove-ifunc.c: Likewise.
2047         * string/test-mempcpy-ifunc.c: Likewise.
2048         * string/test-memset-ifunc.c: Likewise.
2049         * string/test-rawmemchr-ifunc.c: Likewise.
2050         * string/test-stpcpy-ifunc.c: Likewise.
2051         * string/test-stpncpy-ifunc.c: Likewise.
2052         * string/test-strcasecmp-ifunc.c: Likewise.
2053         * string/test-strcasestr-ifunc.c: Likewise.
2054         * string/test-strcat-ifunc.c: Likewise.
2055         * string/test-strchr-ifunc.c: Likewise.
2056         * string/test-strchrnul-ifunc.c: Likewise.
2057         * string/test-strcmp-ifunc.c: Likewise.
2058         * string/test-strcpy-ifunc.c: Likewise.
2059         * string/test-strcspn-ifunc.c: Likewise.
2060         * string/test-strlen-ifunc.c: Likewise.
2061         * string/test-strncasecmp-ifunc.c: Likewise.
2062         * string/test-strncat-ifunc.c: Likewise.
2063         * string/test-strncmp-ifunc.c: Likewise.
2064         * string/test-strncpy-ifunc.c: Likewise.
2065         * string/test-strnlen-ifunc.c: Likewise.
2066         * string/test-strpbrk-ifunc.c: Likewise.
2067         * string/test-strrchr-ifunc.c: Likewise.
2068         * string/test-strspn-ifunc.c: Likewise.
2069         * string/test-strstr-ifunc.c: Likewise.
2071         * debug/Makefile (tests-ifunc): New variable.
2072         (tests): Add $(tests-ifunc).
2073         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
2074         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
2075         * debug/test-stpcpy_chk-ifunc.c: New file.
2076         * debug/test-strcpy_chk-ifunc.c: Likewise.
2078 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2080         [BZ #13601]
2081         * elf/dl-load.c (open_verify): Retry read if the entire ELF
2082         header is not read in.
2084 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
2086         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
2087         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
2088         directly.  Pass built executable to script as
2089         $(built-program-cmd).
2090         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
2091         $testprogram without using LD_LIBRARY_PATH and $ldso.
2093         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
2094         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
2095         $(rtld-installed-name).
2096         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
2097         (rtld_installed_name): Likewise.
2098         (library_path): Likewise.
2099         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
2100         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
2101         $(run-program-prefix) to tst-tables.sh.
2102         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
2103         it to run tst-table-from and tst-table-to.
2104         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
2105         Pass it to tst-table.sh.
2106         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
2107         $(run-program-prefix) to tst-gettext.sh.
2108         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
2109         tst-translit.sh.
2110         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
2111         tst-gettext2.sh.
2112         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
2113         to run tst-gettext.
2114         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
2115         to run tst-gettext2.
2116         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
2117         to run tst-translit.
2118         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
2119         $(run-program-prefix) to tst-mtrace.sh.
2120         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
2121         to run tst-mtrace.
2122         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
2123         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
2124         $(rtld-installed-name).
2125         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
2126         (rtld_installed_name): Likewise.
2127         (run_program_prefix): New variable.  Use it to run wordexp-test.
2129         * Makeconfig (ARCH): Remove all definitions.
2130         (machine): Likewise.
2131         [ARCH]: Remove conditional code.
2132         [!objdir]: Give error.
2133         [!objdir] (objpfx): Remove.
2134         [!objdir] (common-objpfx): Likewise.
2135         [!objdir] (common-objdir): Likewise.
2136         * configure.in (config_makefile): Remove.  Hardcode Makefile in
2137         AC_CONFIG_FILES call.
2138         * configure: Regenerated.
2140         [BZ #13888]
2141         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
2142         or TMPDIR.
2143         (testout): Likewise.
2145         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
2146         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
2147         $(rtld-installed-name).
2148         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
2149         (rtld_installed_name): Likwise.
2150         (runit): Remove function.
2151         (run_getconf): New variable,  Use it for running getconf binary.
2153 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
2155         [BZ #14716]
2156         * string/test-memmem.c (check_result): New function.
2157         (do_one_test): Use it.
2158         (check1): New function.
2159         (test_main): Use it.
2161 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
2163         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
2165 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
2167         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
2168         (_G_LSEEK64): Likewise.
2169         (_G_MMAP64): Likewise.
2170         (_G_FSTAT64): Likewise.
2171         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
2172         (_G_LSEEK64): Likewise.
2173         (_G_MMAP64): Likewise.
2174         (_G_FSTAT64): Likewise.
2175         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
2176         unconditional.  Call __mmap64 directly.
2177         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
2178         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
2179         __lseek64 directly.
2180         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
2181         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
2182         __mmap64 directly.
2183         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
2184         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2185         __lseek64 directly.
2186         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
2187         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
2188         __lseek64 directly.
2189         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
2190         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
2191         __lseek64 directly.
2192         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
2193         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
2194         __fxstat64 directly.
2195         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
2196         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
2197         unconditional.
2198         (freopen64) [!_G_OPEN64]: Remove conditional code.
2199         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
2200         unconditional.
2201         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
2202         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
2203         unconditional.
2204         (ftello64) [!_G_LSEEK64]: Remove conditional code.
2205         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
2206         unconditional.
2207         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2208         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
2209         unconditional.
2210         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
2211         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
2212         unconditional.
2213         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2214         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
2215         unconditional.
2216         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
2217         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
2218         unconditional.
2219         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
2221 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2223         [BZ #12140]
2224         * manual/memory.texi (Malloc Tunable Parameters): Add note
2225         about free list pointers overwriting some perturb bytes.
2226         Wording suggested by Roland McGrath.
2228 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
2230         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
2231         (lgamma_test): Likewise.
2232         (tgamma_test): Likewise.
2234 2012-10-16  Florian Weimer  <fweimer@redhat.com>
2236         [BZ #14700]
2237         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
2238         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
2240 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2242         * NEWS: Mention BZ #14716.
2243         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
2244         when removing AVAILABLE1_USES_J macro.
2246 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
2248         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
2249         (__bswap_64): __uint64_t for unsigned 64-bit int.
2251 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
2253         * include/string.h (memmem): Declare libc hidden alias.
2254         * string/memmem.c (memmem): Define libc hidden alias.
2255         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
2256         __read, __close instead of open, read, close.
2258 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
2260         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
2261         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
2262         global and hidden.
2263         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
2264         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
2265         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
2266         Likewise.
2267         (__rawmemchr_sse2): Likewise.
2268         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
2269         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
2270         (__strchr_sse2): Likewise.
2271         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
2272         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
2273         (__strcasecmp_sse2): Likewise.
2274         (__strncasecmp_sse2): Likewise.
2275         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
2276         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
2277         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
2278         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
2279         (__strrchr_sse2): Likewise.
2280         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
2281         ifunc-impl-list.c.
2282         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
2283         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
2284         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
2285         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
2286         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
2287         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
2288         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2289         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2290         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
2291         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
2292         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
2293         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
2294         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
2295         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
2296         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
2297         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2298         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
2299         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
2300         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
2301         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
2302         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
2303         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
2304         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
2305         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
2306         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
2307         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2308         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
2309         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
2310         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
2311         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
2313         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
2314         global and hidden.
2315         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
2316         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
2317         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
2318         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
2319         Likewise.
2320         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
2321         Likewise.
2322         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
2323         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
2324         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
2325         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
2326         ifunc-impl-list.c.
2327         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
2328         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
2329         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
2330         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
2331         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
2332         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
2333         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
2334         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
2335         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
2336         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
2337         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
2338         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
2339         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
2340         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
2341         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
2342         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2343         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
2344         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
2345         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
2346         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
2347         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
2348         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
2349         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
2350         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
2351         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2352         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
2353         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
2354         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
2355         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
2356         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
2357         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
2358         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
2359         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
2360         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
2361         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
2362         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
2363         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
2364         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
2365         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
2366         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
2367         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
2369         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
2370         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
2371         * include/ifunc-impl-list.h: New file.
2372         * misc/ifunc-impl-list.c: Likewise.
2373         * misc/Makefile (routines): Add ifunc-impl-list.
2374         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
2375         * string/test-string.h: Include <ifunc-impl-list.h>.
2376         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
2377         impl_array): New variables.
2378         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
2379         are defined.
2380         (test_init): Call __libc_ifunc_impl_list to initialize
2381         func_list if TEST_IFUNC and TEST_NAME are defined.
2383         * string/Makefile (strop-tests): Add bcopy and bzero.
2384         * string/test-bcopy.c: New file.
2385         * string/test-bzero.c: Likewise.
2386         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
2387         defined.
2388         * string/test-memset.c: Support bzero test if TEST_BZERO is
2389         defined.
2390         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
2391         __libc_memmove.
2392         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
2393         __libc_memset.
2394         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
2395         of memset.
2397 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
2399         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
2400         * configure: Regenerated.
2402         * Makeconfig (+link-static-before-libc): Don't include
2403         $(link-static-libc).
2405         * libio/libio.h (_IO_pos_t): Remove.
2407 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2409         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
2410         McGrath.
2412 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2414         * crypt/crypt-entry.c: Include fips-private.h.
2415         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
2416         * crypt/md5c-test.c (main): Tolerate disabled MD5.
2417         * sysdeps/unix/sysv/linux/fips-private.h: New file.
2418         * sysdeps/generic/fips-private.h: New file, dummy fallback.
2420 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
2422         * crypt/crypt-private.h: Include stdbool.h.
2423         (_ufc_setup_salt_r): Return bool.
2424         * crypt/crypt-entry.c: Include errno.h.
2425         (__crypt_r): Return NULL with EINVAL for bad salt.
2426         * crypt/crypt_util.c (bad_for_salt): New.
2427         (_ufc_setup_salt_r): Check that salt is long enough and within
2428         the specified alphabet.
2429         * crypt/badsalttest.c: New file.
2430         * crypt/Makefile (tests): Add it.
2431         ($(objpfx)badsalttest): New.
2433 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
2435         * NEWS: Add entry for BZ #14602.
2437 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2439         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
2440         type-generic.
2441         * math/libm-test.inc: Update comment listing what functions and
2442         macros are tested.
2443         (isgreater_test): New function.
2444         (isgreaterequal_test): Likewise.
2445         (isless_test): Likewise.
2446         (islessequal_test): Likewise.
2447         (islessgreater_test): Likewise.
2448         (isunordered_test): Likewise.
2449         (main): Call the new functions.
2451 2012-10-09  Roland McGrath  <roland@hack.frob.com>
2453         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
2454         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
2455         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
2456         * sysdeps/i386/configure: Regenerated.
2457         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
2458         * sysdeps/mach/configure: Regenerated.
2459         * sysdeps/mach/hurd/configure: Regenerated.
2460         * sysdeps/powerpc/configure: Regenerated.
2461         * sysdeps/powerpc/powerpc32/configure: Regenerated.
2462         * sysdeps/powerpc/powerpc64/configure: Regenerated.
2463         * sysdeps/s390/s390-32/configure: Regenerated.
2464         * sysdeps/s390/s390-64/configure: Regenerated.
2465         * sysdeps/sh/configure: Regenerated.
2466         * sysdeps/sparc/configure: Regenerated.
2467         * sysdeps/unix/sysv/linux/configure: Regenerated.
2468         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
2469         * sysdeps/x86_64/configure: Regenerated.
2471         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
2472         defined.  Don't check if MAP is NULL.
2474 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
2476         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
2477         (_G_stat64): Likewise.
2478         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
2479         (_G_stat64): Likewise.
2480         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
2481         instead of struct _G_stat64.
2482         * libio/fileops.c (mmap_remap_check): Likewise.
2483         (decide_maybe_mmap): Likewise.
2484         (_IO_new_file_seekoff): Likewise.
2485         (_IO_file_stat): Likewise.
2486         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
2487         _G_off64_t.
2488         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
2489         instead of struct _G_stat64.
2490         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2492 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
2494         [BZ #14602]
2495         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2496         Replace with ...
2497         (CHECK_EOL): New macro.
2498         (two_way_short_needle): Check beginning of haystack for EOL.  Use
2499         CHECK_EOL.
2500         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2501         Replace with CHECK_EOL.
2502         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
2503         Replace with CHECK_EOL.
2505 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
2507         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
2508         type-generic.
2509         * math/libm-test.inc: Update comment listing what functions and
2510         macros are tested.
2511         (finite_test): New function.
2512         (isinf_test): Likewise.
2513         (isnan_test): Likewise.
2514         (fpclassify_test): Test subnormal input.
2515         (isfinite_test): Likewise.
2516         (isnormal_test): Likewise.
2517         (main): Call the new functions.
2519 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
2521         [BZ #14660]
2522         * Makerules (%.dynsym): Force C locale when running
2523         $(OBJDUMP) --dynamic-syms.
2525 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
2527         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
2528         <stdint.h>.
2530 2012-10-06  David S. Miller  <davem@davemloft.net>
2532         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
2533         upper 32-bits of the length value in %o2 since we use branch-on-register
2534         tests which consider the entire 64-bit register.
2536 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
2538         * string/test-strstr.c (check2): Add a test for page boundary.
2540 2012-10-05  David S. Miller  <davem@davemloft.net>
2542         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
2543         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
2544         file.
2545         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2546         sysdep_routines.
2547         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2548         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
2549         and bzero when HWCAP_SPARC_CRYPTO is present.
2551 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
2553         [BZ #14602]
2554         * string/test-strstr.c (check2): New function.
2555         (test_main): Call check2.
2557         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
2558         and bug-strchr1.
2559         * string/bug-strcasestr1.c (do_test): Moved to ...
2560         * string/test-strcasestr.c (check1): Here.  New function.
2561         (do_one_test): Break out result checking code into ...
2562         (check_result): This.  New function.
2563         (do_one_test): Call check_result.
2564         (test_main): Call check1.
2565         * string/bug-strchr1.c (do_test): Moved to ...
2566         * string/test-strchr.c (check1): Here.  New function.
2567         (do_one_test): Break out result checking code into ...
2568         (check_result): This.  New function.
2569         (do_one_test): Call check_result.
2570         (test_main): Call check1.
2571         * string/bug-strstr1.c (main): Moved to ...
2572         * string/test-strchr.c (check1): Here.  New function.
2573         (do_one_test): Break out result checking code into ...
2574         (check_result): This.  New function.
2575         (do_one_test): Call check_result.
2576         (test_main): Call check1.
2577         * string/bug-strcasestr1.c: Removed.
2578         * string/bug-strchr1.c: Likewise.
2579         * string/bug-strstr1.c: Likewise.
2581         * elf/Makefile (dl-routines): Add hwcaps.
2582         * elf/dl-support.c (_dl_important_hwcaps): Removed.
2583         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
2584         (_dl_important_hwcaps): Moved to ...
2585         * elf/dl-hwcaps.c: Here.  New file.
2586         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
2588         [BZ #14557]
2589         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
2590         if IS_IN_rtld isn't defined.
2592         * elf/dl-support.c (_dl_sysinfo_map): New.
2593         Include "get-dynamic-info.h" and "setup-vdso.h".
2594         (_dl_non_dynamic_init): Call setup_vdso.
2595         * elf/dynamic-link.h: Don't include <assert.h>.
2596         (elf_get_dynamic_info): Moved to ...
2597         * elf/get-dynamic-info.h: Here.  New file.
2598         * elf/dynamic-link.h: Include "get-dynamic-info.h".
2599         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
2600         * elf/setup-vdso.h: Here.  New file.
2601         * elf/rtld.c: Include "setup-vdso.h".
2602         (dl_main): Call setup_vdso.
2604 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
2606         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
2607         creal in comment listing functions tested.  List finite, isinf,
2608         isnan, isless, islessequal, isgreater, isgreaterequal,
2609         islessgreater, isunordered, lgamma_r and pow10 as functions and
2610         macros not tested.  Mention which functions not tested are aliases
2611         for other functions.  Fix typo.  Note that signs of NaNs are not
2612         tested.
2614         * scripts/config.guess: Update from config.git.
2615         * scripts/config.sub: Likewise.
2617 2012-10-04  Roland McGrath  <roland@hack.frob.com>
2619         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
2620         * misc/madvise.c (madvise): Renamed to __madvise.
2621         Make madvise a weak alias.
2622         * include/sys/mman.h: Declare __madvise.
2623         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
2624         * sysdeps/unix/syscalls.list
2625         (madvise): Make __madvise the strong name, and madvise a weak alias.
2626         * sysdeps/unix/sysv/linux/syscalls.list
2627         (madvise, mmap): Remove redundant entries.
2628         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
2629         * malloc/malloc.c (mtrim): Likewise.
2630         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
2632 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2634         * sysdeps/mach/hurd/dl-cache.c: File removed.
2635         * config.h.in (USE_LDCONFIG): New #undef.
2636         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
2637         * configure: Regenerated.
2638         * elf/Makefile (dl-routines): Add dl-cache only under
2639         [$(use-ldconfig) = yes].
2640         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
2641         cache on [USE_LDCONFIG].
2642         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
2643         [USE_LDCONFIG].
2644         * elf/rtld.c (dl_main): Likewise.
2646 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
2648         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
2649         _SC_LEVEL4_CACHE_LINESIZE.
2651 2012-10-03  Roland McGrath  <roland@hack.frob.com>
2653         * sysdeps/unix/bsd/confstr.h: File removed.
2655 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
2657         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
2658         sys/sdt-config.h.
2660 2012-10-02  Roland McGrath  <roland@hack.frob.com>
2662         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
2663         Make 'mapoff' field ElfW(Off) rather than off_t.
2665 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
2667         * nscd/Makefile: Remove nscd-cflags and all its users.
2668         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
2669         (CFLAGS-nonlib): Add compiler flags for nscd modules.
2671         [BZ #10631]
2672         * malloc.c (malloc_printerr): Clarify error message.
2674 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
2676         [BZ #14648]
2677         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
2678         Set bit_FMA_Usable if FMA is supported.
2679         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
2680         macro.
2681         (bit_FMA4_Usable): Updated.
2682         (index_FMA_Usable): New macro.
2683         (CPUID_FMA): Likewise
2684         (HAS_FMA): Defined with bit_FMA_Usable.
2686 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2688         * bits/types.h (__swblk_t): Type removed.
2689         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
2690         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
2691         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2692         (__SWBLK_T_TYPE): Likewise.
2693         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
2694         (__SWBLK_T_TYPE): Likewise.
2695         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2696         (__SWBLK_T_TYPE): Likewise.
2697         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2698         (__SWBLK_T_TYPE): Likewise.
2700 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
2701             Honza Horak <hhorak@redhat.com>
2703         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
2704         (xdr_mapname): Use YPMAXMAP as maxsize.
2705         (xdr_peername): Use YPMAXPEER as maxsize.
2706         (xdr_keydat): Use YPAXRECORD as maxsize.
2707         (xdr_valdat): Use YPMAXRECORD as maxsize.
2709 2012-10-01  Roland McGrath  <roland@hack.frob.com>
2711         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
2713         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
2714         * csu/init-first.c: ... here.
2715         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
2716         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
2717         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
2718         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
2719         * sysdeps/i386/init-first.c: File removed.
2720         * sysdeps/sh/init-first.c: File removed.
2722 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
2724         [BZ #14645]
2725         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
2726         if x * y might underflow to zero and z is zero.
2727         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
2728         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2729         * math/libm-test.inc (min_subnorm_value): New variable.
2730         (fma_test): Add more tests.
2731         (fma_test_towardzero): Likewise.
2732         (fma_test_downward): Likewise
2733         (fma_test_upward): Likewise.
2734         (initialize): Set min_subnorm_value.
2736 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
2738         [BZ #14638]
2739         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
2740         0 + 0.
2741         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
2742         mode for addition resulting in exact zero.
2743         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
2744         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
2745         exact 0 + 0.
2746         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
2747         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
2748         * math/libm-test.inc (fma_test): Add more tests.
2749         (fma_test_towardzero): New function.
2750         (fma_test_downward): Likewise.
2751         (fma_test_upward): Likewise.
2752         (main): Call the new functions.
2754 2012-09-28  David S. Miller  <davem@davemloft.net>
2756         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
2758 2012-09-28  Roland McGrath  <roland@hack.frob.com>
2760         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
2761         instead of SIGALRM.
2763         * sysdeps/gnu/_G_config.h: Moved to ...
2764         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
2765         * sysdeps/mach/hurd/_G_config.h: Moved to ...
2766         * sysdeps/generic/_G_config.h: ... here.
2768         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
2770         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
2772         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
2773         Conditionalize target on [libnss_test1.so-version].
2775         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
2777         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
2778         (elfobjdir): Move out of conditionals.
2780         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
2781         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
2782         (__nss_lookup_function): Conditionalize label remove_from_tree on
2783         [!DO_STATIC_NSS || SHARED], matching its only use.
2785 2012-09-28  David S. Miller  <davem@davemloft.net>
2787         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
2788         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
2789         file.
2790         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
2791         sysdep_routines.
2792         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
2793         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
2794         when HWCAP_SPARC_CRYPTO is present.
2796 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2798         * io/tst-mknodat.c: Create a FIFO instead of a socket.
2800 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
2802         [BZ #6530]
2803         * stdio-common/vfprintf.c (process_string_arg): Revert
2804         2000-07-22 change.
2806 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
2808         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
2809         for testcase.
2810         * stdio-common/tst-sprintf.c: Include <locale.h>
2811         (main): Test sprintf's handling of incomplete multibyte
2812         characters.
2814 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
2816         * elf/dl-runtime.c (VERSYMIDX): Removed.
2817         * elf/dl-version.c (VERSYMIDX): Likewise.
2818         * elf/do-rel.h (VERSYMIDX): Likewise.
2819         (VALIDX): Likewise.
2820         * elf/dynamic-link.h (VERSYMIDX): Likewise.
2821         * elf/rtld.c (VALIDX): Likewise.
2822         (ADDRIDX): Likewise.
2823         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
2824         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
2825         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
2826         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
2827         (VALIDX): Likewise.
2828         (ADDRIDX): Likewise.
2830 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2832         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
2834 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
2836         [BZ #11438]
2837         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
2838         to global scope.
2839         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
2840         addresses are in the same scope as 192.0.2/24.
2841         * posix/gai.conf: Document new scope table defaults.
2843 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2845         [BZ #5298]
2846         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
2847         for ftell.  Compute offsets from write pointers instead.
2848         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
2850 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2852         [BZ #14543]
2853         * libio/Makefile (tests): New test case tst-fseek.
2854         * libio/tst-fseek.c: New test case to verify that fseek/ftell
2855         combination works in wide mode.
2856         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
2857         state when the external buffer state changes.
2859 2012-09-27  David S. Miller  <davem@davemloft.net>
2861         [BZ #14376]
2862         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
2863         pass reloc->r_addend in as the 'high' argument to
2864         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
2866         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2868 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
2870         * rt/tst-aio2.c: Include <pthread.h>.
2871         * rt/tst-aio3.c: Likewise.
2873 2012-09-27  Steve Ellcey  <sellcey@mips.com>
2875         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
2877 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
2879         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
2880         contents on [SHARED].
2882 2012-09-26  Marek Polacek  <polacek@redhat.com>
2884         [BZ #14530]
2885         [BZ #13741]
2886         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
2887         for C++ and GCC <4.3 as well as for non GCC compilers.
2889 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
2891         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2893 2012-09-25  Roland McGrath  <roland@hack.frob.com>
2895         * Makefile.in (all, install): Declare with .PHONY.
2896         Reported by Michael Hope <michael.hope@linaro.org>.
2898 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2900         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
2901         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
2902         system header.
2903         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
2904         Likewise.
2905         (sydep_routines): Add the new and the internal functions.
2906         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
2907         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
2908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
2909         (GLIBC_2.17): Add the new function.
2910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2911         (GLIBC_2.17): Likewise.
2912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
2913         (GLIBC_2.17): Likewise.
2914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
2915         (GLIBC_2.17): Likewise.
2916         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
2918 2012-09-25  Alan Modra  <amodra@gmail.com>
2920         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
2921         Add release barrier before setting once_control to say
2922         initialisation is done.  Add hints on lwarx.  Use macro in
2923         place of isync.
2924         (clear_once_control): Add release barrier.
2926 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2928         [BZ #13629]
2929         * math/s_clog.c (__clog): Handle more values close to |z| = 1
2930         specially.
2931         * math/s_clog10.c (__clog10): Likewise.
2932         * math/s_clog10f.c (__clog10f): Likewise.
2933         * math/s_clog10l.c (__clog10l): Likewise.
2934         * math/s_clogf.c (__clogf): Likewise.
2935         * math/s_clogl.c (__clogl): Likewise.
2936         * math/Makefile (libm-calls): Add x2y2m1.
2937         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
2938         (__x2y2m1): Likewise.
2939         (__x2y2m1l): Likewise.
2940         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
2941         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
2942         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
2943         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2944         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
2945         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
2946         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
2947         * sysdeps/i386/fpu/libm-test-ulps: Update.
2948         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2950         [BZ #14621]
2951         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
2952         int as type of variable DEPTH.
2953         (glob): Use size_t instead of int as type of variables NEWCOUNT
2954         and OLD_PATHC.
2956 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2958         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
2959         Add s_sincosf-sse2.
2960         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
2961         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
2962         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
2963         macros for using routine as __sincosf_ia32.
2964         Use macro for function declaration and weak_alias.
2965         * sysdeps/i386/fpu/libm-test-ulps: Update.
2967         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
2968         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2970         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
2971         subnormal argument.
2972         * math/s_cexpf.c (__cexpf): Likewise.
2973         * math/s_csinf.c (__csinf): Likewise.
2974         * math/s_csinhf.c (__csinhf): Likewise.
2975         * math/s_ctanf.c (__ctanf): Likewise.
2976         * math/s_ctanhf.c (__ctanhf): Likewise.
2977         * math/s_ccosh.c (__ccoshf): Likewise.
2978         * math/s_cexp.c (__cexpl): Likewise.
2979         * math/s_csin.c (__csin): Likewise.
2980         * math/s_csinh.c (__csinh): Likewise.
2981         * math/s_ctan.c (__ctan): Likewise.
2982         * math/s_ctanh.c (ctanh): Likewise.
2983         * math/s_ccoshl.c (__ccoshl): Likewise.
2984         * math/s_cexpl.c (__cexpl): Likewise.
2985         * math/s_csinl.c (__csinl): Likewise.
2986         * math/s_csinhl.c (__csinhl): Likewise.
2987         * math/s_ctanl.c (__ctanl): Likewise.
2988         * math/s_ctanhl.c (__ctanhl): Likewise.
2990 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
2992         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
2993         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
2994         (_IO_off_t): Define to __off_t, not _G_off_t.
2995         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
2996         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
2997         (_IO_wint_t): Define to wint_t, not _G_wint_t.
2998         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
2999         type of __dummy and __dummy2 fields.
3000         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
3001         (_G_ssize_t): Likewise.
3002         (_G_off_t): Likewise.
3003         (_G_pid_t): Likewise.
3004         (_G_uid_t): Likewise.
3005         (_G_wchar_t): Likewise.
3006         (_G_wint_t): Likewise.
3007         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
3008         (_G_ssize_t): Likewise.
3009         (_G_off_t): Likewise.
3010         (_G_pid_t): Likewise.
3011         (_G_uid_t): Likewise.
3012         (_G_wchar_t): Likewise.
3013         (_G_wint_t): Likewise.
3014         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
3015         (_G_ssize_t): Likewise.
3016         (_G_off_t): Likewise.
3017         (_G_pid_t): Likewise.
3018         (_G_uid_t): Likewise.
3019         (_G_wchar_t): Likewise.
3020         (_G_wint_t): Likewise.
3022 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3024         * malloc/arena.c: Include malloc-sysdep.h.
3025         (shrink_heap): Use check_may_shrink_heap to decide if madvise
3026         is sufficient to shrink the heap or an unmap is needed.
3027         * sysdeps/generic/malloc-sysdep.h: New file.  Define
3028         new function check_may_shrink_heap.
3029         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
3030         new function check_may_shrink_heap.
3032 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3034         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
3035         comments.
3037 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
3039         * catgets/test-gencat.sh: Add "set -e".
3040         * elf/tst-pathopt.sh: Likewise.
3041         * grp/tst_fgetgrent.sh: Likewise.
3042         * iconvdata/run-iconv-test.sh: Likewise.
3043         * intl/tst-gettext.sh: Likewise.
3044         * intl/tst-gettext2.sh: Likewise.
3045         * intl/tst-gettext4.sh: Likewise.
3046         * intl/tst-gettext6.sh: Likewise.
3047         * intl/tst-translit.sh: Likewise.
3048         * io/ftwtest-sh: Likewise.
3049         * libio/test-freopen.sh: Likewise.
3050         * malloc/tst-mtrace.sh: Likewise.
3051         * posix/globtest.sh: Likewise.
3052         * posix/tst-getconf.sh: Likewise.
3053         * posix/wordexp-tst.sh: Likewise.
3054         * stdio-common/tst-printf.sh: Likewise.
3055         * stdio-common/tst-unbputc.sh: Likewise.
3056         * stdlib/tst-fmtmsg.sh: Likewise.
3057         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3058         * catgets/Makefile: Do not specify -e option when running
3059         testsuite shell scripts.
3060         * elf/Makefile: Likewise.
3061         * grp/Makefile: Likewise.
3062         * iconvdata/Makefile: Likewise.
3063         * intl/Makefile: Likewise.
3064         * io/Makefile: Likewise.
3065         * libio/Makefile: Likewise.
3066         * malloc/Makefile: Likewise.
3067         * posix/Makefile: Likewise.
3068         * stdio-common/Makefile: Likewise.
3069         * stdlib/Makefile: Likewise.
3070         * sysdeps/x86_64/Makefile: Likewise.
3072         * io/ftwtest-sh: Add copyright header.
3073         * posix/globtest.sh: Likewise.
3074         * posix/tst-getconf.sh: Likewise.
3075         * posix/wordexp-tst.sh: Likewise.
3076         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
3078 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
3080         [BZ #13679]
3081         * Makeconfig (+link): Defined as $(+link-static) if
3082         $(build-shared) isn't yes.
3083         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
3084         isn't yes.
3085         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
3087         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
3089         [BZ #14562]
3090         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
3091         new chunk size with MALLOC_ALIGN_MASK.
3093 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
3095         [BZ #5044]
3096         * stdio-common/printf_fphex.c: Include <stdbool.h> and
3097         <rounding-mode.h>.
3098         (__printf_fphex): Determine rounding using get_rounding_mode and
3099         round_away.
3100         * stdio-common/tst-printf-round.c (struct hex_test): New
3101         structure.
3102         (hex_tests): New variable.
3103         (test_hex_in_one_mode): New function.
3104         (do_test): Also run tests for hex float output.
3106 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
3108         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3109         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3110         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
3111         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
3112         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
3113         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
3114         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3115         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
3117 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
3119         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
3120         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
3121         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
3122         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
3124 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
3126         [BZ #14579]
3127         * elf/rtld.c (dl_main): Limit the check for self loading to normal
3128         mode only.
3129         * elf/tst-rtld-load-self.sh: New test.
3130         * elf/Makefile: Run it.
3132 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
3134         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
3135         (tst-writev-ENV): Remove.
3136         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
3138 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
3140         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
3142 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
3144         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
3145         unconditional.
3146         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
3147         Likewise.
3148         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
3149         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
3150         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
3151         Likewise.
3153 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3155         [BZ #14587]
3156         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
3157         * config.make.in (have-cpp-asm-debuginfo): Removed.
3158         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
3159         * configure: Regenerated.
3161 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
3163         [BZ #5044]
3164         * stdio-common/printf_fp.c: Include <stdbool.h> and
3165         <rounding-mode.h>.
3166         (___printf_fp): Determine rounding using get_rounding_mode and
3167         round_away.
3168         * stdio-common/tst-printf-round.c: New file.
3169         * stdio-common/Makefile (tests): Add tst-printf-round.
3170         (link-libm): New variable.
3171         ($(objpfx)tst-printf-round): Depend in $(link-libm).
3173 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3175         [BZ #14576]
3176         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
3177         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
3178         Likewise.
3179         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
3180         Likewise.
3182 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
3184         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
3185         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3186         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3187         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
3189 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
3191         [BZ #14518]
3192         * include/rounding-mode.h: New file.
3193         * sysdeps/generic/get-rounding-mode.h: Likewise.
3194         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
3195         * stdlib/strtod_l.c: Include <rounding-mode.h>.
3196         (MAX_VALUE): New macro.
3197         (MIN_VALUE): Likewise.
3198         (overflow_value): New function.
3199         (underflow_value): Likewise.
3200         (round_and_return): Use overflow_value and underflow_value to
3201         determine return values in overflow and underflow cases.  Use
3202         round_away to determine rounding depending on rounding mode.
3203         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
3204         determine return values in overflow and underflow cases.
3205         * stdlib/tst-strtod-round.c: Include <fenv.h>.
3206         (struct test_results): New structure.
3207         (struct test): Use struct test_results to store expected results
3208         for all rounding modes.
3209         (TEST): Include expected results for all rounding modes.
3210         (test_in_one_mode): New function.
3211         (do_test): Use test_in_one_mode to compute and check results.
3212         Check results for all rounding modes.
3213         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
3214         $(link-libm).
3216 2012-12-09  Allan McRae  <allan@archlinux.org>
3218         * sysdeps/i386/fpu/libm-test-ulps: Update
3220 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
3222         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
3223         (_G_int32_t): Likewise.
3224         (_G_uint16_t): Likewise.
3225         (_G_uint32_t): Likewise.
3226         (_G_HAVE_BOOL): Likewise.
3227         (_G_HAVE_ATEXIT): Likewise.
3228         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3229         (_G_HAVE_IO_FILE_OPEN): Likewise.
3230         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
3231         (_G_int32_t): Likewise.
3232         (_G_uint16_t): Likewise.
3233         (_G_uint32_t): Likewise.
3234         (_G_HAVE_BOOL): Likewise.
3235         (_G_HAVE_ATEXIT): Likewise.
3236         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3237         (_G_HAVE_IO_FILE_OPEN): Likewise.
3238         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
3239         (_G_int32_t): Likewise.
3240         (_G_uint16_t): Likewise.
3241         (_G_uint32_t): Likewise.
3242         (_G_HAVE_BOOL): Likewise.
3243         (_G_HAVE_ATEXIT): Likewise.
3244         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
3245         (_G_HAVE_IO_FILE_OPEN): Likewise.
3247 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
3249         * csu/libc-tls.c: Update copyright years.
3251 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
3253         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
3254         [!_G_USING_THUNKS]: Remove conditional code.
3255         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
3256         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
3258         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
3259         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
3260         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3261         (_G_VTABLE_LABEL_PREFIX): Likewise.
3262         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3263         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3264         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3265         (_G_VTABLE_LABEL_PREFIX): Likewise.
3266         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3267         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
3268         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
3269         (_G_VTABLE_LABEL_PREFIX): Likewise.
3270         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
3272 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3274         * libio/Makefile: Include ../Makeconfig before tests.
3275         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
3276         only if $(build-shared) is yes.
3278         * iconv/gconv_db.c: Update copyright years.
3280 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3282         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
3283         unwind info if defined PIC. Fix special cases description.
3284         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
3286         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
3287         DP_HI_MASK entry.
3288         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
3290 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3292         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
3294         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
3295         is NULL.
3297         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
3298         (LDLIBS-tst-chk4): This.
3299         (LDFLAGS-tst-chk5): Renamed to ...
3300         (LDLIBS-tst-chk5): This.
3301         (LDFLAGS-tst-chk6): Renamed to ...
3302         (LDLIBS-tst-chk6): This.
3303         (LDFLAGS-tst-lfschk4): Renamed to ...
3304         (LDLIBS-tst-lfschk4): This.
3305         (LDFLAGS-tst-lfschk5): Renamed to ...
3306         (LDLIBS-tst-lfschk5): This.
3307         (LDFLAGS-tst-lfschk6): Renamed to ...
3308         (LDLIBS-tst-lfschk6): This.
3310         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
3311         on $(common-objpfx)soversions.mk.
3313 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
3315         [BZ #10014]
3316         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
3317         example host name.
3319 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
3321         * malloc/arena.c (arena_get_retry): New function that gets
3322         another arena for the caller to try its request on.
3323         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
3324         current arena cannot fulfill the request.
3325         (__libc_memalign): Likewise.
3326         (__libc_memalign): Likewise.
3327         (__libc_pvalloc): Likewise.
3328         (__libc_calloc): Likewise.
3330 2012-09-05  John Tobey  <john.tobey@gmail.com>
3332         [BZ #13542]
3333         * manual/arith.texi (Operations on Complex): Fix description
3334         of carg branch cut.
3336 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3338         [BZ #10014]
3339         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
3340         host name.
3342         [BZ #10038]
3343         * manual/memory.texi (Memory): Make order of menu items match
3344         order of sections.
3346 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3348         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
3349         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
3350         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
3352 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3354         * csu/libc-tls.c (static_dtv): Renamed to ...
3355         (_dl_static_dtv): This.  Make it global.
3356         (_dl_initial_dtv): Removed.
3357         (__libc_setup_tls): Updated.
3358         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
3359         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
3360         DL_INITIAL_DTV.
3362 2012-09-06  Petr Machata  <pmachata@redhat.com>
3364         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
3365         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
3366         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
3367         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
3369 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3371         [BZ #14545]
3372         * csu/libc-tls.c (_dl_initial_dtv): New variable.
3373         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
3374         freeing dtv[-1].
3376 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3378         [BZ #14544]
3379         * Makeconfig (link-static-before-libc): Replace $(+prector)
3380         with $(+prectorT).
3381         (link-static-after-libc): Replace $(+postctor) with
3382         $(+postctorT).
3383         (link-bounded): Replace $(+prector)/$(+postctor) with
3384         $(+prectorT)/$(+postctorT).
3385         (+prectorT): New macro.
3386         (+postctorT): Likewise.
3388 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
3390         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
3391         (round_str): Handle values above the maximum for IBM long double
3392         as inexact.
3393         * stdlib/tst-strtod-round.c (tests): Regenerated.
3395 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3397         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
3398         assembler flag.
3399         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
3400         zarch_nohighgprs around the zarch optimized routines.
3401         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
3402         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
3403         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
3404         for zarch.
3406 2012-09-05  David S. Miller  <davem@davemloft.net>
3408         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3410         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
3411         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
3412         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
3413         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
3414         entries.
3416 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3418         * malloc/arena.c: Fold copyright years.
3419         * malloc/mcheck.c, malloc/memusage.c: Likewise.
3421 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3423         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
3425 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3427         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
3429 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3431         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
3432         change internal state upon failure.
3434 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
3436         * malloc/mcheck.c (mcheck_check_all): Fix typo.
3437         * malloc/memusage.c (mmap): Likewise.
3438         (mmap64, mremap): Likewise.  Adjust name in comment.
3440 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3442         * libio/fileops.c: Fix typos in comments.
3443         * libio/oldfileops.c: Likewise.
3444         * libio/wfileops.c: Likewise.
3446 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3448         [BZ #1349]
3449         * malloc/Makefile (tests): Add tst-malloc-usable test case.
3450         (tst-malloc-usable-ENV): Set environment for test case.
3451         * malloc/hooks.c (malloc_check_get_size): New function to get
3452         requested size.
3453         * malloc/malloc.c (musable): Use malloc_check_get_size.
3454         * malloc/tst-malloc-usable.c: New test case.
3456 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3458         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
3460 2012-09-05  Allan McRae  <allan@archlinux.org>
3462         [BZ #13966]
3463         * configure.in (CXX_SYSINCLUDES): Use compiler output to
3464         determine header location.
3465         * configure: Regenerated.
3467 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
3469         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
3470         float format.
3471         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
3472         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
3473         format.
3474         (test): Regenerate.
3476 2012-09-04  David S. Miller  <davem@davemloft.net>
3478         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
3479         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
3480         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
3482 2012-09-04  Florian Weimer  <fweimer@redhat.com>
3484         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
3485         failures.
3487         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
3489 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
3491         [BZ #9914]
3492         * libio/iogetdelim.c: Include <limits.h>.
3493         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
3494         + len + 1 would overflow.
3496 2012-09-03  Andreas Jaeger  <aj@suse.de>
3498         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3499         * sysdeps/i386/fpu/libm-test-ulps: Update.
3501 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
3503         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
3504         Add s_sinf-sse2, s_conf-sse2.
3506         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
3507         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
3508         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
3509         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
3511         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
3512         for using routine as __sinf_ia32.
3513         Use macro for function declaration and weak_alias.
3514         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
3515         for using routine as __cosf_ia32.
3516         Use macro for function declaration and weak_alias.
3518         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
3519         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
3521         * sysdeps/x86_64/fpu/s_sinf.S: New file.
3522         * sysdeps/x86_64/fpu/s_cosf.S: New file.
3523         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3525         * math/libm-test.inc (cos_test): Add more test cases.
3526         (sin_test): Likewise.
3527         (sincos_test): Likewise.
3529 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3531         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
3532         (IFUNC_RESOLVE): Make pointers to the specialized implementations
3533         hidden.
3534         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
3536 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
3538         [BZ #14538]
3539         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
3540         first element of the GOT.
3541         (elf_machine_load_address): Return the difference between
3542         the runtime address of _DYNAMIC and elf_machine_dynamic ().
3544 2012-09-01  Allan McRae  <allan@archlinux.org>
3546         [BZ #13412]
3547         * configure.in (AWK): Require gawk version 3.0 or later.
3548         * configure: Regenerated.
3550 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
3552         * sysdeps/unix/sysv/linux/kernel-features.h
3553         (__ASSUME_POSIX_CPU_TIMERS): Remove.
3554         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3555         [__NR_clock_getres]: Make code unconditional.
3556         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
3557         (clock_getcpuclockid): Remove code left unreachable by removal of
3558         conditionals.
3559         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
3560         code unconditional.
3561         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3562         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3563         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
3564         Make code unconditional.
3565         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
3566         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3567         * sysdeps/unix/sysv/linux/clock_settime.c
3568         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
3569         conditional code.
3570         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
3571         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
3573 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
3575         [BZ #14476]
3576         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
3577         scripts/test-installation.pl.
3579         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
3580         and $ld_so_version if it is set.
3582 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3584         [BZ #14516]
3585         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
3586         failure if reading from procfs failed.
3587         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
3589 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3591         * sysdeps/unix/sysv/linux/kernel-features.h
3592         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
3593         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3594         Remove conditional code.
3595         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3596         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
3597         Remove conditional code.
3598         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3599         * sysdeps/unix/sysv/linux/i386/fxstat.c
3600         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3601         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3602         * sysdeps/unix/sysv/linux/i386/fxstatat.c
3603         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3604         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3605         * sysdeps/unix/sysv/linux/i386/lxstat.c
3606         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
3607         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3608         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
3609         Remove conditional code.
3610         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3611         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
3612         Remove conditional code.
3613         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3614         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
3615         <kernel-features.h>.
3616         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
3617         Remove.
3618         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
3619         Remove conditional code.
3620         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
3621         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
3622         Remove conditional.
3624 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
3626         [BZ #5400]
3627         * NEWS: Add fixed bug number.
3629 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
3631         [BZ #14519]
3632         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
3633         underflowing exponent in case of negative sign.
3634         * stdlib/tst-strtod-round-data: Add more tests.
3635         * stdlib/tst-strtod-round.c (tests): Regenerated.
3637         [BZ #3479]
3638         * stdlib/strtod_l.c (NDIG): Remove.
3639         (HEXNDIG): Likewise.
3640         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
3641         smallest representable value.
3642         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
3643         lie within an exact representation of 1/2 ulp of the result.
3644         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
3645         unconditionally.
3646         (TENS_P9_IDX): Define unconditionally.
3647         (TENS_P9_SIZE): Likewise.
3648         (TENS_P10_IDX): Likewise.
3649         (TENS_P10_SIZE): Likewise.
3650         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
3651         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
3652         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
3653         entries for 10^2^13 and 10^2^14.
3654         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
3655         (TENS_P13_IDX): Define.
3656         (TENS_P13_SIZE): Likewise.
3657         (TENS_P14_IDX): Likewise.
3658         (TENS_P14_SIZE): Likewise.
3659         (_fpioconst_pow10): Change array size to
3660         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
3661         unconditional.
3662         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
3663         1024]: Add entries for 10^2^13 and 10^2^14.
3664         [LAST_POW10 > _LAST_POW10]: Remove #error.
3665         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
3666         (_fpioconst_pow10): Change array size to
3667         FPIOCONST_POW10_ARRAY_SIZE.
3668         * stdlib/gen-fpioconst.c: New file.
3669         * stdlib/gen-tst-strtod-round.c: Likewise.
3670         * stdlib/tst-strtod-round-data: Likewise.
3671         * stdlib/tst-strtod-round.c: Likewise.
3672         * stdlib/Makefile (tests): Add tst-strtod-round.
3674         [BZ #14459]
3675         * stdlib/strtod_l.c: Include <stdint.h>.
3676         (NDEBUG): Do not define.
3677         (round_and_return): Change EXPONENT parameter to type intmax_t.
3678         Rearrange calculations to avoid internal overflow possibilities.
3679         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
3680         Rearrange calculations to avoid internal overflow possibilities.
3681         Assert that number fits inside MPNSIZE limbs.
3682         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
3683         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
3684         calculations and add assertions to avoid internal overflow
3685         possibilities.  Add casts to avoid signed/unsigned operations.
3686         * stdlib/tst-strtod-overflow.c: New file.
3687         * stdlib/Makefile (tests): Add tst-strtod-overflow.
3689 2012-08-25  Marek Polacek  <polacek@redhat.com>
3691         * time/time.h: Fix some typos in comments.
3693 2012-08-23  Roland McGrath  <roland@hack.frob.com>
3695         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
3696         * posix/tst-rfc3484-2.c: Likewise.
3697         * posix/tst-rfc3484-3.c: Likewise.
3699 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
3701         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
3702         (EF_ARM_ABI_FLOAT_HARD): Likewise.
3704 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
3706         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
3707         #include of fxstatat64.c.
3709 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3711         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
3712         * shadow/getspent_r.c: Likewise.
3713         * shadow/getspnam.c: Likewise.
3714         * shadow/getspnam_r.c: Likewise.
3715         * gshadow/getsgent.c: Likewise.
3716         * gshadow/getsgent_r.c: Likewise.
3717         * gshadow/getsgnam.c: Likewise.
3718         * gshadow/getsgnam_r.c: Likewise.
3719         * inet/getnetbyad.c: Likewise.
3720         * inet/getnetbyad_r.c: Likewise.
3721         * inet/getnetbynm.c: Likewise.
3722         * inet/getnetbynm_r.c: Likewise.
3723         * inet/getnetent.c: Likewise.
3724         * inet/getnetent_r.c: Likewise.
3725         * inet/getproto.c: Likewise.
3726         * inet/getproto_r.c: Likewise.
3727         * inet/getprtent.c: Likewise.
3728         * inet/getprtent_r.c: Likewise.
3729         * inet/getprtname.c: Likewise.
3730         * inet/getprtname_r.c: Likewise.
3731         * inet/getrpcbyname.c: Likewise.
3732         * inet/getrpcbyname_r.c: Likewise.
3733         * inet/getrpcbynumber.c: Likewise.
3734         * inet/getrpcbynumber_r.c: Likewise.
3735         * inet/getrpcent.c: Likewise.
3736         * inet/getrpcent_r.c: Likewise.
3737         * inet/getaliasent.c: Likewise.
3738         * inet/getaliasent_r.c: Likewise.
3739         * inet/getaliasname.c: Likewise.
3740         * inet/getaliasname_r.c: Likewise.
3741         * nscd/getgrgid_r.c: Likewise.
3742         * nscd/getgrnam_r.c: Likewise.
3743         * nscd/gethstbyad_r.c: Likewise.
3744         * nscd/gethstbynm3_r.c: Likewise.
3745         * nscd/getpwnam_r.c: Likewise.
3746         * nscd/getpwuid_r.c: Likewise.
3747         * nscd/getsrvbynm_r.c: Likewise.
3748         * nscd/getsrvbypt_r.c: Likewise.
3749         * nscd/gai.c: Likewise.
3751         * configure.in (build_nscd): New substituted variable, set
3752         by --disable-build-nscd and defaults to $use_nscd.
3753         * configure: Regenerated.
3754         * config.make.in (build-nscd): New substituted variable.
3755         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
3756         Change conditional to require [$(build-nscd) = yes] as well.
3757         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
3759         [BZ# 13696]
3760         * configure.in (use_nscd): New substituted variable, set by
3761         --disable-nscd.  If enabled, define USE_NSCD.
3762         * configure: Regenerated.
3763         * config.h.in: Add USE_NSCD.
3764         * config.make.in (use-nscd): New substituted variable.
3765         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
3766         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
3767         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
3768         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
3769         (CFLAGS-getgrnam_r.c): Likewise.
3770         (CFLAGS-initgroups.c): Likewise.
3771         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
3772         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
3773         Variables removed.
3774         * inet/getnetgrent_r.c
3775         (nscd_setnetgrent): New function, broken out of ...
3776         (setnetgrent): ... here.  Call it.
3777         (innetgr): Conditionalize nscd bits on [USE_NSCD].
3778         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
3779         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
3780         * nscd/Makefile (routines, aux): Move definitions after include of
3781         Makeconfig.  Conditionalize on [$(use-nscd) != no].
3782         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
3783         Conditionalize on [USE_NSCD].
3784         (is_nscd, nscd_init_cb): Likewise.
3785         (nss_load_library): Conditionalize init callback on [USE_NSCD].
3786         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
3787         * nss/nss_db/db-init.c: Likewise.
3788         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
3789         [USE_NSCD].
3790         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
3791         (make_request): Use it.
3792         (cache_valid_p): New function.
3793         (__check_pf): Use it.
3794         * NEWS: Add item for --disable-nscd.
3796 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
3798         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
3799         to support sed >= 4.2.1-20-ga9bf076.
3800         * configure: Regenerated.
3802 2012-08-22  Roland McGrath  <roland@hack.frob.com>
3804         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
3805         Conditionalize whole body on [IREL].
3807 2012-08-22  Jeff Law <law@redhat.com>
3809         [BZ #14505]
3810         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
3811         if the family is PF_UNSPEC.
3813 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
3815         * Makerules (lib-version): Rename from V.
3816         (install-lib-nosubdir): Change V to lib-version.
3818 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
3820         [BZ #14252]
3821         * powerpc32/power6/wcschr.c: New file.
3822         * powerpc32/power6/wcscpy.c: New file.
3823         * powerpc32/power6/wcsrchr.c: New file.
3824         * powerpc64/power6/wcschr.c: New file.
3825         * powerpc64/power6/wcscpy.c: New file.
3826         * powerpc64/power6/wcsrchr.c: New file.
3828 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3830         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
3831         (two_way_short_needle): Use it.
3832         * string/strstr.c (AVAILABLE1_USES_J): Define.
3833         * string/strcasestr.c: Likewise.
3835         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
3836         array references.
3837         * string/strcasestr.c (TOLOWER): Make side-effect safe.
3839         [BZ #11607]
3840         * NEWS: Add an entry.
3841         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
3842         define their defaults.
3843         (two_way_short_needle): Detect end-of-string on-the-fly.
3844         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
3845         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
3846         * string/bug-strcasestr1.c: New test.
3847         * string/Makefile: Run it.
3849 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
3851         [BZ #11607]
3852         * string/str-two-way.h (two_way_short_needle): Optimize matching of
3853         the first character.
3855 2012-08-21  Roland McGrath  <roland@hack.frob.com>
3857         * csu/elf-init.c (__libc_csu_irel): Function removed.
3858         * csu/libc-start.c (apply_irel): New function.
3859         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
3861 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
3863         * sysdeps/unix/sysv/linux/kernel-features.h
3864         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
3865         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
3866         <kernel-features.h>.
3867         [__NR_fadvise64_64]: Make code unconditional.
3868         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
3869         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3870         !__NR_fadvise64_64)]: Likewise.
3871         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
3872         !__NR_fadvise64_64))]: Likewise.
3873         [__NR_fadvise64]: Make code unconditional.
3874         [!__NR_fadvise64]: Remove conditional code.
3875         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
3876         <kernel-features.h>.
3877         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3878         unconditional.
3879         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3880         conditional code.
3881         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
3882         not include <kernel-features.h>.
3883         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3884         unconditional.
3885         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3886         conditional code.
3887         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
3888         include <kernel-features.h>.
3889         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
3890         unconditional.
3891         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
3892         conditional code.
3894 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
3896         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
3897         slight instruction rearrangements per scrollpipe analysis.
3898         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3900 2012-08-20  Roland McGrath  <roland@hack.frob.com>
3902         * manual/syslog.texi (syslog; vsyslog, closelog):
3903         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
3904         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
3906         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
3907         DSOCAPS to match condition on defining it.
3909 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
3911         * sysdeps/unix/sysv/linux/kernel-features.h
3912         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
3913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
3914         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3915         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3916         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
3917         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3918         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
3920         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
3921         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
3923         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
3924         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
3926         * sysdeps/unix/sysv/linux/kernel-features.h
3927         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
3928         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
3929         unconditional.
3930         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3931         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
3932         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3933         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3934         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
3935         Make code unconditional.
3936         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3937         (__mmap64) [!__NR_mmap2]: Likewise.
3938         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
3939         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
3940         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3941         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
3942         [__NR_mmap2]: Make code unconditional.
3943         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
3944         (__mmap64) [!__NR_mmap2]: Likewise.
3946 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3948         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
3950 2012-08-18  Andreas Jaeger  <aj@suse.de>
3952         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
3954 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3956         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
3957         * include/unistd.h (__have_sock_cloexec): Likewise.
3958         (__have_pipe2): Likewise.
3959         (__have_dup3): Likewise.
3961 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
3963         [BZ #9685]
3964         * include/unistd.h (__have_pipe2): Change define into an extern int.
3965         (__have_dup3): Likewise.
3966         * socket/have_sock_cloexec.c: Include fcntl.h.
3967         (__have_pipe2): New variable.
3968         (__have_dup3): Likewise.
3970 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
3972         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
3974 2012-08-17  Marek Polacek  <polacek@redhat.com>
3976         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
3977         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
3979 2012-08-17  Roland McGrath  <roland@hack.frob.com>
3981         * configure.in: Add AC_SUBST for sysheaders.
3982         * configure: Regenerated.
3983         * config.make.in (sysheaders): New substituted variable.
3985         * sysdeps/unix/mkfifo.c: Moved ...
3986         * sysdeps/posix/mkfifo.c: ... here.
3987         * sysdeps/unix/mkfifoat.c: Moved ...
3988         * sysdeps/posix/mkfifoat.c: ... here.
3990         * sysdeps/unix/utime.c: Moved ...
3991         * sysdeps/posix/utime.c: ... here.
3993         * sysdeps/unix/time.c: Moved ...
3994         * sysdeps/posix/time.c: ... here.
3995         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
3996         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
3998         * sysdeps/unix/nice.c: Moved ...
3999         * sysdeps/posix/nice.c: ... here.
4001         * sysdeps/unix/alarm.c: Moved ...
4002         * sysdeps/posix/alarm.c: ... here.
4004         * intl/Makefile ($(codeset_mo)): Depend on the input file.
4006 2012-08-17  Jeff Law <law@redhat.com>
4008         * intl/Makefile (codeset_mo): New variable.
4009         ($(codeset_mo)): New target.
4010         (tst-codeset.out): Depend on that.  Remove explicit rule.
4011         (tst-gettext3.out, tst-gettext5.out): Likewise.
4012         (LOCPATH-ENV, tst-codeset-ENV): New variables.
4013         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
4014         * intl/tst-codeset.sh: Remove.
4015         * intl/tst-gettext3.sh: Likewise.
4016         * intl/tst-gettext5.sh: Likewise.
4018 2012-08-17  Roland McGrath  <roland@hack.frob.com>
4020         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
4021         * sysdeps/unix/syscalls.list: ... here.
4023         * sysdeps/posix/getaddrinfo.c
4024         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
4025         (gaiconf_init, gaiconf_reload): Use them.
4026         [!_STATBUF_ST_NSEC]
4027         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
4028         Define using time_t rather than struct timespec.
4030         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
4031         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
4032         Macros removed.
4033         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
4034         [!NO_THREADS].
4035         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
4036         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
4037         Likewise.
4039         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
4040         __libc_cleanup_push argument.
4042         * bits/param.h: New file.
4043         * misc/sys/param.h: New file.
4044         * include/sys/param.h: New file.
4045         * misc/Makefile (headers): Add bits/param.h.
4046         * sysdeps/generic/sys/param.h: File removed.
4047         * sysdeps/unix/sysv/linux/bits/param.h: New file.
4048         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
4049         * sysdeps/mach/hurd/bits/param.h: New file.
4050         * sysdeps/mach/hurd/sys/param.h: File removed.
4052         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
4053         last change.
4055         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
4056         [_IO_MTSAFE_IO].
4057         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
4058         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
4059         New macros.
4061         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
4062         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
4063         rather than -D_IO_MTSAFE_IO conditionally.
4064         * stdio-common/Makefile (CPPFLAGS): Likewise.
4065         * wcsmbs/Makefile (CPPFLAGS): Likewise.
4066         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
4067         Use $(libio-mtsafe).
4068         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
4069         of -D_IO_MTSAFE_IO.
4070         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
4071         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
4072         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
4073         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
4074         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
4075         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
4076         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
4077         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
4078         (CFLAGS-fread_u_chk.c): Likewise.
4079         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
4080         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
4081         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
4082         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
4083         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
4084         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
4085         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
4086         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
4087         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
4089         * libio/Makefile: Test [$(libc-reentrant) = yes]
4090         instead of [$(filter %REENTRANT, $(defines)) nonempty].
4092         * Makeconfig
4093         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
4094         * sysdeps/pthread/configure: File removed.
4095         * sysdeps/pthread/Makeconfig: New file.
4096         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
4097         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
4099 2012-08-16  Gary Benson  <gbenson@redhat.com>
4101         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
4102         unmapping the first object in a namespace.
4104 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4106         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
4107         (__internal_setnetgrent): ... this.  Add internal_function to
4108         definition.  Add libc_hidden_def.
4109         (setnetgrent): Update caller.
4110         (internal_endnetgrent): Renamed to ...
4111         (__internal_endnetgrent): ... this.  Add internal_function to
4112         definition.  Add libc_hidden_def.
4113         (endnetgrent): Update caller.
4114         (internal_getnetgrent_r): Renamed to ...
4115         (__internal_getnetgrent_r): ... this.  Add internal_function to
4116         definition.  Add libc_hidden_def.
4117         (__getnetgrent_r): Update caller.
4118         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
4120 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4122         * stdlib/longlong.h: Update from GCC.
4124 2012-08-16  Roland McGrath  <roland@hack.frob.com>
4126         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
4127         on _QL, which is set by umul_ppmm but never used.
4128         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
4129         variables, which are set by GMP macros but never used.
4130         * stdio-common/_itowa.c (_itowa): Likewise.
4131         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
4132         * stdlib/mod_1.c (mpn_mod_1): Likewise.
4134 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
4136         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
4137         struct La_sh_regs is not constant.
4138         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
4139         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
4140         and struct La_sparc64_regs are not constant.
4142 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
4144         * sysdeps/unix/sysv/linux/kernel-features.h
4145         (__ASSUME_POSIX_TIMERS): Remove.
4146         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4147         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4148         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
4149         Make code unconditional.
4150         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4151         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
4152         Make code unconditional.
4153         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4154         * sysdeps/unix/sysv/linux/clock_nanosleep.c
4155         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
4156         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4157         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
4158         Make code unconditional.
4159         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
4160         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
4161         (__libc_missing_posix_timers): Remove.
4163 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4165         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
4166         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
4168         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
4170         * elf/dl-sym.c: Include <stdlib.h>.
4172         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
4173         constants, which avoids warnings in 32-bit builds.
4175         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
4176         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
4178         * misc/lseek.c: File moved to ...
4179         * io/lseek.c: ... here.
4181         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
4183         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
4184         shifting LEN more than 31 bits at once.
4186 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4188         [BZ #14195]
4189         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
4190         segmentation fault for a case of two empty input strings.
4191         * string/test-strncasecmp.c (check1): Renamed to...
4192         (bz12205): ...this.
4193         (bz14195): Add new testcase for two empty input strings and N > 0.
4194         (test_main): Call new testcase, adapt for renamed function.
4196 2012-08-15  Andreas Jaeger  <aj@suse.de>
4198         [BZ #14090]
4199         * crypt/md5test2.c: New test, based on test supplied by Serge
4200         Belyshev <belyshev@depni.sinp.msu.ru>.
4201         * crypt/Makefile (xtests): Add md5test-giant..
4202         * crypt/Makefile ($(objpfx)md5test-giant): Add.
4204 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4206         [BZ #14090]
4207         * crypt/md5.c (md5_process_block): Don't assume the buffer
4208         length is less than 2**32.
4209         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
4210         length is less than 2**64.
4212 2012-08-15  Roland McGrath  <roland@hack.frob.com>
4214         * string/str-two-way.h: Include <sys/param.h>.
4215         (MAX): Macro removed.
4217         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
4218         Move #define and #undef of memmove to just before and after
4219         including <string.h>.
4221         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
4222         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
4223         and after including <string.h>.  Move declarations of
4224         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
4225         to before #include "string/memmove.c".
4227         * include/dirent.h: Declare __getdirentries.
4229         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
4230         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
4232 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
4234         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
4235         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
4236         * sysdeps/i386/configure: Regenerated.
4237         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
4238         STABS_CURRENT_FILE, and STABS_FUN.
4239         (END): Remove call to STABS_FUN_END.
4240         (STABS_CURRENT_FILE1): Delete.
4241         (STABS_CURRENT_FILE): Likewise.
4242         (STABS_FUN): Likewise.
4243         (STABS_FUN_END): Likewise.
4244         (STABS_FUN2): Likewise.
4245         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
4246         * sysdeps/x86_64/configure: Regenerated.
4248 2012-08-14  Roland McGrath  <roland@hack.frob.com>
4250         * elf/dl-open.c: Include <atomic.h>.
4251         * elf/dl-lookup.c: Likewise.
4253 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
4255         * sysdeps/unix/sysv/linux/kernel-features.h
4256         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
4257         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
4258         unconditionally.
4259         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
4260         unconditionally.
4261         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
4262         condition on __ASSUME_CLONE_THREAD_FLAGS.
4264 2012-08-14  Andreas Jaeger  <aj@suse.de>
4266         * sysdeps/i386/fpu/libm-test-ulps: Update.
4268 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
4270         * include/atomic.h (atomic_exchange_and_add): Split into ...
4271         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
4272         New atomic macros.
4274 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
4276         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4278 2012-08-13  Jeff Law <law@redhat.com>
4280         * manual/stdio.texi (snprintf): Clarify handling of the trailing
4281         null byte in the output string.
4283 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
4285         * sysdeps/unix/sysv/linux/kernel-features.h
4286         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
4287         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
4288         (__ASSUME_ARG_MAX_STACK_BASED): Define.
4289         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4290         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
4291         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
4292         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
4294 2012-08-09  Jeff Law <law@redhat.com>
4296         [BZ #13939]
4297         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
4298         When avoid_arena is set, don't retry in the that arena.  Pick the
4299         next one, whatever it might be.
4300         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
4301         (arena_lock): Pass in new parameter to arena_get2.
4302         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
4303         arena_get2.
4304         (__libc_malloc): Unify retrying after main arena failure with
4305         __libc_memalign version.
4306         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
4308 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4310         [BZ #14166]
4311         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
4312         to __redirect_strstr.
4313         (__strstr_sse42): Use typeof __redirect_strstr.
4314         (__strstr_ia32): Likewise.
4315         (__libc_strstr): New prototype.
4316         (strstr): Renamed to ...
4317         (__libc_strstr): This.
4318         (strstr): New strong alias of __libc_strstr.
4319         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
4320         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
4321         __redirect_time.
4322         Include <time.h>.
4323         (__libc_time): New prototype.
4324         (time_ifunc): Replace time with __libc_time.
4325         (time): New strong alias and hidden definition of __libc_time.
4326         (__GI_time): Remove strong alias.
4327         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
4328         Include <stddef.h>.
4329         (memmove): Redefined to __redirect_memmove.
4330         (__memmove_sse2): Use typeof __redirect_memmove.
4331         (__memmove_ssse3): Likewise.
4332         (__memmove_ssse3_back): Likewise.
4333         (__libc_memmove): New prototype.
4334         (memmove): Renamed to ...
4335         (__libc_memmove): This.
4336         (memmove): New strong alias of __libc_memmove.
4338 2012-08-08  Mark Salter  <msalter@redhat.com>
4340         * elf/elf.h
4341         (R_MN10300_TLS_GD): Define.
4342         (R_MN10300_TLS_LD): Likewise.
4343         (R_MN10300_TLS_LDO): Likewise.
4344         (R_MN10300_TLS_GOTIE): Likewise.
4345         (R_MN10300_TLS_IE): Likewise.
4346         (R_MN10300_TLS_LE): Likewise.
4347         (R_MN10300_TLS_DTPMOD): Likewise.
4348         (R_MN10300_TLS_DTPOFF): Likewise.
4349         (R_MN10300_TLS_TPOFF): Likewise.
4350         (R_MN10300_SYM_DIFF): Likewise.
4351         (R_MN10300_ALIGN): Likewise.
4352         (R_MN10300_NUM): Update.
4354 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
4356         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
4357         Remove.
4359 2012-08-08  Roland McGrath  <roland@hack.frob.com>
4361         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
4363         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
4364         sysdeps/unix -> sysdeps/posix move.
4365         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
4367 2012-08-07      Allan McRae     <allan@archlinux.org>
4369         [BZ #14303]
4370         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
4371         (SUNOS_CPP): Likewise.
4372         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
4373         not found.
4374         (open_input): Call CPP using execvp.
4376 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4378         * sysdeps/unix/sysv/linux/kernel-features.h
4379         (__ASSUME_PROT_GROWSUPDOWN): Remove.
4380         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4381         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4382         (__ASSUME_WAITID_SYSCALL): Likewise.
4383         * sysdeps/unix/sysv/linux/dl-execstack.c
4384         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
4385         code unconditional.
4386         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
4387         conditional code.
4388         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
4389         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
4390         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
4391         code.
4392         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
4393         unconditional.
4394         [__ASSUME_WAITID_SYSCALL]: Likewise.
4395         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
4397 2012-08-07  Roland McGrath  <roland@hack.frob.com>
4399         * sysdeps/unix/closedir.c: Renamed to ...
4400         * sysdeps/posix/closedir.c: ... here.
4401         * sysdeps/unix/dirfd.c: Renamed to ...
4402         * sysdeps/posix/dirfd.c: ... here.
4403         * sysdeps/unix/dirstream.h: Renamed to ...
4404         * sysdeps/posix/dirstream.h: ... here.
4405         * sysdeps/unix/fdopendir.c: Renamed to ...
4406         * sysdeps/posix/fdopendir.c: ... here.
4407         * sysdeps/unix/opendir.c: Renamed to ...
4408         * sysdeps/posix/opendir.c: ... here.
4409         * sysdeps/unix/readdir.c: Renamed to ...
4410         * sysdeps/posix/readdir.c: ... here.
4411         * sysdeps/unix/readdir_r.c: Renamed to ...
4412         * sysdeps/posix/readdir_r.c: ... here.
4413         * sysdeps/unix/rewinddir.c: Renamed to ...
4414         * sysdeps/posix/rewinddir.c: ... here.
4415         * sysdeps/unix/seekdir.c: Renamed to ...
4416         * sysdeps/posix/seekdir.c: ... here.
4417         * sysdeps/unix/telldir.c: Renamed to ...
4418         * sysdeps/posix/telldir.c: ... here.
4419         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
4420         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
4421         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
4422         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
4424         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
4425         * bits/fcntl.h: ... here.
4427         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
4428         not 0.
4429         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
4430         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
4431         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
4432         (struct flock): Move l_start, l_len to the beginning.
4433         Use __pid_t for l_pid.
4434         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
4435         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
4436         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
4437         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
4438         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
4439         [__USE_LARGEFILE64] (struct flock64): New type.
4440         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
4442         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
4443         * bits/dirent.h: ... here.
4445         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
4446         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
4448 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
4450         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4451         Change from 2.6.0 to 2.6.16.
4452         * sysdeps/unix/sysv/linux/configure: Regenerated.
4453         * sysdeps/unix/sysv/linux/kernel-features.h
4454         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
4455         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
4456         version.
4457         (__ASSUME_UTIMES): Likewise.
4458         (__ASSUME_CLONE_STOPPED): Remove.
4459         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
4460         architectures, not kernel version.
4461         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
4462         (__ASSUME_NO_CLONE_DETACHED): Likewise.
4463         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
4464         (__ASSUME_WAITID_SYSCALL): Likewise.
4465         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
4466         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
4467         * README: State 2.6.16 as minimum Linux kernel version.  Do not
4468         refer to older versions.
4470 2012-08-06  Roland McGrath  <roland@hack.frob.com>
4472         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
4473         Define alphasort64 as an alias.
4474         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
4475         Define versionsort64 as an alias.
4476         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
4477         Define scandir64 as an alias.
4478         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
4479         Define scandirat64 as an alias.
4480         * dirent/alphasort64.c (alphasort64):
4481         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
4482         * dirent/versionsort64.c: Likewise.
4483         * dirent/scandir64.c: Likewise.
4484         * dirent/scandirat64.c: Likewise.
4485         * sysdeps/wordsize-64/alphasort.c: File removed.
4486         * sysdeps/wordsize-64/alphasort64.c: File removed.
4487         * sysdeps/wordsize-64/scandir.c: File removed.
4488         * sysdeps/wordsize-64/scandir64.c: File removed.
4489         * sysdeps/wordsize-64/scandirat.c: File removed.
4490         * sysdeps/wordsize-64/scandirat64.c: File removed.
4491         * sysdeps/wordsize-64/versionsort.c: File removed.
4492         * sysdeps/wordsize-64/versionsort64.c: File removed.
4493         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
4494         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
4495         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
4496         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
4497         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
4498         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
4499         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
4500         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
4502         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
4503         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4504         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
4505         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4506         [defined __arch64__ || defined __sparcv9]
4507         (__INO_T_MATCHES_INO64_T): New macro.
4508         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4509         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
4510         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
4511         * sysdeps/unix/sysv/linux/bits/dirent.h
4512         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
4513         (_DIRENT_MATCHES_DIRENT64): New macro.
4515         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
4516         Define lockf64 as an alias.
4517         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
4518         Define fseeko64 as an alias.
4519         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
4520         Define ftello64 as an alias.
4521         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
4522         Define _IO_fgetpos64 and fgetpos64 as aliases.
4523         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
4524         Define _IO_fsetpos64 and fsetpos64 as aliases.
4525         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
4526         Conditionalize body on this.
4527         * libio/fseeko64.c: Likewise.
4528         * libio/ftello64.c: Likewise.
4529         * libio/iofgetpos64.c: Likewise.
4530         * libio/iofsetpos64.c: Likewise.
4531         * sysdeps/wordsize-64/lockf.c: File removed.
4532         * sysdeps/wordsize-64/lockf64.c: File removed.
4533         * sysdeps/wordsize-64/fseeko.c: File removed.
4534         * sysdeps/wordsize-64/fseeko64.c: File removed.
4535         * sysdeps/wordsize-64/ftello.c: File removed.
4536         * sysdeps/wordsize-64/ftello64.c: File removed.
4537         * sysdeps/wordsize-64/iofgetpos.c: File removed.
4538         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
4539         * sysdeps/wordsize-64/iofsetpos.c: File removed.
4540         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
4541         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
4542         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
4543         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
4544         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
4545         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
4546         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
4547         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
4548         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
4549         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
4550         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
4552         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4553         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
4554         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
4555         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4556         [defined __arch64__ || defined __sparcv9]
4557         (__OFF_T_MATCHES_OFF64_T): New macro.
4558         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
4559         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
4560         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4561         (__OFF_T_MATCHES_OFF64_T): New macro.
4563 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4565         * stdlib/secure-getenv.c (__secure_getenv): Replace
4566         GLIBC_2_16 with GLIBC_2_17.
4568 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
4570         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
4571         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4573 2012-08-03  David S. Miller  <davem@davemloft.net>
4575         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4577 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4579         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
4580         Remove.
4581         (__ASSUME_CORRECT_SI_PID): Likewise.
4582         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
4583         (__ASSUME_TMPFS_NAME): Likewise.
4584         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
4585         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
4586         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
4587         (HAVE_AUX_SECURE): Make definition unconditional.
4588         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
4589         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
4591 2012-08-03  Roland McGrath  <roland@hack.frob.com>
4593         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
4594         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
4595         * sysdeps/mach/hurd/eloop-threshold.h: New file.
4596         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
4597         __eloop_threshold instead of SYMLOOP_MAX.
4599         * sysdeps/generic/eloop-threshold.h: New file.
4600         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
4601         of MAXSYMLINKS.
4602         * elf/chroot_canon.c (chroot_canon): Likewise.
4604 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
4606         [BZ #13717]
4607         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
4608         Change to 2.6.0 everywhere.
4609         * sysdeps/unix/sysv/linux/configure: Regenerated.
4610         * sysdeps/unix/sysv/linux/kernel-features.h
4611         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
4612         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
4613         kernel versions.
4614         (__ASSUME_POSIX_TIMERS): Define unconditionally.
4615         (__ASSUME_FUTEX_REQUEUE): Remove.
4616         (__ASSUME_STATFS64): Define unconditionally.
4617         (__ASSUME_AT_SECURE): Likewise.
4618         (__ASSUME_CORRECT_SI_PID): Likewise.
4619         (__ASSUME_TGKILL): Define without depending on kernel version for
4620         i386.
4621         (__ASSUME_UTIMES): Likewise.
4622         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
4623         kernel version.
4624         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
4625         (__ASSUME_TMPFS_NAME): Likewise.
4626         * README: Update reference to Linux kernel versions.
4628 2012-08-02  Marek Polacek  <polacek@redhat.com>
4630         [BZ# 14150]
4631         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
4632         libc_cv_asm_type_prefix with %.
4633         * configure: Regenerated.
4634         * include/libc-symbols.h: Remove comment about
4635         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4636         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
4637         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
4638         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
4639         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
4640         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
4641         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
4642         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
4643         * elf/tst-unique2mod1.c: Likewise.
4644         * elf/tst-unique1mod2.c: Likewise.
4645         * elf/tst-unique1mod1.c: Likewise.
4646         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
4647         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
4648         Replace ASM_TYPE_DIRECTIVE with .type.
4649         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4650         * sysdeps/i386/sysdep.h: Likewise.
4651         * sysdeps/x86_64/sysdep.h: Likewise.
4652         * sysdeps/sh/sysdep.h: Likewise.
4653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
4654         Do not define ASM_TYPE_DIRECTIVE.
4655         * sysdeps/powerpc/sysdep.h: Likewise.
4656         * sysdeps/powerpc/powerpc32/sysdep.h:
4657         Replace ASM_TYPE_DIRECTIVE with .type.
4658         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
4659         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4660         * sysdeps/i386/fpu/e_powf.S: Likewise.
4661         * sysdeps/i386/fpu/e_expl.S: Likewise.
4662         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4663         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4664         * sysdeps/i386/fpu/e_pow.S: Likewise.
4665         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4666         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4667         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4668         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4669         * sysdeps/i386/fpu/e_log2.S: Likewise.
4670         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4671         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4672         * sysdeps/i386/fpu/e_powl.S: Likewise.
4673         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4674         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4675         * sysdeps/i386/fpu/e_logl.S: Likewise.
4676         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4677         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4678         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4679         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4680         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4681         * sysdeps/i386/fpu/e_log.S: Likewise.
4682         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4683         * sysdeps/i386/fpu/e_logf.S: Likewise.
4684         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4685         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4686         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4687         * sysdeps/i386/fpu/e_log10.S: Likewise.
4688         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4689         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4690         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4691         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4692         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4693         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
4694         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4695         * sysdeps/i386/i686/strtok.S: Likewise.
4696         * sysdeps/i386/i386-mcount.S: Likewise.
4697         * sysdeps/i386/strtok.S: Likewise.
4698         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
4699         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4700         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4701         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4702         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
4703         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4704         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4705         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4706         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4707         * sysdeps/x86_64/_mcount.S: Likewise.
4708         * sysdeps/x86_64/strtok.S: Likewise.
4709         * sysdeps/sh/_mcount.S: Likewise.
4711 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4713         * libio/iofopen.c: Include <fcntl.h>.
4714         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
4715         (_IO_fopen64, fopen64): Define as aliases.
4716         * libio/iofopen64.c: Include <fcntl.h>.
4717         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
4718         Conditionalize body on this.
4719         * sysdeps/wordsize-64/iofopen.c: File removed.
4720         * sysdeps/wordsize-64/iofopen64.c: File removed.
4722 2012-08-01  Marek Polacek  <polacek@redhat.com>
4724         * libc/Makeconfig: Use elf in place of binfmt-subdir.
4725         Use dlfcn directly instead of a variable.
4726         (binfmt-subdir): Do not define.
4727         (dlfcn): Likewise.
4729 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
4731         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
4732         Remove all definitions.
4733         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
4734         <kernel-features.h>.
4735         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4736         (miss_F_GETOWN_EX): Remove all definitions.
4737         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
4738         macro definition.
4739         [!__ASSUME_FCNTL64]: Remove conditional code.
4740         [__ASSUME_FCNTL64]: Make code unconditional.
4741         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
4742         <kernel-features.h>.
4743         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
4744         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
4745         (lockf64) [__NR_fcntl64]: Make code unconditional.
4746         (lockf64) [__ASSUME_FCNTL64]: Likewise.
4748         * sysdeps/unix/sysv/linux/kernel-features.h
4749         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
4750         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
4751         Make code unconditional.
4752         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4753         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4754         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
4755         [__NR_vfork]: Make code unconditional.
4756         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4757         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
4759         [__NR_vfork]: Make code unconditional.
4760         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
4761         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
4763 2012-08-01  Roland McGrath  <roland@hack.frob.com>
4765         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
4766         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
4768         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4769         Define mkstemp64 as an alias.
4770         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4771         Define mkstemps64 as an alias.
4772         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4773         Define mkostemp64 as an alias.
4774         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
4775         Define mkostemps64 as an alias.
4776         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
4777         Conditionalize body on this.
4778         * misc/mkostemp64.c: Likewise.
4779         * misc/mkostemps64.c: Likewise.
4780         * misc/mkstemps64.c: Likewise.
4781         * sysdeps/wordsize-64/mkstemp64.c: File removed.
4782         * sysdeps/wordsize-64/mkostemp64.c: File removed.
4783         * sysdeps/wordsize-64/mkostemp.c: File removed.
4784         * sysdeps/wordsize-64/mkstemp.c: File removed.
4785         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
4786         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
4787         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
4788         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
4790         [BZ #14138]
4791         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
4792         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
4793         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
4794         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
4796         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
4797         compat_symbol macros from <shlib-compat.h> rather than the underlying
4798         default_symbol_version and symbol_version macros, so that DEFAULT
4799         lines in shlib-versions are respected.
4800         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
4802 2012-08-01  Florian Weimer  <fweimer@redhat.com>
4804         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
4805         Declare with warn_unused_result.
4806         (setgid, setregid, setegid, setresgid): Likewise.
4807         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
4808         Likewise.
4809         * WUR-REPORT: Remove set*id functions.
4811 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
4813         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
4815 2012-07-31  Roland McGrath  <roland@hack.frob.com>
4817         * include/sys/socket.h (__libc_accept, __libc_accept4):
4818         Add attribute_hidden.
4819         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
4821         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
4822         use of PTR_MANGLE.
4823         * inet/getnetgrent_r.c (setup): Likewise.
4825         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
4827 2012-07-31  David S. Miller  <davem@davemloft.net>
4829         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4831 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
4833         [BZ #13629]
4834         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
4835         value between 1.0 and 2.0 and smaller part has absolute value less
4836         than 1.0.
4837         * math/s_clog10.c (__clog10): Likewise.
4838         * math/s_clog10f.c (__clog10f): Likewise.
4839         * math/s_clog10l.c (__clog10l): Likewise.
4840         * math/s_clogf.c (__clogf): Likewise.
4841         * math/s_clogl.c (__clogl): Likewise.
4842         * math/libm-test.inc (clog_test): Add more tests.
4843         (clog10_test): Likewise.
4844         * sysdeps/i386/fpu/libm-test-ulps: Update.
4845         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4847 2012-07-31  Florian Weimer  <fweimer@redhat.com>
4849         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
4850         Exit with zero in case no suitable GID is found, and write a
4851         message to standard error.
4853 2012-07-30  Roland McGrath  <roland@hack.frob.com>
4855         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
4856         rather than to 1.
4857         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
4858         (MAXPATHLEN): Removed.
4859         (NOGROUP, NODEV): New macros.
4860         (setbit, clrbit, isset, isclr): New macros.
4861         (howmany, roundup, powerof2): New macros.
4862         (DEV_BSIZE): New macro.
4864         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
4865         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
4867         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
4868         definition on [!__NO_LONG_DOUBLE_MATH].
4870         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
4871         PTR_MANGLE and PTR_DEMANGLE.
4873         * socket/accept4.c (accept4): Rename to __libc_accept4.
4874         Define accept4 as a weak alias.
4876         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
4877         on [_DIRENT_HAVE_D_TYPE].
4878         * io/ftw.c (ftw_dir): Likewise.
4880         * io/xmknod.c (__xmknod): Don't check PATH for being null.
4882         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
4884         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
4885         Use the BSD numbers rather than the arbitrary ones we had.
4886         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
4887         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
4888         (SIGXCPU, SIGXFSZ): New macros.
4889         (_NSIG): Now 32.
4891         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
4892         initializer on [_LIBC_REENTRANT].
4894         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
4895         definitions inside [_POSIX_MAPPED_FILES].
4897         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
4899         * dirent/opendir.c: Include <fcntl.h>.
4901         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
4902         (__libc_getspecific): Likewise.
4903         (__libc_key_create): Likewise.
4905         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
4906         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
4907         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
4908         (tmpfile64): Define as alias.
4909         * sysdeps/wordsize-64/tmpfile.c: File removed.
4910         * sysdeps/wordsize-64/tmpfile64.c: File removed.
4911         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
4912         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
4914         * stdio-common/vfscanf.c: Include <stdbool.h>.
4915         * nss/makedb.c: Likewise.
4916         * stdio-common/_i18n_number.h: Likewise.
4917         * argp/argp-help.c: Likewise.
4918         * posix/wordexp.c: Likewise.
4919         * sysdeps/posix/spawni.c: Likewise.
4920         * nss/nss_files/files-initgroups.c: Likewise.
4921         * stdio-common/reg-modifier.c: Include <stdlib.h>.
4922         * nss/nss_files/files-initgroups.c: Likewise.
4923         * nss/nss_db/db-netgrp.c: Likewise.
4924         * nss/nss_db/db-initgroups.c: Likewise.
4925         * io/fchmodat.c: Include <sys/stat.h>.
4927         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
4928         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
4930         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
4931         [HAVE_MMAP].
4933         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
4934         Add multiple inclusion protection.
4936 2012-07-27  David S. Miller  <davem@davemloft.net>
4938         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4940 2012-07-27  Gary Benson  <gbenson@redhat.com>
4942         [BZ #14298]
4943         * elf/rtld.c: Include <stap-probe.h>.
4944         (dl_main): Added static probes "init_start" and "init_complete".
4945         * elf/dl-load.c: Include <stap-probe.h>.
4946         (lose): Take new parameter "nsid".
4947         Added static probe "map_failed".
4948         (_dl_map_object_from_fd): Pass namespace id to lose.
4949         Added static probe "map_start".
4950         (open_verify): Pass namespace id to lose.
4951         * elf/dl-open.c: Include <stap-probe.h>.
4952         (dl_open_worker) Added static probes "map_complete", "reloc_start"
4953         and "reloc_complete".
4954         * elf/dl-close.c: Include <stap-probe.h>.
4955         (_dl_close_worker): Added static probes "unmap_start" and
4956         "unmap_complete".
4957         * elf/rtld-debugger-interface.txt: New file documenting the above.
4959 2012-07-26  Roland McGrath  <roland@hack.frob.com>
4961         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
4962         rather than a string variable.
4963         * sunrpc/rpc_main.c (h_output): Likewise.
4964         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
4966 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
4968         * inet/check_native.c: New file.
4970 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
4972         [BZ #13629]
4973         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
4974         if larger part has absolute value 1.0.
4975         * math/s_clog10.c (__clog10): Likewise.
4976         * math/s_clog10f.c (__clog10f): Likewise.
4977         * math/s_clog10l.c (__clog10l): Likewise.
4978         * math/s_clogf.c (__clogf): Likewise.
4979         * math/s_clogl.c (__clogl): Likewise.
4980         * math/libm-test.inc (clog_test): Add more tests.
4981         (clog10_test): Likewise.
4982         * sysdeps/i386/fpu/libm-test-ulps: Update.
4983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4985         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
4986         (pltexit): Likewise.
4987         (La_regs): Likewise.
4988         (La_retval): Likewise.
4989         (int_retval): Likewise.
4990         Update #error for removed macros to refer only to definitions in
4991         tst-audit.h.
4992         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
4993         macro.
4994         (pltexit): Likewise.
4995         (La_regs): Likewise.
4996         (La_retval): Likewise.
4997         (int_retval): Likewise.
4998         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
4999         macro.
5000         (pltexit): Likewise.
5001         (La_regs): Likewise.
5002         (La_retval): Likewise.
5003         (int_retval): Likewise.
5004         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
5005         macro.
5006         (pltexit): Likewise.
5007         (La_regs): Likewise.
5008         (La_retval): Likewise.
5009         (int_retval): Likewise.
5010         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
5011         macro.
5012         (pltexit): Likewise.
5013         (La_regs): Likewise.
5014         (La_retval): Likewise.
5015         (int_retval): Likewise.
5016         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
5017         macro.
5018         (pltexit): Likewise.
5019         (La_regs): Likewise.
5020         (La_retval): Likewise.
5021         (int_retval): Likewise.
5022         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
5023         macro.
5024         (pltexit): Likewise.
5025         (La_regs): Likewise.
5026         (La_retval): Likewise.
5027         (int_retval): Likewise.
5028         * sysdeps/generic/tst-audit.h: Update comment to refer only to
5029         macro definitions in tst-audit.h.
5030         * sysdeps/i386/tst-audit.h: New file.
5031         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
5032         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
5033         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
5034         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
5035         * sysdeps/sh/tst-audit.h: Likewise.
5036         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
5037         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
5038         * sysdeps/x86_64/tst-audit.h: Likewise.
5040 2012-07-26  Andreas Jaeger  <aj@suse.de>
5042         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
5043         ptrace.
5045         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
5046         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
5047         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
5048         PTRACE_O_MASK.
5049         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
5050         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
5051         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
5053         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
5054         value.
5056         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
5057         _sigsys.
5058         (si_call_addr, si_syscall, si_arch): Define new macro.
5059         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
5060         _sigsys.
5061         (si_call_addr, si_syscall, si_arch): Define new marcro.
5062         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
5063         _sigsys.
5064         (si_call_addr, si_syscall, si_arch): Define new macro.
5065         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
5066         _sigsys.
5067         (si_call_addr, si_syscall, si_arch): Define new macro.
5069 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5071         [BZ #13717]
5072         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5073         Change to 2.4.21 where previously 2.4.1.
5074         * sysdeps/unix/sysv/linux/configure: Regenerated.
5075         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
5076         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
5077         Linux kernel version.
5078         (__ASSUME_STD_AUXV): Remove.
5079         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
5080         kernel version.
5081         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
5082         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
5083         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
5084         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
5085         (__ASSUME_NETLINK_SUPPORT): Likewise.
5086         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
5087         (__no_netlink_support): Remove conditional definition.
5088         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
5089         Remove.
5090         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5091         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
5092         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
5093         (if_nameindex_ioctl): Remove.
5094         (if_nameindex_netlink): Do not handle __no_netlink_support.
5095         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5096         code.
5097         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
5098         Remove conditional code.
5099         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
5100         code.
5101         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
5102         unconditional.
5103         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
5104         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
5105         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
5106         Remove.
5107         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
5108         [!__ASSUME_STD_AUXV]: Remove conditional code.
5109         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
5110         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
5111         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
5112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
5113         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
5114         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5115         code.
5116         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
5118         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
5119         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5120         conditional code.
5121         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
5122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
5123         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
5124         code.
5125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
5126         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
5127         conditional code.
5128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
5129         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5130         code unconditional.
5131         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5132         conditional code.
5133         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5134         unconditional.
5135         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5136         conditional code.
5137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
5138         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5139         unconditional.
5140         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5141         conditional code.
5142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
5143         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5144         code unconditional.
5145         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5146         conditional code.
5147         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5148         unconditional.
5149         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5150         conditional code.
5151         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
5152         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
5153         code unconditional.
5154         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5155         conditional code.
5156         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
5157         unconditional.
5158         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
5159         conditional code.
5161 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
5163         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
5164         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
5165         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
5166         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
5167         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
5168         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
5169         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
5170         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
5171         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
5172         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
5173         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
5174         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
5175         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
5176         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
5177         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
5178         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
5179         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
5180         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
5181         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
5182         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
5183         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
5184         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
5185         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
5187 2012-07-25  Florian Weimer  <fweimer@redhat.com>
5189         * Versions.def: Add GLIBC_2.17.
5190         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
5191         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
5192         Introduce __libc_secure_getenv.
5193         * stdlib/Versions (2.17): Add secure_getenv
5194         (GLIBC_PRIVATE): Add __libc_secure_getenv.
5195         * stdlib/secure-getenv.c: Rename __secure_getenv to
5196         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
5197         symbol __secure_getenv for GLIBC_2.0.
5198         * stdlib/tst-secure-getenv.c: New.
5199         * stdlib/Makefile (tests): Add testcase.
5200         * manual/startup.texi (Environment Access): Document
5201         secure_getenv.
5202         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
5203         __libc_secure_getenv.
5204         * inet/ruserpass.c (ruserpass): Likewise.
5205         * malloc/mtrace.c (mtrace): Likewise.
5206         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
5207         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
5208         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
5209         * sysdeps/posix/tempname.c: Likewise.  Evaluate
5210         HAVE_SECURE_GETENV.
5211         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
5212         __secure_getenv to __libc_secure_getenv.
5213         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
5214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5215         Likewise.
5216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5217         Likewise.
5218         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
5219         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
5220         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
5221         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
5222         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
5223         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
5224         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
5226 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
5228         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
5229         (struct La_i86_retval): Likewise.
5230         (struct La_x86_64_regs): Likewise.
5231         (struct La_x86_64_retval): Likewise.
5232         (struct La_x32_regs): Likewise.
5233         (struct La_x32_retval): Likewise.
5234         (struct La_ppc32_regs): Likewise.
5235         (struct La_ppc32_retval): Likewise.
5236         (struct La_ppc64_regs): Likewise.
5237         (struct La_ppc64_retval): Likewise.
5238         (struct La_sh_regs): Likewise.
5239         (struct La_sh_retval): Likewise.
5240         (struct La_s390_32_regs): Likewise.
5241         (struct La_s390_32_retval): Likewise.
5242         (struct La_s390_64_regs): Likewise.
5243         (struct La_s390_64_retval): Likewise.
5244         (struct La_sparc32_regs): Likewise.
5245         (struct La_sparc32_retval): Likewise.
5246         (struct La_sparc64_regs): Likewise.
5247         (struct La_sparc64_retval): Likewise.
5248         (struct audit_ifaces): Remove architecture-specific pltenter and
5249         pltexit members.
5250         * sysdeps/i386/ldsodefs.h: New file.
5251         * sysdeps/powerpc/ldsodefs.h: Likewise.
5252         * sysdeps/s390/ldsodefs.h: Likewise.
5253         * sysdeps/sh/ldsodefs.h: Likewise.
5254         * sysdeps/sparc/ldsodefs.h: Likewise.
5255         * sysdeps/x86_64/ldsodefs.h: Likewise.
5257 2012-07-25  Marek Polacek  <polacek@redhat.com>
5259         [BZ #6808]
5260         * math/libm-test.inc (yn_test): Add another test.
5261         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
5262         to ERANGE when the result is +-Inf.
5263         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
5264         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
5265         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
5266         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
5268 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
5270         * conform/data/time.h-data (NULL): Use macro-constant.  Require
5271         equal to 0.
5272         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
5273         clock_t.
5274         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
5276 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
5278         * configure.in <sysdeps resolving>: Correct printing
5279         Implies_before.
5280         * configure: Regenerate.
5282 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
5284         * math/w_ilogb.c: Include <limits.h>.
5285         * math/w_ilogbl.c: Likewise.
5287 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5289         * manual/lang.texi (__va_copy): Document primarily as ISO C99
5290         va_copy.  Document allowing for unavailable va_copy only as
5291         pre-C99 compatibility.
5292         * manual/string.texi (Copying and Concatenation): Use va_copy
5293         instead of __va_copy in concat example.
5295 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
5297         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
5298         (__sendto): Use create_address_port.  Initialize APORT and deallocate
5299         it if not null.
5301         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
5302         with O_NOLINK passed to __file_name_lookup.
5304         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
5305         with O_NOLINK passed to __file_name_lookup.
5307         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
5308         negative N or less than NGIDS.
5310         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
5311         type to string_t.  Set ERANGE as errno and return it if NAME is not big
5312         enough.  Use memcpy instead of strncpy.
5314 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
5316         * elf/Makefile (check-data): Remove.
5317         (localplt.data): New vpath directive.
5318         ($(objpfx)check-localplt.out): Use localplt.data from vpath
5319         instead of $(check-data).
5320         * scripts/data/localplt-generic.data: Move to ...
5321         * sysdeps/generic/localplt.data: ... here.
5322         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
5323         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
5324         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
5325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
5326         ... here.
5327         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
5328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
5329         ... here.
5330         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
5331         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
5332         ... here.
5333         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
5334         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
5335         ... here.
5336         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
5337         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
5338         ... here.
5339         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
5340         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
5341         ... here.
5343 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5345         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
5346         PPC32 and PPC64 files.
5347         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
5348         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
5350 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5352         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
5353         __makecontext_ret to ...
5354         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
5355         ... here and call exit if uc_link is NULL.  New file.
5356         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
5357         __makecontext_ret.S.
5358         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
5359         __makecontext_ret to ...
5360         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
5361         ... here and call exit if uc_link is NULL.  New file.
5362         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
5363         __makecontext_ret.S.
5365 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5367         * elf/elf.h (R_390_IRELATIVE): New definition.
5368         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
5369         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
5370         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
5371         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
5372         (elf_machine_lazy_rel): Likewise.
5373         * sysdeps/s390/dl-irel.h: New file.
5374         * sysdeps/s390/s390-64/memcpy.S: New asm code.
5375         * sysdeps/s390/s390-64/memset.S: New asm code.
5376         * sysdeps/s390/s390-64/memcmp.S: New asm code.
5377         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
5378         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
5379         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
5380         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
5381         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
5382         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
5383         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
5384         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
5385         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
5386         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
5387         * sysdeps/s390/s390-32/memcpy.S: New asm code.
5388         * sysdeps/s390/s390-32/memset.S: New asm code.
5389         * sysdeps/s390/s390-32/memcmp.S: New asm code.
5391 2012-07-17  Marek Polacek  <polacek@redhat.com>
5393         [BZ #14349]
5394         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
5395         * sysdeps/s390/s390-64/configure.in: Likewise.
5396         * sysdeps/sparc/configure.in: Likewise.
5397         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
5398         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
5399         * sysdeps/i386/configure.in: Likewise.
5400         * sysdeps/x86_64/configure.in: Likewise.
5401         * sysdeps/sh/configure.in: Likewise.
5402         * sysdeps/s390/s390-32/configure: Regenerated.
5403         * sysdeps/s390/s390-64/configure: Likewise.
5404         * sysdeps/x86_64/configure: Likewise.
5405         * sysdeps/sh/configure: Likewise.
5406         * sysdeps/powerpc/powerpc64/configure: Likewise.
5407         * sysdeps/powerpc/powerpc32/configure: Likewise.
5408         * sysdeps/sparc/configure: Likwise.
5409         * sysdeps/i386/configure: Likewise.
5411         * elf/dl-open.c: Comment fixes.
5413 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
5415         * Makefile [CXX] (check-data): Remove.
5416         [CXX] (c++-types.data): New vpath directive.
5417         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
5418         vpath.  Do not allow for C++ type data being missing.
5419         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
5420         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
5421         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
5422         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
5423         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
5424         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
5425         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
5426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
5427         ... here.
5428         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
5429         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
5430         ... here.
5431         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
5432         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
5433         ... here.
5434         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
5435         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
5436         ... here.
5437         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
5438         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
5439         ... here.
5440         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
5441         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
5442         ... here.
5443         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
5444         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
5445         ... here.
5446         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
5447         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
5449         * elf/tls-macros.h (TLS_LE): Move architecture-specific
5450         definitions to architecture-specific files.
5451         (TLS_IE): Likewise.
5452         (TLS_LD): Likewise.
5453         (TLS_GD): Likewise.
5454         * sysdeps/i386/tls-macros.h: New file.
5455         * sysdeps/powerpc/tls-macros.h: Likewise.
5456         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
5457         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
5458         * sysdeps/sh/tls-macros.h: Likewise.
5459         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
5460         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
5461         * sysdeps/x86_64/tls-macros.h: Likewise.
5463 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5465         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
5466         zero value for regular exit case.
5468         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
5469         (__start_context): Preserve zero value for regular exit case.
5471 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
5472             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5474         * manual/setjmp.texi (setcontext): Clarify normal process
5475         termination when uc_link is the null pointer.
5476         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
5477         exit call.
5479 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
5481         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
5482         preprocessor.  Test for each exception mask separately.
5484 2012-07-16  Andreas Jaeger  <aj@suse.de>
5486         * po/ru.po: Update from translation team.
5488 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
5490         * conform/data/string.h-data (NULL): Use macro-constant.  Require
5491         equal to 0.
5492         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
5493         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
5494         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
5495         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
5496         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5498 2012-07-13  Andreas Jaeger  <aj@suse.de>
5500         * po/fr.po: Update from translation team.
5502 2012-07-12  Marek Polacek  <polacek@redhat.com>
5504         [BZ #14173]
5505         * math/libm-test.inc (yn_test): Add test for BZ #14173.
5506         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
5507         loop condition.
5509 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
5511         [BZ #13717]
5512         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
5513         Change to 2.4.1 where previously 2.4.0.
5514         * sysdeps/unix/sysv/linux/configure: Regenerated.
5515         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
5516         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
5517         version.
5518         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
5519         (__ASSUME_AT_CLKTCK): Remove.
5520         (__ASSUME_AT_PAGESIZE): Likewise.
5521         (__ASSUME_AT_XID): Likewise.
5522         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
5523         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
5524         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
5525         unconditionally.
5526         (HAVE_AUX_PAGESIZE): Likewise.
5527         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
5528         [__ASSUME_AT_CLKTCK]: Make code unconditional.
5529         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
5531 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
5533         [BZ #14307]
5534         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
5535         the temporary buffer used to invoke __gethostbyname2_r,
5536         __gethostbyaddr_r and gethostbyname4_r to make room for struct
5537         host_data / struct gaih_addrtuple.
5538         * resolv/nss_dns/dns-host.c (global scope): Move definition of
5539         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
5540         header file nss/nsswitch.h.
5541         * nss/nsswitch.h (global scope): Add definition of implementation
5542         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
5543         resolv/nss_dns/dns-host.c).
5545 2012-07-11  Andreas Jaeger  <aj@suse.de>
5547         * po/fr.po: Update from translation team.
5549         * po/sv.po: Update from translation team
5550         * po/fr.po: Another update from translation team.
5552 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5554         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
5555         for subnormals or multiply small sinh result by itself.
5556         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
5557         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5559 2012-07-11  David S. Miller  <davem@davemloft.net>
5561         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5563 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
5565         [BZ #14347]
5566         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
5567         (INTERNAL_MARK): Shift it here.
5569 2012-07-10  Marek Polacek  <polacek@redhat.com>
5571         [BZ #14151]
5572         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
5573         libc_cv_asm_global_directive with .globl.
5574         * configure: Regenerated.
5575         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
5576         with .globl.
5577         * sysdeps/i386/configure: Regenerated.
5578         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
5579         with .globl.
5580         * sysdeps/x86_64/configure: Regenerated.
5581         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
5582         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
5583         * elf/tst-unique2mod2.c: Likewise.
5584         * elf/tst-unique2mod1.c: Likewise.
5585         * elf/tst-unique1mod2.c: Likewise.
5586         * elf/tst-unique1mod1.c: Likewise.
5587         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5588         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
5589         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5590         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
5591         * sysdeps/mach/sysdep.h: Likewise.
5592         * sysdeps/i386/sysdep.h: Likewise.
5593         * sysdeps/i386/i386-mcount.S: Likewise.
5594         * sysdeps/x86_64/_mcount.S: Likewise.
5595         * sysdeps/x86_64/sysdep.h: Likewise.
5596         * sysdeps/sh/_mcount.S: Likewise.
5597         * sysdeps/sh/sysdep.h: Likewise.
5598         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
5599         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
5600         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
5601         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
5602         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
5603         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
5604         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
5605         * locale/localeinfo.h: Likewise.
5606         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
5607         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
5609 2012-07-09  Roland McGrath  <roland@hack.frob.com>
5611         [BZ #14336]
5612         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
5613         system".
5614         * manual/message.texi (The Uniforum approach): Likewise.
5615         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
5616         (glibc iconv Implementation): Likewise.
5618 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
5620         [BZ #14337]
5621         * math/s_clog.c (__clog): Avoid scaling a value down where that
5622         could result in underflow.
5623         * math/s_clog10.c (__clog10): Likewise.
5624         * math/s_clog10f.c (__clog10f): Likewise.
5625         * math/s_clog10l.c (__clog10l): Likewise.
5626         * math/s_clogf.c (__clogf): Likewise.
5627         * math/s_clogl.c (__clogl): Likewise.
5628         * math/libm-test.inc (clog_test): Add more tests.
5629         (clog10_test): Likewise.
5630         * sysdeps/i386/fpu/libm-test-ulps: Update.
5631         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5633 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
5635         [BZ #14283]
5636         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
5637         by 7 not 8 to examine high bit of fractional part.
5639         [BZ #14042]
5640         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
5641         for call to __mcount_internal.
5642         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
5643         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
5644         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
5646 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
5648         [BZ #14154]
5649         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
5650         approximation for values within 0x1p-13f of an odd multiple of
5651         pi/4.
5652         * math/libm-test.inc (tan_test): Do not allow spurious underflow
5653         exception.  Add more tests.
5654         * sysdeps/i386/fpu/libm-test-ulps: Update.
5656         [BZ #6778]
5657         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
5658         inputs and return -1 for them.  Do not check for +Inf in case not
5659         reachable for +Inf.
5660         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
5661         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
5662         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5663         and return -1 for them.  Do not check for +Inf in case not
5664         reachable for +Inf.
5665         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
5666         define.
5667         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
5668         and return -1 for them.  Do not check for +Inf in case not
5669         reachable for +Inf.
5670         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
5671         spurious underflow.
5672         * sysdeps/i386/fpu/libm-test-ulps: Update.
5673         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5675 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
5677         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
5679 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
5681         [BZ #14157]
5682         [BZ #14331]
5683         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
5684         could result in spurious underflow.  Scale down values above
5685         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
5686         * math/s_csqrtf.c (__csqrtf): Likewise.
5687         * math/s_csqrtl.c (__csqrtl): Likewise.
5688         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
5689         spurious underflow.
5690         * sysdeps/i386/fpu/libm-test-ulps: Update.
5691         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5693 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
5695         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
5696         xopen-msg.sed.
5697         * catgets/xopen-msg.awk: New file.
5698         * catgets/xopen-msg.sed: Removed.
5700         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
5701         po2text.sed.
5702         * intl/po2test.awk: New file.
5703         * intl/po2test.sed: Removed.
5705 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
5707         [BZ #14328]
5708         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
5709         or multiply small sinh result by itself.
5710         * math/s_ctanf.c (__ctanf): Likewise.
5711         * math/s_ctanh.c (__ctanh): Likewise.
5712         * math/s_ctanhf.c (__ctanhf): Likewise.
5713         * math/s_ctanhl.c (__ctanhl): Likewise.
5714         * math/s_ctanl.c (__ctanl): Likewise.
5715         * math/libm-test.inc (ctan_test_tonearest): New function.
5716         (ctan_test_towardzero): Likewise.
5717         (ctan_test_downward): Likewise.
5718         (ctan_test_upward): Likewise.
5719         (ctanh_test_tonearest): Likewise.
5720         (ctanh_test_towardzero): Likewise.
5721         (ctanh_test_downward): Likewise.
5722         (ctanh_test_upward): Likewise.
5723         (main): Call these new functions.
5724         * sysdeps/i386/fpu/libm-test-ulps: Update.
5725         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5727 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
5729         * .gitignore: Delete /ports entry.
5731 2012-07-03  Andreas Jaeger  <aj@suse.de>
5733         * po/bg.po: Update from translation team.
5734         * po/cs.po: Likewise.
5735         * po/de.po: Likewise.
5736         * po/hr.po: Likewise.
5737         * po/nl.pl: Likewise.
5738         * po/pl.po: Likewise.
5739         * po/vi.po: Likewise.
5741 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
5743         * Makeconfig [!+link] (+link-before-libc): New variable.
5744         [!+link] (+link-after-libc): Likewise.
5745         [!+link] (+link-tests): Likewise.
5746         [!+link] (+link): Define in terms of $(+link-before-libc) and
5747         $(+link-after-libc).
5748         [!+link-static] (+link-static-before-libc): New variable.
5749         [!+link-static] (+link-static-after-libc): Likewise.
5750         [!+link-static] (+link-static-tests): Likewise.
5751         [!+link-static] (+link-static): Define in terms of
5752         $(+link-static-before-libc) and $(+link-static-after-libc).
5753         [build-shared] (link-libc-before-gnulib): New variable.
5754         [build-shared] (link-libc-tests): Likewise.
5755         [build-shared] (link-libc): Define in terms of
5756         $(link-libc-before-gnulib).
5757         [!build-shared] (link-libc-tests): New variable.
5758         (link-libc-static-tests): New variable.
5759         [!gnulib] (gnulib-arch): New variable.
5760         [!gnulib] (gnulib-tests): Likewise.
5761         [!gnulib] (static-gnulib-arch): Likewise.
5762         [!gnulib] (static-gnulib-tests): Likewise.
5763         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
5764         Define with "=" instead of ":=".
5765         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
5766         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
5767         * Rules (binaries-all-notests): New variable.
5768         (binaries-all-tests): Likewise.
5769         (binaries-static-notests): Likewise.
5770         (binaries-static-tests): Likewise.
5771         (binaries-all): Define using $(binaries-all-notests) and
5772         $(binaries-all-tests).
5773         (binaries-static): Define using $(binaries-static-notests) and
5774         $(binaries-static-tests).
5775         (binaries-shared-tests): New variable.
5776         (binaries-shared-notests): Likewise.
5777         (binaries-shared): Remove variable.
5778         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
5779         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
5780         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
5781         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
5782         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
5783         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
5784         * elf/Makefile (sln-modules): New variable.
5785         (extra-objs): Add $(sln-modules:=.o).
5786         (ldconfig-modules): Add static-stubs.
5787         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
5788         * elf/static-stubs.c: New file.
5790         [BZ #14283]
5791         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
5792         by 7 not 8 to examine high bit of fractional part.  Use volatile
5793         variables when splitting into final array of floats if
5794         __FLT_EVAL_METHOD__ != 0.
5795         * math/libm-test.inc (cos_test): Add another test.
5796         (sin_test): Likewise.
5797         * sysdeps/i386/fpu/libm-test-ulps: Update.
5799         [BZ #14273]
5800         * math/libm-test.inc (cosh_test): Add more tests.
5802         * version.h (RELEASE): Set to "development".
5803         (VERSION): Set to "2.16.90".
5805 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
5807         * NEWS: Update copyright. Remove last-updated date.
5808         Mention math library bug fixes and timezone data changes.
5809         * README: Mention GNU/Hurd, x32, and HPPA support status.
5811 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
5813         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
5815 2012-06-27  Andreas Jaeger  <aj@suse.de>
5817         * manual/contrib.texi (Contributors): Add Samuel Thibault.
5819 2012-06-25  Andreas Jaeger  <aj@suse.de>
5821         * sysdeps/s390/fpu/libm-test-ulps: Update.
5823 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
5824             Thomas Schwinge  <thomas@codesourcery.com>
5826         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
5827         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
5828         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
5829         fanotify_mark.
5831 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
5833         * sysdeps/mach/start.c: Remove file.
5834         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
5835         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
5836         * sysdeps/sh/init-first.c: Likewise.
5838         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
5839         registers for frame unwinding purposes, add CFI directives.
5840         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5841         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
5842         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
5843         Likewise.
5845         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
5846         __fortify_fail returning.
5847         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
5849         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
5850         sysdeps/sh/____longjmp_chk.S.
5851         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
5852         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
5853         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
5854         (gen-as-const-headers): Append sigaltstack-offsets.sym.
5856         * sysdeps/sh/abort-instr.h: New file.
5857         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
5858         process in case exit returns.
5860         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
5861         initialize the GOT register before use.
5863         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
5864         calculation of ARGC > 4.
5866         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
5867         meaningful names to some local labels.
5869 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5870             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
5872         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
5873         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
5874         (__arch_compare_and_exchange_val_16_acq): Likewise.
5875         (__arch_compare_and_exchange_val_32_acq): Likewise.
5876         (atomic_exchange_and_add): Fix gUSA sequence.
5877         (atomic_add): Likewise.
5878         (atomic_add_negative): Likewise.
5879         (atomic_add_zero): Likewise.
5880         (atomic_bit_test_set): Likewise.
5882 2012-06-22  Andreas Schwab  <schwab@redhat.com>
5884         [BZ #13579]
5885         * include/link.h (struct link_map): Add l_free_initfini.
5886         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
5887         l_initfini.
5888         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
5889         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
5890         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
5891         set.
5893 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
5895         * configure.in: Use AC_LANG_SOURCE.
5896         * configure: Regenerate.
5898 2012-06-22  Roland McGrath  <roland@hack.frob.com>
5900         * configure.in (libc_cv_localstatedir): New substituted variable.
5901         * configure: Regenerated.
5902         * config.make.in (localstatedir): New variable, substituted from
5903         libc_cv_localstatedir.
5904         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
5905         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
5906         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
5907         * sysdeps/gnu/configure: Regenerated.
5909 2012-06-21  Jeff Law  <law@redhat.com>
5911         [BZ #14277]
5912         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
5913         free.  Simplify list management for _LIBC case.
5915 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
5917         [BZ #14273]
5918         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
5919         Clear sign bit of 64-bit integer value before comparing against
5920         overflow value.
5922         * sysdeps/mach/configure: Regenerated.
5924 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
5926         [BZ #14278]
5927         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
5929 2012-06-21  Jeff Law  <law@redhat.com>
5931         [BZ #13882]
5932         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
5933         uint16_t for elements in the "seen" array to avoid char overflows.
5934         * elf/dl-fini.c (_dl_sort_fini): Likewise.
5935         * elf/dl-open.c (dl_open_worker): Likewise.
5937 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
5939         * scripts/list-sources.sh: Scan PORTS for translations.
5940         * po/libc.pot: Regenerated.
5942 2012-06-21  Andreas Jaeger  <aj@suse.de>
5944         [BZ #12194]
5945         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
5946         warning.
5947         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
5948         * bits/byteswap-16.h (__bswap_16): Likewise.
5949         * bits/byteswap.h (__bswap_constant_16): Likewise.
5951 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
5953         [BZ #14117]
5954         * sysdeps/i386/fpu_control.h: Removed.
5955         * sysdeps/x86_64/fpu_control.h: Moved to ...
5956         * sysdeps/x86/fpu_control.h: Here.
5958         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
5959         (_FPU_SETCW): Likewise.
5961 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
5963         [BZ #14117]
5964         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
5965         * sysdeps/x86/fpu/bits/mathinline.h: This.
5966         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
5968         [BZ #14050]
5969         [BZ #14117]
5970         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
5971         functions if __x86_64__ is defined.
5973 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
5975         * string/endian.h: Add !__ASSEMBLER__ condition for including
5976         conversion interfaces.
5978 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
5980         [BZ #14241]
5981         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
5982         of ABS(x) in calculating zero to negative powers other than odd
5983         integers.
5984         * math/libm-test.inc (pow_test): Add more tests.
5986 2012-06-15  Andreas Jaeger  <aj@suse.de>
5988         * manual/contrib.texi (Contributors): Update entry of Liubov
5989         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
5990         Machado Filho.
5992 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
5994         * string/string.h: Add __wur to GNU version of strerror_r.
5996 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
5998         [BZ #14229]
5999         * string/Makefile (tests): Add tst-strtok_r.
6000         * string/tst-strtok_r.c: New file.
6001         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
6002         RAX_LP/RDX_LP on SAVE_PTR.
6004 2012-06-14  Roland McGrath  <roland@hack.frob.com>
6006         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
6008 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
6010         * libm_test.inc (csqrt_test): Allow more spurious underflow
6011         exceptions.
6012         (j0_test): Likewise.
6013         (j1_test): Likewise.
6014         (y0_test): Likewise.
6015         (y1_test): Likewise.
6017 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
6019         * po/Makefile (libc.pot): Use UTF-8 charset.
6021 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
6023         [BZ #14210]
6024         Suppress sign-conversion warning from FD_SET.
6025         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
6026         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
6027         not unsigned long int.
6028         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
6030 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
6032         [BZ #14050]
6033         [BZ #14117]
6034         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
6035         __extern_always_inline instead of __extern_inline.
6036         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
6037         (__signbit): Likewise.
6038         (__signbitl): Support C++ namespace.
6039         (lrintf): New inline function.
6040         (lrint): Likewise.
6041         (llrintf): Likewise.
6042         (llrint): Likewise.
6043         (fmaxf): Likewise.
6044         (fmax): Likewise.
6045         (fminf): Likewise.
6046         (fmin): Likewise.
6047         (rint): Likewise.
6048         (rintf): Likewise.
6049         (ceil): Likewise.
6050         (ceilf): Likewise.
6051         (floor): Likewise.
6052         (floorf): Likewise.
6053         (nearbyint): Likewise.
6054         (nearbyintf): Likewise.
6056 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
6058         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
6059         non-default versions.
6061 2012-06-11  Roland McGrath  <roland@hack.frob.com>
6063         [BZ #14218]
6064         * manual/argp.texi (Argp): Reword argp_parse description slightly.
6066 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
6068         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
6069         (FE_UPWARD, FE_DOWNWARD): Don't define.
6070         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
6071         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6073         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
6074         reading it.
6075         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6076         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6078 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6080         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
6081         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
6082         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
6083         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
6085 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
6087         [BZ #14117]
6088         * sysdeps/i386/fpu/bits/fenv.h: Removed.
6089         * sysdeps/i386/fpu/Implies: New file.
6090         * sysdeps/x86_64/fpu/Implies: Likewise.
6091         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
6092         * sysdeps/x86/fpu/bits/fenv.h: This.
6094         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
6095         __SSE_MATH__.
6097 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
6099         [BZ #14134]
6100         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
6101         character 0xffff that matches the last element of the
6102         conversion table.
6104 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6106         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
6107         fmodl commit.
6109 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6111         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
6112         values higher than 25.6283.
6114 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6116         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
6117         subnormal exponent extraction and add some __builtin_expect.
6118         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
6119         Fix for subnormal mantissa calculation.
6121 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
6123         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
6124         cpu2 is -1 and errno is not ENOSYS.
6126 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6128         [BZ #14117]
6129         * sysdeps/i386/i486/bits/string.h: Renamed to ...
6130         * sysdeps/x86/bits/string.h: This.
6131         * sysdeps/x86_64/bits/string.h: Removed.
6133         * sysdeps/i386/i486/bits/string.h: Define inline functions only
6134         if not compiling for x86-64, but compiling for >= i486.
6136         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
6137         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
6139         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
6140         New macro from Linux kernel 3.4.0.
6141         (FP_XSTATE_MAGIC2): Likewise.
6142         (FP_XSTATE_MAGIC2_SIZE): Likewise.
6143         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
6144         (struct _fpx_sw_bytes): New struct.
6145         (struct _xsave_hdr): Likewise.
6146         (struct _ymmh_state): Likewise.
6147         (struct _xstate): Likewise.
6149         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
6150         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
6151         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
6152         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
6153         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
6154         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
6156         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
6157         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
6158         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
6159         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
6160         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
6161         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
6163 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6165         [BZ #13743]
6166         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
6167         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
6168         (sysdep_headers): Include sys/platform/ppc.h.
6169         * sysdeps/powerpc/test-gettimebase.c: Test for
6170         __ppc_get_timebase() to catch future ISA opcode/insn changes.
6171         * manual/Makefile (appendices): Include platform.texi.
6172         * manual/contrib.texi (Contributors): Update @node pointers.
6173         * manual/maint.texi (Maintenance): Likewise.
6174         (Platform): New node.
6175         * manual/platform.texi: New file.  Document the new features.
6177 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
6178             Jakub Jelinek  <jakub@redhat.com>
6180         [BZ #14188]
6181         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
6182         where __builtin_expect is unavailable.
6184 2012-06-03  David S. Miller  <davem@davemloft.net>
6186         * stdlib/longlong.h: Updated from GCC.
6188 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
6190         [BZ #14042]
6191         * sysdeps/powerpc/powerpc32/mcount.c: New file.
6192         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
6193         __mcount_internal.
6194         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
6195         (GLIBC_2.16): Likewise.
6197 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6199         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
6201 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
6204         (default-abi): New variable.
6205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
6206         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
6207         variable.
6208         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
6209         Likewise.
6210         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
6211         Likewise.
6212         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
6213         Likewise.
6215         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
6216         definition.  Document in comment.
6218 2012-06-01  David S. Miller  <davem@davemloft.net>
6220         * stdlib/longlong.h: Updated from GCC.
6222 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6224         [BZ #14117]
6225         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
6226         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
6227         sys/debugreg.h sys/io.h here.
6228         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
6229         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
6230         sys/io.h.
6231         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
6232         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
6233         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
6234         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
6235         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
6236         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
6238         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
6239         Define only if __x86_64__ is defined.
6241 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
6243         [BZ #14048]
6244         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
6245         Use int64_t for variable i.
6246         * math/libm-test.inc (fmod_test): Add more tests.
6248         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
6249         z computation is not scheduled after fetestexcept.
6250         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
6251         Use math_force_eval instead of asm to ensure calculation scheduled
6252         before exception test.
6253         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
6254         Ensure a1 + u.d computation is not scheduled after fetestexcept.
6256 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
6258         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
6259         computation is not scheduled after fetestexcept.
6261 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
6263         [BZ #14117]
6264         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
6265         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
6267 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6269         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
6270         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6272 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6274         [BZ #14117]
6275         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
6276         <bits/wordsize.h>.
6277         (__WCHAR_MIN): Support __WORDSIZE == 64.
6278         (__WCHAR_MAX): Likewise.
6280         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
6281         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
6283         [BZ #14183]
6284         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
6285         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
6287         [BZ #14117]
6288         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
6289         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
6291         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
6292         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
6294         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
6295         Defined to 1 if __x86_64__ isn't defined.
6296         (_STAT_VER_LINUX_OLD): New.
6297         (st_atime): Remove duplicate.
6298         (st_mtime): Likewise.
6299         (st_ctime): Likewise.
6301 2012-05-31  David S. Miller  <davem@davemloft.net>
6303         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
6304         entries.
6306 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
6308         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
6309         gen-libm-test.pl.
6311         [BZ #14132]
6312         * elf/dl-reloc.c: Include <_itoa.h>.
6313         (_dl_reloc_bad_type): Remove use of INTUSE.
6314         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
6315         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
6316         * stdio-common/psiginfo.c (psiginfo): Likewise.
6317         * stdio-common/psignal.c (psignal): Likewise.
6318         * string/strsignal.c (strsignal): Likewise.
6319         * include/signal.h (_sys_siglist): Declare hidden proto.
6320         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
6321         INTVARDEF with libc_hidden_data_def.
6322         * stdio-common/itoa-udigits.c: Likewise.
6323         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
6324         (_itoa_lower_digits_internal): Remove declaration.
6325         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
6326         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
6327         (_sys_sigabbrev_internal): Remove aliases.
6328         (_sys_siglist): Define hidden alias.
6330 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
6332         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6333         bits/sysctl.h.
6335 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
6337         [BZ #14117]
6338         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
6339         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
6341         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
6342         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
6343         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
6344         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
6345         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
6346         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
6348         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
6349         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
6350         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
6352         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
6353         with __addr.
6354         (insw): Likewise.
6355         (insl): Likewise.
6356         (outsb): Likewise.
6357         (outsw): Likewise.
6358         (outsl): Likewise.
6360         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
6361         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
6362         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
6364         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
6365         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
6366         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
6367         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
6368         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
6369         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
6371         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
6372         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
6374         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
6375         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
6377         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
6378         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
6379         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
6381         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
6382         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
6383         to ...
6384         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
6386         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
6387         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
6388         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
6390         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
6391         for x86-64.
6392         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
6394 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
6396         * math/math.h (M_El): Use two more decimal places.
6397         (M_LOG2El): Likewise.
6398         (M_LOG10El): Likewise.
6399         (M_LN2l): Likewise.
6400         (M_LN10l): Likewise.
6401         (M_PIl): Likewise.
6402         (M_PI_2l): Likewise.
6403         (M_PI_4l): Likewise.
6404         (M_1_PIl): Likewise.
6405         (M_2_PIl): Likewise.
6406         (M_2_SQRTPIl): Likewise.
6407         (M_SQRT2l): Likewise.
6408         (M_SQRT1_2l): Likewise.
6410 2012-05-31  David S. Miller  <davem@davemloft.net>
6412         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
6413         values between float registers.
6414         * sysdeps/sparc/sparc64/memset.S: Likewise.
6415         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
6417 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
6419         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
6420         -D_FORTIFY_SOURCE=1.
6421         (CPPFLAGS-tst-longjmp_chk.c): Define.
6422         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
6423         (CPPFLAGS-tst-longjmp_chk2.c): Define.
6424         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
6425         CFLAGS-tst-wchar-h.c.
6427 2012-05-31  Marek Polacek  <polacek@redhat.com>
6429         [BZ #14132]
6430         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
6431         __endmntent_internal): Remove declaration.
6432         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
6433         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
6434         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
6436 2012-05-30  David S. Miller  <davem@davemloft.net>
6438         * sysdeps/sparc/sparc32/soft-fp/q_util.c
6439         (___Q_simulate_exceptions): Use real FP ops rather than writing
6440         into the %fsr.
6441         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
6442         Likewise.
6444 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6446         [BZ #14117]
6447         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
6448         * sysdeps/x86/bits/xtitypes.h: This.
6450         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
6451         * sysdeps/x86/bits/wordsize.h: This.
6453         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
6454         * sysdeps/x86/bits/huge_vall.h: This.
6456         * sysdeps/i386/bits/select.h: Removed.
6457         * sysdeps/x86_64/bits/select.h: Renamed to ...
6458         * sysdeps/x86/bits/select.h: This.
6460         * sysdeps/i386/bits/setjmp.h: Removed.
6461         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
6462         * sysdeps/x86/bits/setjmp.h: This.
6464         * sysdeps/i386/bits/mathdef.h: Removed.
6465         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
6466         * sysdeps/x86/bits/mathdef.h: This.
6468 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
6470         [BZ #14132]
6471         * include/sys/socket.h (__connect_internal)
6472         (__libc_sa_len_internal): Remove declaration.
6473         (__connect, __libc_sa_len): Declare hidden_proto.
6474         (SA_LEN): Remove use of INTUSE.
6475         * socket/connect.c: Add libc_hidden_def.
6476         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
6477         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
6478         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
6479         alias.
6480         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6481         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
6482         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
6483         of adding _internal alias.
6485 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6487         [BZ #14117]
6488         * sysdeps/i386/bits/link.h: Removed.
6489         * sysdeps/i386/bits/linkmap.h: Likewise.
6490         * sysdeps/x86_64/bits/link.h: Renamed to ...
6491         * sysdeps/x86/bits/link.h: This.
6492         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
6493         * sysdeps/x86/bits/linkmap.h: This.
6495         * sysdeps/i386/bits/endian.h: Removed.
6496         * sysdeps/x86_64/bits/endian.h: Renamed to ...
6497         * sysdeps/x86/bits/endian.h: This.
6499         * sysdeps/i386/bits/byteswap.h: Removed.
6500         * sysdeps/i386/bits/byteswap-16.h: Likewise.
6501         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
6502         * sysdeps/x86/bits/byteswap.h: This.
6503         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
6504         * sysdeps/x86/bits/byteswap-16.h: This.
6505         * sysdeps/i386/Implies: Add x86.
6506         * sysdeps/x86_64/Implies: Likewise.
6508 2012-05-30  David S. Miller  <davem@davemloft.net>
6510         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
6511         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
6512         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
6513         (FP_TRAPPING_EXCEPTIONS): Define.
6514         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
6515         (FP_TRAPPING_EXCEPTIONS): Define.
6516         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
6517         subnormals only when inexact has been signalled or underflow
6518         exceptions are enabled.
6519         (_FP_PACK_CANONICAL): Likewise.
6521 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6523         [BZ #14183]
6524         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
6525         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
6527 2012-05-30  Richard Henderson  <rth@twiddle.net>
6529         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
6530         with #ifndef NOT_IN_libc.
6532         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
6533         marked to avoid plt entry.
6535 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
6537         [BZ #14112]
6538         * Makeconfig (default-abi): New macro.
6539         (abi-includes): Likewise.
6540         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
6541         $(abi-$(default-abi)-lib-soname) for soname if defined.
6542         ($(common-objpfx)gnu/lib-names.stmp): Generate from
6543         abi-variants.
6544         * Makefile (installed-stubs): Likewise.
6545         * include/stubs-biarch.h: Removed.
6546         * scripts/lib-names.awk: Only handle one library at a time.
6547         * scripts/soversions.awk: Remove WORDSIZE support.
6548         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
6549         entries.
6550         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
6551         Removed.
6552         (syscall-list-default-condition): Likewise.
6553         (syscall-list-default-condition): Likewise.
6554         (syscall-list-includes): Likewise.
6555         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
6556         syscall-list-* with abi-*.  Handle undefined abi-variants.
6557         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
6558         * sysdeps/unix/sysv/linux/i386/Implies: New file.
6559         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
6560         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
6561         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
6562         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
6563         Removed.
6564         (syscall-list-32-options): Likewise.
6565         (syscall-list-32-condition): Likewise.
6566         (syscall-list-64-options): Likewise.
6567         (syscall-list-64-condition): Likewise.
6568         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
6569         macro.
6570         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
6571         Renamed to ...
6572         (abi-*): This.
6573         (abi-64-ld-soname): New macro.
6574         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
6575         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
6576         Renamed to ...
6577         (abi-*): This.
6578         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
6579         * sysdeps/x86_64/x32/shlib-versions: Likewise.
6581 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
6583         * sysdeps/unix/sysv/linux/kernel-features.h
6584         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
6585         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
6586         include <kernel-features.h>.
6587         [!__NR_ftruncate64]: Remove conditional code.
6588         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6589         [__NR_ftruncate64]: Make code unconditional.
6590         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6591         * sysdeps/unix/sysv/linux/truncate64.c: Do not
6592         include <kernel-features.h>.
6593         [!__NR_ftruncate64]: Remove conditional code.
6594         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6595         [__NR_ftruncate64]: Make code unconditional.
6596         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
6598         include <kernel-features.h>.
6599         [!__NR_ftruncate64]: Remove conditional code.
6600         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6601         [__NR_ftruncate64]: Make code unconditional.
6602         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
6604         include <kernel-features.h>.
6605         [!__NR_ftruncate64]: Remove conditional code.
6606         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6607         [__NR_ftruncate64]: Make code unconditional.
6608         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
6610         * configure.in (libc_cv_fpie): Weaken to a compile test using
6611         LIBC_TRY_CC_OPTION.
6612         * configure: Regenerated.
6614 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6616         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
6617         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
6618         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
6619         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6620         Refreshed.
6621         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
6622         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
6623         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
6624         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
6625         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
6626         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6627         Refreshed.
6629 2012-05-27  David S. Miller  <davem@davemloft.net>
6631         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
6632         (___Q_zero): New.
6633         (__Q_simulate_exceptions): Return void.  Change to simulate
6634         exceptions by writing into the %fsr.
6635         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
6636         (__Qp_handle_exceptions): Likewise.
6637         (numbers): Delete.
6638         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
6639         __Qp_handle_exceptions.
6640         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
6641         __Qp_handle_exceptions.
6642         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6643         as unused and give dummy FP_RND_NEAREST initializer.
6644         (FP_INHIBIT_RESULTS): Define.
6645         (___Q_simulate_exceptions): Update declaration.
6646         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
6647         formatting.
6648         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
6649         as unused and give dummy FP_RND_NEAREST initializer.
6650         (__Qp_handle_exceptions): Update declaration.
6651         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
6652         formatting.
6654 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
6656         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
6657         the temporary FPU control word.
6658         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
6659         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
6660         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
6661         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
6662         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
6663         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
6664         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
6665         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
6666         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
6667         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
6668         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
6670 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
6672         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
6673         fields.
6675 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
6677         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
6678         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
6679         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
6680         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
6681         Likewise.
6682         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
6683         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
6684         Likewise.
6686 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
6688         * po/h.po: Update from translation team.
6690 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
6692         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
6694         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
6695         handling of denormals.
6696         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
6697         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
6698         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
6699         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
6700         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
6701         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
6702         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
6703         Likewise.
6705 2012-05-26  Marek Polacek  <polacek@redhat.com>
6707         [BZ #14152]
6708         * math/libm-test.inc (fma_test): Don't always expect underflow
6709         exception.
6711 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6713         [BZ #12416]
6714         * elf/tst-execstack.c: Include stackinfo.h.
6715         (do_test): Adjust test case to ensure that pthread_getattr_np
6716         behaviour remains the same after marking stack executable.
6718 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6720         * sysdeps/unix/sysv/linux/kernel-features.h
6721         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
6722         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
6723         kernel-features.h.
6724         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6725         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6726         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
6727         kernel-features.h.
6728         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
6729         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
6731 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6733         * configure.in: Define the default includes to being none.
6734         * configure: Regenerated.
6736 2012-05-25  Roland McGrath  <roland@hack.frob.com>
6738         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
6739         * sysdeps/x86_64/setjmp.S: Likewise.
6740         * sysdeps/i386/bsd-setjmp.S: Likewise.
6741         * sysdeps/i386/bsd-_setjmp.S: Likewise.
6742         * sysdeps/i386/setjmp.S: Likewise.
6743         * sysdeps/i386/__longjmp.S: Likewise.
6744         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
6745         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
6747         * include/stap-probe.h: New file.
6748         * configure.in: Handle --enable-systemtap.
6749         * configure: Regenerated.
6750         * config.h.in (USE_STAP_PROBE): New #undef.
6751         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
6752         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
6753         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
6755 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
6757         [BZ #13717]
6758         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
6759         to 2.4.0 where earlier.
6760         * sysdeps/unix/sysv/linux/configure: Regenerated.
6761         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
6762         <kernel-features.h>.
6763         [__ASSUME_32BITUIDS]: Make code unconditional.
6764         [!__ASSUME_32BITUIDS]: Remove conditional code.
6765         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
6766         <kernel-features.h>.
6767         [__ASSUME_32BITUIDS]: Make code unconditional.
6768         [!__ASSUME_32BITUIDS]: Remove conditional code.
6769         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
6770         [__ASSUME_32BITUIDS]: Make code unconditional.
6771         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
6772         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
6773         <kernel-features.h>.
6774         [__ASSUME_32BITUIDS]: Make code unconditional.
6775         [!__ASSUME_32BITUIDS]: Remove conditional code.
6776         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
6777         <kernel-features.h>.
6778         [__ASSUME_32BITUIDS]: Make code unconditional.
6779         [!__ASSUME_32BITUIDS]: Remove conditional code.
6780         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
6781         <kernel-features.h>.
6782         [__ASSUME_32BITUIDS]: Make code unconditional.
6783         [!__ASSUME_32BITUIDS]: Remove conditional code.
6784         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
6785         <kernel-features.h>.
6786         [__ASSUME_32BITUIDS]: Make code unconditional.
6787         [!__ASSUME_32BITUIDS]: Remove conditional code.
6788         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
6789         <kernel-features.h>.
6790         [__ASSUME_32BITUIDS]: Make code unconditional.
6791         [!__ASSUME_32BITUIDS]: Remove conditional code.
6792         * sysdeps/unix/sysv/linux/i386/getresuid.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/getuid.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/lchown.c: Do not include
6801         <kernel-features.h>.
6802         [__ASSUME_32BITUIDS]: Make code unconditional.
6803         [!__ASSUME_32BITUIDS]: Remove conditional code.
6804         * sysdeps/unix/sysv/linux/i386/msgctl.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/semctl.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/setegid.c: Do not include
6813         <kernel-features.h>.
6814         [__NR_setresgid] (__setresgid): Do not declare.
6815         [__ASSUME_32BITUIDS]: Make code unconditional.
6816         [!__ASSUME_32BITUIDS]: Remove conditional code.
6817         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
6818         <kernel-features.h>.
6819         [__NR_setresuid] (__setresuid): Do not declare.
6820         [__ASSUME_32BITUIDS]: Make code unconditional.
6821         [!__ASSUME_32BITUIDS]: Remove conditional code.
6822         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
6823         <kernel-features.h>.
6824         [__ASSUME_32BITUIDS]: Make code unconditional.
6825         [!__ASSUME_32BITUIDS]: Remove conditional code.
6826         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
6827         <kernel-features.h>.
6828         [__ASSUME_32BITUIDS]: Make code unconditional.
6829         [!__ASSUME_32BITUIDS]: Remove conditional code.
6830         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
6831         <kernel-features.h>.
6832         [__ASSUME_32BITUIDS]: Make code unconditional.
6833         [!__ASSUME_32BITUIDS]: Remove conditional code.
6834         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
6835         <kernel-features.h>.
6836         [__ASSUME_32BITUIDS]: Make code unconditional.
6837         [!__ASSUME_32BITUIDS]: Remove conditional code.
6838         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
6839         <kernel-features.h>.
6840         [__ASSUME_32BITUIDS]: Make code unconditional.
6841         [!__ASSUME_32BITUIDS]: Remove conditional code.
6842         * sysdeps/unix/sysv/linux/i386/setresgid.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/setresuid.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/setreuid.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/setuid.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/shmctl.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/kernel-features.h
6863         (__ASSUME_SETRESUID_SYSCALL): Remove.
6864         (__ASSUME_SETRESGID_SYSCALL): Likewise.
6865         (__ASSUME_32BITUIDS): Likewise.
6866         (__ASSUME_LDT_WORKS): Likewise.
6867         (__ASSUME_O_DIRECTORY): Likewise.
6868         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
6869         architecture but not kernel version.
6870         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
6871         (__ASSUME_MMAP2_SYSCALL): Likewise.
6872         (__ASSUME_STAT64_SYSCALL): Likewise.
6873         (__ASSUME_IPC64): Likewise.
6874         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
6875         <kernel-features.h>.
6876         [__ASSUME_32BITUIDS]: Make code unconditional.
6877         [!__ASSUME_32BITUIDS]: Remove conditional code.
6878         * sysdeps/unix/sysv/linux/opendir.c: Do not include
6879         <kernel-features.h>.
6880         [__ASSUME_O_DIRECTORY]: Make code unconditional.
6881         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
6882         132096]: Remove conditional code.
6883         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
6884         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
6885         <kernel-features.h>.
6886         [__ASSUME_32BITUIDS]: Make code unconditional.
6887         [!__ASSUME_32BITUIDS]: Remove conditional code.
6888         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
6889         <kernel-features.h>.
6890         [__ASSUME_32BITUIDS]: Make code unconditional.
6891         [!__ASSUME_32BITUIDS]: Remove conditional code.
6892         * sysdeps/unix/sysv/linux/setegid.c: Do not include
6893         <kernel-features.h>.
6894         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
6895         unconditional.
6896         (__setresgid): Do not declare.
6897         [__ASSUME_32BITUIDS]: Make code unconditional.
6898         [!__ASSUME_32BITUIDS]: Remove conditional code.
6899         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
6900         <kernel-features.h>.
6901         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
6902         unconditional.
6903         (__setresuid): Do not declare.
6904         [__ASSUME_32BITUIDS]: Make code unconditional.
6905         [!__ASSUME_32BITUIDS]: Remove conditional code.
6906         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
6907         <kernel-features.h>.
6908         [__ASSUME_32BITUIDS]: Make code unconditional.
6909         [!__ASSUME_32BITUIDS]: Remove conditional code.
6910         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
6911         <kernel-features.h>.
6912         [__ASSUME_32BITUIDS]: Make code unconditional.
6913         [!__ASSUME_32BITUIDS]: Remove conditional code.
6915 2012-05-25  Richard Henderson  <rth@twiddle.net>
6917         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
6918         dl_hwcap to ifunc resolver.
6919         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
6920         elf_ifunc_invoke.
6921         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
6922         dl_hwcap to ifunc resolver.
6923         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
6925 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6927         [BZ #14153]
6928         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
6929         for |x| <= 2**-26, not 2**-57.
6930         * math/libm-test.inc (acos_test): Do not allow spurious underflow
6931         exception.
6933 2012-05-24  Jeff Law  <law@redhat.com>
6935         * stdio-common/Makefile (tests): Add bug25.
6936         * stdio-common/bug25.c: New test.
6938 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6940         [BZ #13576]
6941         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
6942         multiple of MALLOC_ALIGNMENT in size.
6943         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
6945 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
6947         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
6948         Require >= 256.
6949         (FILENAME_MAX): Use macro-int-constant.
6950         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
6951         (_IOFBF): Use macro-int-constant.
6952         (_IOLBF): Likewise.
6953         (_IONBF): Likewise.
6954         (SEEK_CUR): Likewise.
6955         (SEEK_END): Likewise.
6956         (SEEK_SET): Likewise.
6957         (TMP_MAX): Likewise.
6958         (EOF): Use macro-int-constant.  Require < 0.
6959         (NULL): Use macro-constant.  Require == 0.
6960         (stdin): Require type to be FILE *.
6961         (stdout): Likewise.
6962         (stderr): Likewise.
6963         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
6964         macro-int-constant.
6965         (EXIT_SUCCESS): Likewise.
6966         (NULL): Use macro-constant.  Require == 0.
6967         (RAND_MAX): Use macro-int-constant.
6968         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
6969         [C99-based standards] (strtof): Require function.
6970         [C99-based standards] (strtold): Likewise.
6971         [C99-based standards] (strtoll): Likewise.
6972         [C99-based standards] (strtoull): Likewise.
6973         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
6974         [ISO || ISO99 || ISO11] (limits.h): Likewise.
6975         [ISO || ISO99 || ISO11] (math.h): Likewise.
6976         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
6977         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
6978         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6980 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
6982         [BZ #14132]
6983         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
6984         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
6985         * intl/dgettext.c (DCGETTEXT): Likewise.
6986         * intl/gettext.c (DCGETTEXT): Likewise.
6987         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
6988         * posix/regex_internal.h (gettext): Likewise.
6989         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
6990         Remove declaration.
6991         * include/argz.h (__argz_count_internal)
6992         (__argz_stringify_internal): Remove declaration.
6993         (__argz_count, __argz_stringify): Declare hidden proto.
6994         * intl/dcgettext.c: Remove use of INTDEF.
6995         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
6996         * string/argz-stringify.c: Likewise.
6997         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
6998         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
6999         Declare hidden proto.
7000         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
7001         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
7002         Declare hidden proto.
7003         * include/stdio.h (__asprintf_internal): Don't declare.
7004         (__asprintf): Don't define as macro.  Declare hidden proto.
7005         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
7006         (__fsetlocking): Declare hidden proto.
7007         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
7008         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
7009         hidden proto.
7010         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
7011         (_IO_setlinebuf): Remove use of INTUSE.
7012         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
7013         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
7014         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
7015         Remove declaration.
7016         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
7017         (_IO_do_flush): Remove use of INTUSE.
7018         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
7019         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
7020         (_IO_adjust_column, _IO_least_wmarker)
7021         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
7022         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
7023         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
7024         (_IO_default_doallocate, _IO_wdefault_doallocate)
7025         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
7026         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
7027         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
7028         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
7029         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
7030         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
7031         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
7032         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
7033         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
7034         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
7035         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
7036         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
7037         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
7038         proto.
7039         (_IO_flush_all_internal, _IO_adjust_column_internal)
7040         (_IO_default_uflow_internal, _IO_default_finish_internal)
7041         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
7042         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
7043         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
7044         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
7045         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
7046         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
7047         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
7048         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
7049         (_IO_file_close_internal, _IO_file_close_it_internal)
7050         (_IO_file_underflow_internal, _IO_file_overflow_internal)
7051         (_IO_file_init_internal, _IO_file_attach_internal)
7052         (_IO_file_fopen_internal, _IO_file_read_internal)
7053         (_IO_file_sync_internal, _IO_file_seek_internal)
7054         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
7055         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
7056         (_IO_str_underflow_internal, _IO_str_overflow_internal)
7057         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
7058         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
7059         (_IO_list_all_internal, _IO_link_in_internal)
7060         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
7061         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
7062         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
7063         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
7064         (_IO_do_write_internal, _IO_padn_internal)
7065         (_IO_getline_info_internal, _IO_getline_internal)
7066         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
7067         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
7068         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
7069         (_IO_vfscanf_internal, _IO_vfprintf_internal)
7070         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
7071         (_IO_init_internal, _IO_un_link_internal): Don't declare.
7072         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
7073         with libc_hidden_ver, remove use of INTUSE.
7074         * libio/genops.c: Likewise.
7075         * libio/freopen.c: Likewise.
7076         * libio/freopen64.c: Likewise.
7077         * libio/iofclose.c: Likewise.
7078         * libio/iofdopen.c: Likewise.
7079         * libio/iofflush.c: Likewise.
7080         * libio/iofflush_u.c: Likewise.
7081         * libio/iofgets.c: Likewise.
7082         * libio/iofgets_u.c: Likewise.
7083         * libio/iofopen.c: Likewise.
7084         * libio/iofopncook.c: Likewise.
7085         * libio/iofread.c: Likewise.
7086         * libio/iofread_u.c: Likewise.
7087         * libio/ioftell.c: Likewise.
7088         * libio/iofwrite.c: Likewise.
7089         * libio/iogetline.c: Likewise.
7090         * libio/iogets.c: Likewise.
7091         * libio/iogetwline.c: Likewise.
7092         * libio/iopadn.c: Likewise.
7093         * libio/iopopen.c: Likewise.
7094         * libio/ioseekoff.c: Likewise.
7095         * libio/ioseekpos.c: Likewise.
7096         * libio/iosetbuffer.c: Likewise.
7097         * libio/iosetvbuf.c: Likewise.
7098         * libio/ioungetc.c: Likewise.
7099         * libio/ioungetwc.c: Likewise.
7100         * libio/iovdprintf.c: Likewise.
7101         * libio/iovsprintf.c: Likewise.
7102         * libio/iovsscanf.c: Likewise.
7103         * libio/memstream.c: Likewise.
7104         * libio/obprintf.c: Likewise.
7105         * libio/oldfileops.c: Likewise.
7106         * libio/oldiofclose.c: Likewise.
7107         * libio/oldiofdopen.c: Likewise.
7108         * libio/oldiofopen.c: Likewise.
7109         * libio/oldiopopen.c: Likewise.
7110         * libio/oldstdfiles.c: Likewise.
7111         * libio/putc.c: Likewise.
7112         * libio/setbuf.c: Likewise.
7113         * libio/setlinebuf.c: Likewise.
7114         * libio/stdfiles.c: Likewise.
7115         * libio/strops.c: Likewise.
7116         * libio/vasprintf.c: Likewise.
7117         * libio/vscanf.c: Likewise.
7118         * libio/vsnprintf.c: Likewise.
7119         * libio/vswprintf.c: Likewise.
7120         * libio/wfiledoalloc.c: Likewise.
7121         * libio/wfileops.c: Likewise.
7122         * libio/wgenops.c: Likewise.
7123         * libio/wmemstream.c: Likewise.
7124         * libio/wstrops.c: Likewise.
7125         * libio/__fpurge.c: Likewise.
7126         * libio/__fsetlocking.c: Likewise.
7127         * assert/assert.c: Likewise.
7128         * debug/fgets_chk.c: Likewise.
7129         * debug/fgets_u_chk.c: Likewise.
7130         * debug/fread_chk.c: Likewise.
7131         * debug/fread_u_chk.c: Likewise.
7132         * debug/gets_chk.c: Likewise.
7133         * debug/obprintf_chk.c: Likewise.
7134         * debug/vasprintf_chk.c: Likewise.
7135         * debug/vdprintf_chk.c: Likewise.
7136         * debug/vsnprintf_chk.c: Likewise.
7137         * debug/vsprintf_chk.c: Likewise.
7138         * malloc/mtrace.c: Likewise.
7139         * misc/error.c: Likewise.
7140         * misc/syslog.c: Likewise.
7141         * stdio-common/asprintf.c: Likewise.
7142         * stdio-common/fxprintf.c: Likewise.
7143         * stdio-common/getw.c: Likewise.
7144         * stdio-common/isoc99_fscanf.c: Likewise.
7145         * stdio-common/isoc99_scanf.c: Likewise.
7146         * stdio-common/isoc99_vfscanf.c: Likewise.
7147         * stdio-common/isoc99_vscanf.c: Likewise.
7148         * stdio-common/isoc99_vsscanf.c: Likewise.
7149         * stdio-common/printf-prs.c: Likewise.
7150         * stdio-common/printf_fp.c: Likewise.
7151         * stdio-common/printf_fphex.c: Likewise.
7152         * stdio-common/printf_size.c: Likewise.
7153         * stdio-common/putw.c: Likewise.
7154         * stdio-common/scanf.c: Likewise.
7155         * stdio-common/sprintf.c: Likewise.
7156         * stdio-common/tmpfile.c: Likewise.
7157         * stdio-common/vfprintf.c: Likewise.
7158         * stdio-common/vfscanf.c: Likewise.
7159         * stdlib/strfmon_l.c: Likewise.
7160         * sunrpc/openchild.c: Likewise.
7161         * sunrpc/xdr_stdio.c: Likewise.
7162         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
7163         * sysdeps/mach/hurd/tmpfile.c: Likewise.
7165 2012-05-24  Roland McGrath  <roland@hack.frob.com>
7167         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7169         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
7170         in the third column, to generate for the shared library an IFUNC
7171         that uses _dl_vdso_vsym.
7172         * Makerules (COMPILE.c, compile-stdin.c): New variables.
7173         * Makeconfig (object-suffixes-noshared): New variable.
7175         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
7176         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
7177         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
7178         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
7180         [BZ #14132]
7181         * include/sys/time.h (__gettimeofday): Remove macro.
7182         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
7183         * time/gettimeofday.c (__gettimeofday): Remove #undef.
7184         Remove INTDEF.
7185         (__gettimeofday): Add libc_hidden_def.
7186         (gettimeofday): Add libc_hidden_weak.
7187         * sysdeps/mach/gettimeofday.c: Likewise.
7188         * sysdeps/posix/gettimeofday.c: Likewise.
7189         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
7190         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
7191         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
7192         (__gettimeofday_internal): Remove strong_alias.
7193         (__gettimeofday): Add libc_hidden_def.
7194         (gettimeofday): Add libc_hidden_weak.
7195         * sysdeps/unix/syscalls.list (gettimeofday):
7196         Remove __gettimeofday_internal alias.
7198 2012-05-24  Daniel Jacobowitz  <drow@false.org>
7199             H.J. Lu  <hongjiu.lu@intel.com>
7201         [BZ #12495]
7202         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
7203         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
7204         (largebin_index_32_big): New.
7205         (largebin_index): Use it for 16-byte alignment.
7206         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
7207         correction with front_misalign.
7209 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7211         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
7212         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
7213         Likewise.
7214         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
7215         Likewise.
7216         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7217         Likewise.
7218         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
7219         Likewise.
7220         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
7221         Likewise.
7222         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
7223         Likewise.
7224         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
7225         Likewise.
7226         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
7227         Likewise.
7228         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
7229         Likewise.
7230         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
7231         Likewise.
7232         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
7233         Likewise.
7234         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
7235         Likewise.
7237         * scripts/data/c++-types-x32-linux-gnu.data: New file.
7238         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
7240 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
7242         [BZ #10846]
7243         [BZ #14036]
7244         * math/libm-test.inc (exp_test): Add test from bug 14036.
7245         (pow_test): Add test from bug 10846.
7247         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
7248         and other flags.
7249         (special_function): Do not include flags in test name.
7250         (parse_args): Likewise.
7251         * sysdeps/i386/fpu/libm-test-ulps: Update.
7252         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7253         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
7254         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
7255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7257         * math/gen-libm-test.pl (%beautify): Add entries for underflow
7258         exceptions.
7259         * math/libm-test.inc ("Philosophy"): Update comment about
7260         exception testing.
7261         (UNDERFLOW_EXCEPTION): New macro.
7262         (UNDERFLOW_EXCEPTION_OK): Likewise.
7263         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
7264         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
7265         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
7266         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
7267         (INVALID_EXCEPTION_OK): Update value.
7268         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
7269         (OVERFLOW_EXCEPTION_OK): Likewise.
7270         (IGNORE_ZERO_INF_SIGN): Likewise.
7271         (test_exceptions): Handle underflow exceptions.
7272         (acos_test): Update for underflow exception expectations.
7273         (cexp_test): Likewise.
7274         (clog_test): Likewise.
7275         (clog10_test): Likewise.
7276         (csqrt_test): Likewise.
7277         (ctan_test): Likewise.
7278         (ctanh_test): Likewise.
7279         (exp_test): Likewise.
7280         (exp10_test): Likewise.
7281         (exp2_test): Likewise.
7282         (expm1_test): Likewise.
7283         (fma_test): Likewise.
7284         (j0_test): Likewise.
7285         (jn_test): Likewise.
7286         (nexttoward_test): Likewise.
7287         (pow_test): Likewise.
7288         (scalbn_test): Likewise.
7289         (scalbln_test): Likewise.
7290         (tan_test): Likewise.
7291         (y1_test): Likewise.
7292         * sysdeps/i386/fpu/libm-test-ulps: Update.
7293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7295 2012-05-23  David S. Miller  <davem@davemloft.net>
7297         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
7298         (__libc_sigaction): Remove unused local variables.
7300 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7302         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
7304 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7306         mktime: avoid signed integer overflow
7307         * time/mktime.c (__mktime_internal): Do not mishandle the case
7308         where diff == INT_MIN.
7310         mktime: simplify computation of average
7311         * time/mktime.c (ranged_convert): Use new time_t_avg function
7312         instead of rolling our own (probably-slower) code.
7314         mktime: do not assume signed right shift propagates sign bit
7315         * time/mktime.c (isdst_differ): New static function.
7316         (__mktime_internal): No need to normalize tm_isdst now.
7317         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
7318         tm_isdst values.
7320         mktime: merge another wrapv change from gnulib
7321         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
7322         from some compilers.
7324         mktime: remove incorrect attempt at unusual arithmetics
7325         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
7326         The code didn't really work on such machines anyway.
7327         (TYPE_MINIMUM): Assume two's complement.
7328         (twos_complement_arithmetic): Verify that long_int and time_t
7329         are two's complement (or unsigned, in the latter case).
7331         mktime: check signed shifts on long_int and time_t, too
7332         * time/mktime.c (SHR): Check that shifts work as desired
7333         on the types long_int and time_t too, as SHR is used on
7334         such types.
7336         mktime: do not assume 'long' is wide enough
7337         * time/mktime.c (verify): Move decl up.
7338         (long_int): New type.
7339         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
7340         to remove assumption in the code that 'long' is wide enough to
7341         store year values.  This assumption is not true on x32 and on
7342         some non-glibc platforms.
7344         mktime: merge wrapv change from gnulib
7345         * time/mktime.c (WRAPV): New macro.
7346         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
7347         (guess_time_tm, __mktime_internal): Do not assume that signed
7348         integer overflow wraps around; modern compilers generate code
7349         where this assumption is no longer valid.
7351 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7353         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7354         Replace "jmp L(pseudo_end)" with "ret".
7355         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
7356         Likewise.
7358 2012-05-23  Andreas Jaeger  <aj@suse.de>
7360         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
7361         * sysdeps/unix/sysv/linux/poll.c: Remove file.
7363 2012-05-23  Andreas Jaeger  <aj@suse.de>
7364             Maximilian Attems  <max@stro.at>
7366         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
7367         New macros.
7369 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7371         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
7372         code so that pseudo_end is just ret and the stack pointer is
7373         correct also for static library in error case.
7375 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
7377         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
7378         move to syscalls.list.
7379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
7380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
7381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
7382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
7384         * manual/install.texi (Running make install): Do not mention Linux
7385         kernel version for which pt_chown is not needed.
7386         (Linux): Do not mention problems with nscd with 2.0 kernels.
7387         * INSTALL: Regenerated.
7389 2012-05-23  Andreas Jaeger  <aj@suse.de>
7391         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
7392         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
7393         macro.
7394         * sysdeps/unix/sysv/linux/s390/bits/mman.h
7395         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7396         * sysdeps/unix/sysv/linux/sh/bits/mman.h
7397         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7398         * sysdeps/unix/sysv/linux/i386/bits/mman.h
7399         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7400         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
7401         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7402         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
7403         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
7404         * sysdeps/unix/sysv/linux/bits/in.h
7405         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
7407 2012-05-22  Roland McGrath  <roland@hack.frob.com>
7409         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
7410         (PREPARE_VERSION): Just use assert instead, it will be elided
7411         under [NDEBUG] anyway.
7413 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7415         * sysdeps/unix/sysv/linux/Makefile: Include
7416         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
7417         (sysdep_routines): Remove sysctl.
7418         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
7419         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
7420         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
7421         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
7422         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
7424 2012-05-22  Andreas Jaeger  <aj@suse.de>
7426         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
7427         that pseudo_end is just ret and the stack pointer is correct also
7428         for static library in error case.
7430 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
7432         [BZ #14122]
7433         * nss/nsswitch.c (defconfig_entries): New variable.
7434         (__nss_database_lookup): Don't leak defconfig entries.
7435         (nss_parse_service_list): Don't leak on error paths.
7436         (free_database_entries): New function.
7437         (free_defconfig): New function.
7438         (free_mem): Move common code to free_database_entries.
7440 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7442         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
7443         Add arch_prctl.
7444         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
7446         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
7447         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
7448         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
7449         New macro.
7450         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
7451         (INTERNAL_SYSCALL_TYPES): Likewise.
7452         (LOAD_ARGS_TYPES_[1-6]): Likewise.
7453         (LOAD_REGS_TYPES_[1-6]): Likewise.
7454         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
7455         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
7457 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7459         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
7460         copysignl for GLIBC_2_0.
7461         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
7462         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
7463         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
7464         logbl for GLIBC_2_0.
7465         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
7466         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
7468 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7470         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
7471         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
7473         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
7474         Use "neg %eax".
7476         * time/mktime.c: Update copyright years.
7478 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
7480         mktime: merge comment-quoting-style change from gnulib
7481         * time/mktime.c: Quote 'like this' in comments.
7482         The GNU coding standards suggest that we no longer quote `like this',
7483         as "`" and "'" are typically rendered asymmetrically nowadays.
7484         The typical gnulib style is to quote 'like this' when quoting
7485         code, and "like this" when quoting English.
7487         * time/mktime.c (compile-command): Add "-I.".
7489         mktime: merge mktime-internal.h change from gnulib
7490         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
7492         mktime: merge time_r change from gnulib
7493         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
7495         mktime: merge DEBUG change from gnulib
7496         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
7497         case system <time.h> has a #define.
7499         mktime: merge <sys/types.h> change from gnulib
7500         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
7501         since <time.t> is now guaranteed to define time_t.
7503         mktime: merge HAVE_CONFIG_H change from gnulib
7504         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
7506 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
7508         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7509         Use "neg %eax".
7511         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
7512         __rlim_t cast.
7513         (struct rusage): Use anonymous union to pad each field to
7514         __syscall_slong_t.
7516 2012-05-21  David S. Miller  <davem@davemloft.net>
7518         * Makefules (o-iterator): Remove .s cases.
7519         (compile-command.s): Delete.
7520         (COMPILE.s): Delete.
7521         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
7523 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
7525         * configure.in (libc_cv_predef_stack_protector): Only consider
7526         "foobar" and "__stack_chk_fail" lines in libc_undefs.
7527         * configure: Regenerated.
7529 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7531         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
7532         New macro.  Use R*LP on int and pointer.
7533         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
7534         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
7535         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
7536         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
7538         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
7539         [__WORDSIZE_TIME64_COMPAT32] instead of
7540         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
7541         (struct utmp): Likewise.
7542         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
7543         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
7544         Renamed to ...
7545         (__WORDSIZE_TIME64_COMPAT32): This.
7546         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
7547         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
7548         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
7549         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
7550         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
7551         (__WORDSIZE_TIME64_COMPAT32): New macro.
7553 2012-05-21  Andreas Jaeger  <aj@suse.de>
7555         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
7556         only if [SHARED]. Add prototype for __wcschr_ia32.
7558 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7560         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
7561         of %rbp unmolested in the jmp_buf while mangling the low bits.
7562         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
7563         unmolested high bits of %rbp while demangling the low bits.
7564         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
7566 2012-05-21  Andreas Jaeger  <aj@suse.de>
7568         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
7569         * sunrpc/svc_simple.c: Use it for registerrpc.
7570         * sunrpc/xcrypt.c: Use it for passwd2des.
7572         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
7574 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7576         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
7577         Don't define if [__SYSCALL_WORDSIZE != 32].
7578         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
7579         New macro.
7581 2012-05-21  Bruno Haible  <bruno@clisp.org>
7582             Andreas Jaeger  <aj@suse.de>
7584         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
7585         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
7586         inptr and inend for must_buffer_ch.
7587         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
7588         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
7589         * stdio-common/Makefile (tests): Remove bug15.
7590         (bug15-ENV): Remove macro.
7591         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
7592         anymore.
7594 2012-05-19  Andreas Jaeger  <aj@suse.de>
7595             Roland McGrath  <roland@hack.frob.com>
7597         * manual/contrib.texi: Completely rewritten. It contains now an
7598         alphabetical list of contributors and their contributions.
7600 2012-05-21  Richard Henderson  <rth@twiddle.net>
7602         * misc/getauxval.c (__getauxval): Use unsigned long int.
7603         * misc/sys/auxv.h: Include <sys/cdefs.h>.
7604         (getauxval): Use unsigned long int.
7606 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
7608         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
7610 2012-05-21  Roland McGrath  <roland@hack.frob.com>
7612         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
7613         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
7614         __alignof__ (long double).
7616 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7618         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7620 2012-05-20  Richard Henderson  <rth@twiddle.net>
7622         * misc/getauxval.c: New file.
7623         * misc/sys/auxv.h: New file.
7624         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
7625         (routines): Add getauxval.
7626         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
7627         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
7628         * elf/dl-sysdep.c (_dl_auxv): Remove.
7629         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
7630         * elf/dl-support.c (_dl_auxv): New variable.
7631         (_dl_aux_init): Initialize it.
7632         * manual/startup.texi (Auxiliary Vector): New node.
7633         * sysdeps/generic/bits/hwcap.h: New file.
7634         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
7635         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
7636         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
7637         * sysdeps/sparc/sysdep.h: ... here.  Include it.
7638         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
7639         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
7640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7641         Update.
7642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
7643         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
7644         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
7645         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
7646         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7647         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
7648         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
7649         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
7651 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7653         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7655 2012-05-19  David S. Miller  <davem@davemloft.net>
7657         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7659 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7661         [BZ #14123]
7662         * math/s_ccosh.c: Include <float.h>
7663         (__ccosh): Avoid internal overflow calculating sinh and cosh
7664         values before multiplying by sin and cos values.
7665         * math/s_ccoshf.c: Likewise.
7666         * math/s_ccoshl.c: Likewise.
7667         * math/s_csin.c: Likewise.
7668         * math/s_csinf.c: Likewise.
7669         * math/s_csinl.c: Likewise.
7670         * math/s_csinh.c: Likewise.
7671         * math/s_csinhf.c: Likewise.
7672         * math/s_csinhl.c: Likewise.
7673         * math/libm-test.inc (ccos_test): Add more tests.
7674         (ccosh_test): Likewise.
7675         (csin_test): Likewise.
7676         (csinh_test): Likewise.
7677         * sysdeps/i386/fpu/libm-test-ulps: Update.
7678         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7680 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7682         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
7683         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
7685         * sysdeps/x86_64/x32/_itoa.h: Add comment.
7687 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
7689         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
7690         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
7691         * sysdeps/powerpc/soft-fp/Versions: Likewise.
7692         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
7693         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
7694         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
7695         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
7696         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
7697         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
7698         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
7699         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
7700         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
7701         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
7702         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
7703         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
7704         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
7705         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
7706         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
7707         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
7708         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
7709         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
7710         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
7711         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
7712         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
7713         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
7714         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
7715         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
7716         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
7717         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
7718         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
7719         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
7721 2012-05-18  Andreas Jaeger  <aj@suse.de>
7723         * csu/.gitignore: Delete.
7725 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7727         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
7728         (timex): Use __syscall_slong_t.
7730 2012-05-18  Andreas Jaeger  <aj@suse.de>
7731             Carlos O'Donell  <carlos_odonell@mentor.com>
7733         * manual/install.texi (Configuring and compiling): Update
7734         description about files modified in the source directory.
7735         * INSTALL: Regenerated.
7737 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7739         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
7740         value.  Use "or" to set return value to -1.
7741         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
7742         negate return value.
7744 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7746         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
7747         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
7748         failure if the compiler has Graphite support disabled.
7749         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
7750         Likewise.
7751         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
7752         CFLAGS-memmove.c): Likewise.
7753         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
7754         Likewise.
7756 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
7758         * sysdeps/x86_64/x32/_itoa.h: New file.
7760         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
7761         getdents system call only if kernel and user dirents have the
7762         same d_ino and d_off.
7764         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
7765         LLONG_MAX != LONG_MAX.
7766         (_itoa_word): Use _ITOA_WORD_TYPE on value.
7767         (_fitoa_word): Likewise.
7769         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
7770         years.
7771         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
7772         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
7773         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
7775         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
7776         include <bits/wordsize.h>.  Check __x86_64__ instead of
7777         __WORDSIZE.
7778         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
7779         if __x86_64__ is defined.  Use anonymous union on fpstate.
7781         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
7782         anonymous union.
7784 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
7786         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
7787         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
7788         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
7789         Refer to _rtld_local_ro instead of _rtld_global_ro.
7790         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
7791         Likewise.
7792         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
7793         Likewise.
7794         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
7795         Likewise.
7796         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
7797         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
7798         of _rtld_global, and rtld_progname instead of _dl_argv[0].
7800         * sysdeps/powerpc/powerpc32/dl-machine.c
7801         (__elf_machine_runtime_setup) [PROF]: Don't reference
7802         _dl_prof_resolve.
7804 2012-05-18  Andreas Jaeger  <aj@suse.de>
7806         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
7807         function only available for GCCs before 3.4 since GCC 3.4
7808         introduced a builtin.
7809         (lrint): Likewise.
7810         (llrintf): Likewise.
7811         (llrint): Likewise.
7812         (fmaxf): Likewise.
7813         (fmax): Likewise.
7814         (fminf): Likewise.
7815         (fmin): Likewise.
7816         (rint): Likewise.
7817         (rintf): Likewise.
7818         (nearbyint): Likewise.
7819         (nearbyintf): Likewise.
7820         (ceil): Likewise.
7821         (ceilf): Likewise.
7822         (floor): Likewise.
7823         (floorf): Likewise.
7825 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7827         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
7828         on both fields and cast pointer to __syscall_ulong_t.
7830         * bits/types.h (__fsword_t): New type.
7831         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
7832         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
7833         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7834         (__FSWORD_T_TYPE): Likewise.
7835         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7836         (__FSWORD_T_TYPE): Likewise.
7837         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7838         (__FSWORD_T_TYPE): Likewise.
7839         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
7840         (__FSWORD_T_TYPE): Likewise.
7841         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
7842         __SWORD_TYPE with __fsword_t.
7843         (statfs64): Likewise.
7845 2012-05-17  David S. Miller  <davem@davemloft.net>
7847         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
7849 2012-05-17  Andreas Jaeger  <aj@suse.de>
7851         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
7852         warning.
7854 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7856         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
7858 2012-05-17  Andreas Jaeger  <aj@suse.de>
7860         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
7861         when it is used.
7863 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7865         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
7867 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
7869         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
7870         * sysdeps/x86_64/tst-mallocalign1.c: New file.
7872 2012-05-17  Andreas Jaeger  <aj@suse.de>
7873             Carlos O'Donell  <carlos_odonell@mentor.com>
7875         [BZ #14059]
7876         * sysdeps/x86_64/multiarch/init-arch.h
7877         (bit_YMM_Usable): Rename to...
7878         (bit_AVX_Usable): ... this.
7879         (bit_FMA4_Usable): New macro.
7880         (bit_XMM_state): New macro.
7881         (bit_YMM_state): New macro.
7882         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
7883         [__ASSEMBLER__] (index_AVX_Usable): ... this.
7884         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
7885         (CPUID_OSXSAVE): New macro.
7886         (CPUID_AVX): New macro.
7887         (CPUID_FMA4): New macro.
7888         (index_YMM_Usable): Rename to...
7889         (index_AVX_Usable): ... this.
7890         (HAS_AVX): Use HAS_ARCH_FEATURE.
7891         (HAS_FMA4): Likewise.
7892         (HAS_YMM_USABLE): Remove.
7893         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7894         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
7895         are present.
7896         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
7897         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
7898         * sysdeps/x86_64/multiarch/Makefile: Likewise.
7899         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
7900         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
7902 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
7904         * math/libm-test.c: Support platforms without multiple rounding modes.
7905         * math/bug-nextafter.c: Support platforms without FP exceptions.
7906         * math/bug-nexttoward.c: Likewise.
7907         * math/test-fenv.c: Likewise.
7908         * math/test-misc.c: Likewise.
7909         * stdlib/bug-getcontext.c: Likewise.
7911 2012-05-17  Andreas Jaeger  <aj@suse.de>
7913         * manual/examples/search.c (critter_cmp): Change signature to
7914         avoid warnings.
7915         * manual/string.texi (Collation Functions): Likewise.
7917 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7919         * bits/types.h: Fold copyright years.
7920         * bits/typesizes.h: Likewise.
7921         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
7922         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
7923         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
7924         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
7925         * time/time.h: Likewise.
7927 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
7929         [BZ #208]
7930         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
7931         in instead of returning them.  Return void.
7932         (__libc_mallinfo): Accumulate over all arenas.
7933         (__malloc_stats): Adjust for change in int_mallinfo interface.
7935 2012-05-16  Roland McGrath  <roland@hack.frob.com>
7937         [BZ #10375]
7938         * configure.in (NM): Add AC_CHECK_TOOL for it.
7939         (libc_extra_cflags): New substituted variable.
7940         Check for -fstack-protector being used implicitly.
7941         * configure: Regenerated.
7942         * config.make.in (config-extra-cflags): New variable,
7943         gets @libc_extra_cflags@.
7944         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
7946         [BZ #10375]
7947         * configure.in: Check for _FORTIFY_SOURCE being predefined.
7948         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
7949         * configure: Regenerated.
7950         * config.make.in (CPPUNDEFS): New substituted variable.
7951         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
7952         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
7953         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
7955 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7957         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
7958         (mq_attr): Use __syscall_slong_t.
7960 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7962         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
7963         Check __x86_64__ instead of __WORDSIZE.
7964         (_STAT_VER_LINUX): Likewise.
7965         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
7966         __syscall_ulong_t and __syscall_slong_t.
7967         (stat64): Likewise.
7969 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7971         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
7973 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7975         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
7977 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7979         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
7980         __syscall_ulong_t.
7982         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
7983         include <bits/wordsize.h>.  Check __x86_64__ instead of
7984         __WORDSIZE.
7985         (greg_t): Use "__extension__ long long int" if __x86_64__ is
7986         defined.
7987         (mcontext_t): Replace "unsigned long" with "unsigned long long".
7989         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
7990         include <bits/wordsize.h>.  Check __x86_64__ instead of
7991         __WORDSIZE.
7992         (user_regs_struct): Use "__extension__ unsigned long long"
7993         instead of "unsigned long" if __x86_64__ is defined.
7994         (user): Likewise.  Pad after pointer field if __ILP32__ is
7995         defined.
7997 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
7999         * configure.in (makeinfo): Require version 4.5 or later.  Allow
8000         versions 5 to 9.
8001         * configure: Regenerated.
8002         * manual/install.texi (texinfo): Increase version requirement to
8003         4.5 or later.
8004         * INSTALL: Regenerated.
8006         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
8008 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
8010         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
8012         * sysdeps/x86_64/x32/ffs.c: New file.
8014         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
8015         __syscall_ulong_t.
8016         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
8017         defined.  Use __syscall_ulong_t.
8018         (shminfo): Use __syscall_ulong_t.
8019         (shm_info): Likewise.
8021         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
8022         __syscall_ulong_t.
8024         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
8025         <bits/wordsize.h>.
8026         (msgqnum_t): Use __syscall_ulong_t.
8027         (msglen_t): Likewise.
8028         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
8029         __syscall_ulong_t.
8031         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
8032         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8034         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
8036         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
8037         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
8039         * sysvipc/sys/msg.h (msgbuf): Replace long int with
8040         __syscall_slong_t.
8042         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
8043         include <bits/wordsize.h>.  Check __x86_64__ instead of
8044         __WORDSIZE.
8046         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
8047         "unsigned long long int" if __x86_64__ is defined.
8048         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
8050         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
8051         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
8052         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
8054         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
8055         <stdint.h>.
8056         (GET_PC): Cast to uintptr_t first.
8057         (GET_FRAME): Likewise.
8058         (GET_STACK): Likewise.
8060         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
8061         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
8062         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
8063         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
8064         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
8065         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
8066         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
8067         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
8068         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
8069         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
8070         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
8071         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
8072         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8073         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
8074         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
8075         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
8076         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
8077         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
8078         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
8079         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
8080         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
8081         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
8082         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
8083         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
8084         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
8085         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
8086         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
8087         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
8088         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
8090 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
8092         * Makerules (+depfiles): Also collect depfiles from .oS in
8093         $(extra-objs).
8094         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
8095         .oS, $(libnldbl-routines)).
8097         * Makerules (native-compile-mkdep-flags): Define.
8098         * sunrpc/Makefile (extra-objs): Add $(addprefix
8099         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
8100         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
8101         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
8102         calling $(make-target-directory).
8104 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8106         * bits/types.h (__snseconds_t): Removed.
8107         * time/time.h (struct timespec): Replace __snseconds_t with
8108         __syscall_slong_t.
8109         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
8110         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
8111         Likewise.
8112         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8113         (__SNSECONDS_T_TYPE): Likewise.
8114         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8115         (__SNSECONDS_T_TYPE): Likewise.
8116         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8117         (__SNSECONDS_T_TYPE): Likewise.
8119 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8121         * sysdeps/mach/hurd/bits/typesizes.h
8122         (__SYSCALL_SLONG_TYPE): New macro.
8123         (__SYSCALL_ULONG_TYPE): Likewise.
8125 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8127         * bits/types.h (__syscall_slong_t): New type.
8128         (__syscall_ulong_t): Likewise.
8130         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
8131         (__SYSCALL_ULONG_TYPE): Likewise.
8132         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8133         (__SYSCALL_SLONG_TYPE): Likewise.
8134         (__SYSCALL_ULONG_TYPE): Likewise.
8135         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
8136         (__SYSCALL_SLONG_TYPE): Likewise.
8137         (__SYSCALL_ULONG_TYPE): Likewise.
8138         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8139         (__SYSCALL_SLONG_TYPE): Likewise.
8140         (__SYSCALL_ULONG_TYPE): Likewise.
8142 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8144         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
8145         Add sigaltstack-offsets.sym.
8146         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
8147         <sigaltstack-offsets.h>.
8148         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
8149         longjmp_msg pointer.
8150         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
8151         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
8152         signal stack.
8153         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
8155 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8157         * elf/stackguard-macros.h: Remove file.
8158         * sysdeps/generic/stackguard-macros.h: New file.
8159         * sysdeps/i386/stackguard-macros.h: Likewise.
8160         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
8161         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
8162         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
8163         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
8164         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
8165         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
8166         * sysdeps/x86_64/stackguard-macros.h: Likewise.
8167         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
8168         <elf/stackguard-macros.h>.
8170         [BZ #14109]
8171         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
8172         __aligned__ in attribute.
8173         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
8174         (gregset_t): Likewise.
8176 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8178         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
8179         * sysdeps/x86_64/64/Implies-after: Here.  New file.
8180         * sysdeps/x86_64/x32/Implies-after: New file.
8182 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8184         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
8185         and access return value for _dl_profile_fixup.  Use R10_LP to
8186         load frame size.
8188 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8190         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
8192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8194         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
8195         * sysdeps/x86_64/x32/sysdep.h: New file.
8197 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8199         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
8200         * sysdeps/x86_64/setjmp.S: Likewise.
8202 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8204         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
8205         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
8206         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
8207         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
8208         remove unused global constant.
8210 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
8212         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
8213         include of <not-cancel.h>.
8215 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8217         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
8219 2012-05-15  Jeff Law  <law@redhat.com>
8220             Andreas Jaeger  <aj@suse.de>
8222         [BZ #13594]
8223         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
8224         out from...
8225         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
8226         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
8227         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
8228         code changing __hst_map_handle.map.
8230 2012-05-15  Roland McGrath  <roland@hack.frob.com>
8232         * configure.in (sysnames): Look for Implies-before and Implies-after
8233         files.
8234         * configure: Regenerated.
8236 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8238         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
8239         8-byte data alignment with LP_SIZE alignment.
8241 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8243         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
8244         into R10_LP.
8246 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8248         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
8250 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8252         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
8253         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
8254         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
8255         Likewise.
8256         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
8258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8260         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
8261         (stackinfo_sub_sp): Likewise.
8263 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8265         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
8266         RAX_LP.
8268 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8270         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
8271         into R*_LP.
8273 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8275         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
8276         sizes into R*_LP.
8278 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8280         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
8282 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8284         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
8285         into R11_LP and load __x86_64_shared_cache_size_half into
8286         R8_LP.
8288 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
8290         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
8291         R8_LP.
8293 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8295         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
8296         logb for POWER7.
8297         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
8298         logbf for POWER7.
8299         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
8300         logbl for POWER7.
8301         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
8302         powerpc32/power7/fpu/s_logb.c via #include.
8303         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
8304         powerpc32/power7/fpu/s_logbf.c via #include.
8305         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
8306         powerpc32/power7/fpu/s_logbl.c via #include.
8308 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
8310         * README.libm: Remove file.
8312 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8314         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
8315         count for x32.  Use R*_LP and omit operand-size suffix.
8317 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8319         * shlib-versions: Move x86_64-.*-linux.* entries to ...
8320         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
8321         * sysdeps/x86_64/x32/shlib-versions: New file.
8323 2012-05-14  Roland McGrath  <roland@hack.frob.com>
8325         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
8326         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
8327         Use _dl_fatal_printf instead.
8329 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8331         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
8332         set if not set by the user.  Do not allow for being unset.
8333         * sysdeps/unix/sysv/linux/configure: Regenerated.
8335 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8337         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
8338         the `q' suffix from lea and replace .quad with ASM_ADDR.
8340 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8342         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
8343         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
8344         instead of $17.
8345         (PTR_DEMANGLE): Likewise.
8347 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8349         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
8350         (LP_OP): Likewise.
8351         (ASM_ADDR): Likewise.
8352         (RAX_LP): Likewise.
8353         (RBP_LP): Likewise.
8354         (RBX_LP): Likewise.
8355         (RCX_LP): Likewise.
8356         (RDI_LP): Likewise.
8357         (RSI_LP): Likewise.
8358         (RSP_LP): Likewise.
8359         (R8_LP): Likewise.
8360         (R9_LP): Likewise.
8361         (R10_LP): Likewise.
8362         (R10_LP): Likewise.
8363         (R11_LP): Likewise.
8364         (R12_LP): Likewise.
8365         (R13_LP): Likewise.
8366         (R14_LP): Likewise.
8367         (R15_LP): Likewise.
8369 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8371         * sysdeps/x86_64/x32/dl-machine.h: New file.
8373 2012-05-14  Andreas Jaeger  <aj@suse.de>
8375         * manual/Makefile (subdir): Remove export of subdir.
8376         (all): Remove target.
8377         (.PHONY): Remove all from list.
8378         (mkinstalldirs): Remove.
8379         (.PHONY): Remove installdirs from list.
8380         ($(inst_infodir)/libc.info): Use make-target-directory.
8381         (installdirs): Remove.
8382         (subdir_%): Remove.
8383         (glibc-targets): Remove.
8384         (lib): Remove.
8385         (stubs): Remove.
8386         ($(objpfx)stubs ../po/manual.pot): Remove.
8387         ($(objpfx)stamp%): Remove.
8388         (make-target-directory): Remove.
8389         (subdir_install): Remove.
8390         (routines): Remove.
8391         (aux): Remove.
8392         (sources): Remove.
8393         (objects): Remove.
8394         (headers): Remove.
8396         [BZ #13750]
8397         * manual/.gitignore: Remove, it's not needed anymore.
8398         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
8399         all files in it.
8400         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
8401         directory.
8402         (texis): Renamed to $(objpfx)texis.
8403         (texis-path): New, contains path to generated files.
8404         (chapters.%): Use texis-path for complete path, add extra argument
8405         libc-texinfo.sh.
8406         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
8407         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
8408         (summary,texi, stamp-summary): Use complete path of
8409         files. Generate files in build dir.
8410         (dir-add.texi): Build in build dir.
8411         (libm-err.texi,stamp-libm-err): Likewise.
8412         (version.texi, stamp-version): Likewise.
8413         (.%c.texi): Likewise.
8414         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
8415         (mostlyclean): Remove target.
8416         (realclean): Remove target.
8417         (generated): Add new variable with contents from mostlyclean and
8418         realclean, remove entries duplicated in common-mostlyclean, add
8419         stamp-libm-err and stamp-version.
8420         (generated-dirs): Add libc directory.
8421         ($(inst_infodir)/libc.info): Install files from build dir.
8423         * manual/install.texi (Configuring and compiling): Adjust since
8424         the info files are not part of the tar ball anymore.
8426 2012-05-14  Andreas Jaeger  <aj@suse.de>
8428         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
8429         variable.
8431 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
8433         [BZ #13717]
8434         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
8435         to 2.2.0 where earlier.
8436         * sysdeps/unix/sysv/linux/configure: Regenerated.
8437         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
8438         Remove conditional code.
8439         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
8440         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
8441         Remove conditional code.
8442         [!__NR_lchown]: Likewise.
8443         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8444         [__NR_lchown]: Likewise.
8445         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
8446         comment referencing __ASSUME_LCHOWN_SYSCALL.
8447         * sysdeps/unix/sysv/linux/i386/sigaction.c
8448         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8449         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8450         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
8451         Remove conditional code.
8452         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
8453         (__protocol_available): Remove #if 0 code.
8454         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
8455         conditional code.
8456         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
8457         * sysdeps/unix/sysv/linux/kernel-features.h
8458         (__ASSUME_GETCWD_SYSCALL): Don't define.
8459         (__ASSUME_REALTIME_SIGNALS): Likewise.
8460         (__ASSUME_PREAD_SYSCALL): Likewise.
8461         (__ASSUME_PWRITE_SYSCALL): Likewise.
8462         (__ASSUME_POLL_SYSCALL): Likewise.
8463         (__ASSUME_LCHOWN_SYSCALL): Likewise.
8464         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
8465         non-SPARC.
8466         (__ASSUME_SIOCGIFNAME): Don't define.
8467         (__ASSUME_MSG_NOSIGNAL): Likewise.
8468         (__ASSUME_SENDFILE): Define unconditionally.
8469         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
8470         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
8471         conditional code.
8472         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
8473         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
8474         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8475         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8476         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
8477         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
8478         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
8479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
8480         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8481         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
8483         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8484         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8485         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
8486         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8487         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8488         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
8489         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8490         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
8492         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8493         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8494         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
8495         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
8496         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
8498         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8499         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
8501         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8502         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8503         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
8504         Remove conditional code.
8505         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8506         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8507         Remove conditional code.
8508         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8509         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
8510         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
8511         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8512         Remove conditional code.
8513         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8514         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
8515         Remove conditional code.
8516         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8517         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
8518         Remove conditional code.
8519         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8520         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
8521         Remove conditional code.
8522         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
8523         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
8524         Remove conditional code.
8525         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8526         * sysdeps/unix/sysv/linux/sh/pwrite64.c
8527         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
8528         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
8529         * sysdeps/unix/sysv/linux/sigaction.c
8530         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8531         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8532         * sysdeps/unix/sysv/linux/sigpending.c
8533         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8534         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8535         * sysdeps/unix/sysv/linux/sigprocmask.c
8536         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8537         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8538         * sysdeps/unix/sysv/linux/sigsuspend.c
8539         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
8540         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
8541         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
8542         (__libc_missing_rt_sigs): Remove.
8543         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
8544         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
8545         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
8546         Remove conditional code.
8547         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
8548         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
8549         return 1.
8550         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
8551         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
8552         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
8553         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
8555 2012-05-14  Andreas Jaeger  <aj@suse.de>
8557         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
8558         it's not used in glibc.
8559         (__coshm1): Likewise.
8560         (__acosh1p): Likewise.
8561         (__sgn): Likewise.
8563         * manual/string.texi (Copying and Concatenation): Add missing
8564         variable in concat example.
8565         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
8567 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8569         [BZ #14103]
8570         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
8571         __builtin_clzl with __builtin_clzll.
8573 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
8575         [BZ #14104]
8576         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
8577         libc_freeres_ptr.
8579 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8581         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
8582         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
8583         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
8584         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
8586 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
8588         * NEWS: Update ia64 info.
8590 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
8592         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
8593         used as bcopy.
8595 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
8597         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
8598         * sysdeps/unix/syscalls.list (dup3): Likewise.
8599         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
8600         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
8602 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8604         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
8605         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
8607 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
8609         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
8610         thread pointer.
8611         (TLS_IE): Use mov/add instead of movq/addq to load thread
8612         pointer.
8613         (TLS_GD_PREFIX): New.
8614         (TLS_GD): Use it.
8616 2012-05-11  David S. Miller  <davem@davemloft.net>
8618         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
8619         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
8620         (_FPU_SETCW): Likewise.
8622 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8624         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
8625         is 32-byte aligned.
8627 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
8629         [BZ #11837]
8630         * iconvdata/gb18030.c: Update tables.
8631         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
8632         characters specially.
8633         (BODY for TO_LOOP): Add encoding of missing ranges.
8635 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
8637         [BZ #13673]
8638         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
8639         * sysdeps/mach/hurd/dup3.c: Likewise.
8640         * sysdeps/mach/hurd/readlinkat.c: Likewise.
8641         * sysdeps/powerpc/memmove.c:: Likewise.
8643 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8645         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
8646         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
8648 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
8650         * elf/elf.h (R_X86_64_RELATIVE64): New.
8651         (R_X86_64_NUM): Updated.
8652         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8653         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
8654         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
8655         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
8656         tst-quad1pie tst-quad2pie
8657         (modules-names): Add tst-quadmod1 tst-quadmod2.
8658         ($(objpfx)tst-quad1): New dependency.
8659         ($(objpfx)tst-quad2): Likewise.
8660         ($(objpfx)tst-quad1pie): Likewise.
8661         ($(objpfx)tst-quad2pie): Likewise.
8662         * sysdeps/x86_64/tst-quad1.c: New file.
8663         * sysdeps/x86_64/tst-quad1pie.c: New file.
8664         * sysdeps/x86_64/tst-quad2.c: Likewise.
8665         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
8666         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
8667         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
8668         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
8669         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
8671 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8673         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
8674         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
8675         * streams/stropts.h (t_scalar_t): Define type.
8677         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
8678         (_PATH_PRESERVE): Set to "/var/lib".
8679         (_PATH_RWHODIR): Set to "/var/spool/rwho".
8681         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
8682         instead of int.
8684         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
8685         if __dir_mkfile succeeded.
8687         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
8688         checking for _hurd_dtablesize.  Unlock it right after having
8689         finished _hurd_dtable allocation.
8691 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8693         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
8694         * sysdeps/mach/hurd/configure: Regenerated.
8695         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
8696         special-casing to...
8697         * sysdeps/gnu/configure.in: ... this new file.
8698         * sysdeps/unix/sysv/linux/configure: Regenerated.
8699         * sysdeps/gnu/configure: New generated file.
8701         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
8702         for Linux: use nsec instead of usec, as well as:
8703         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
8704         members of type struct timespec.
8705         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
8706         New macros.
8707         (struct stat64): Likewise.
8708         (_STATBUF_ST_NSEC): New macro.
8709         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
8711         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8712         __strtoul_internal rather than strtoul.
8714 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8716         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
8717         and reject them.
8719 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8721         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
8722         which preserves existing values.
8723         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
8725 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8727         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
8728         TIMEOUT values.  Return EINVAL for NFDS values either negative or
8729         greater than FD_SETSIZE.
8731 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8733         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
8734         allocated, call __vm_protect to finish enabling the existing space, and
8735         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
8736         allocate the remainder.
8738 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8740         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
8741         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
8743 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8745         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
8746         sysdeps/mach/hurd/readlink.c.
8748         * posix/tst-sysconf.c (posix_options): Only use
8749         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
8750         _POSIX_SYNCHRONIZED_IO when they are defined
8751         * sysdeps/mach/hurd/bits/posix_opt.h:
8752         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
8753         (_XOPEN_REALTIME): Undefine macro.
8754         (_XOPEN_REALTIME_THREADS): Undefine macro.
8755         (_XOPEN_SHM): Undefine macro.
8756         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
8757         macro to -1.
8758         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
8759         macro to -1.
8760         (_POSIX_ASYNC_IO): Undefine macro.
8761         (_POSIX_PRIORITIZED_IO): Undefine macro.
8762         (_POSIX_SPIN_LOCKS): Define macro to -1.
8764         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
8765         SA_NODEFER, SA_RESETHAND.
8766         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
8767         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
8768         F_DUPFD_CLOEXEC.
8770 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8772         * elf/Makefile (pldd-modules): Define unconditionally.
8774 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8776         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
8778 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8780         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
8781         Return ENOENT when name is empty.
8782         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
8784 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8786         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
8788         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
8790 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8792         Fix mlock in all cases except non-readable pages.
8793         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
8794         instead of VM_PROT_ALL as parameter to __vm_wire function.
8796         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
8797         (__mkdir): When path is `/', just fail with EEXIST.
8798         * sysdeps/mach/hurd/mkdirat.c: Likewise.
8800 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8802         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
8803         <sys/uio.h> (for writev).
8804         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
8805         and <sys/param.h> (for MIN).
8807 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
8809         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
8810         REQUESTED_TIME.  Properly set the remaining time and return EINTR
8811         if interrupted.
8813 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8815         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
8816         Depend on against $(link-rpcuserlibs).
8818 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8820         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
8821         (__libc_stack_end): Do not use attribute_relro.
8822         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
8823         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
8824         to libthread-provided value.
8825         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
8826         attribute_relro.
8828 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8830         [BZ #3748]
8831         * bits/libc-lock.h (__libc_once_get): New macro.
8832         * sysdeps/mach/bits/libc-lock.h: Likewise.
8833         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
8834         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
8835         instead of using implementation details.
8837         * libio/fileops.c: Unconditionally include <kernel-features.h>.
8838         * libio/freopen.c: Likewise.
8839         * libio/freopen64.c: Likewise.
8840         * misc/syslog.c: Likewise.
8841         * nscd/connections.c: Likewise.
8842         * nscd/netgroupcache.c: Likewise.
8843         * sysdeps/posix/getcwd.c: Likewise.
8845 2012-05-10  Roland McGrath  <roland@hack.frob.com>
8847         * math/w_ilogbf.c: Add #include <limits.h>.
8849 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8851         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
8852         path instead of returning without unlocking.
8854         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
8855         immediate-write ioctls.
8856         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
8858 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8860         * sysdeps/mach/hurd/i386/init-first.c (init): Use
8861         __builtin_frame_address instead of making assumptions about the
8862         location of the return address relative to DATA.  Force early load of
8863         the return address.
8864         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
8865         __builtin_frame_address.
8867         dup3 for GNU Hurd.
8868         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
8869         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
8870         implement dup3 and do some further code clean-ups.
8871         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
8872         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
8874 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8876         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
8878         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
8879         HURD_CRITICAL_END around holding _hurd_dtable_lock.
8880         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
8881         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
8882         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
8883         d->port.lock.
8885         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
8886         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
8887         when handler == SIG_ERR, not when handler != SIG_ERR.
8889 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8891         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
8892         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
8893         definitions.
8895         accept4 for GNU Hurd.
8896         * include/sys/socket.h (__libc_accept4): New prototype.
8897         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
8898         to implement __libc_accept4.
8899         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
8900         __libc_accept4.
8901         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
8903         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
8904         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
8905         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
8906         signal-defines.sym.
8908 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8910         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
8912 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
8914         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
8915         assertion on O_CLOEXEC flag.
8916         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
8917         * hurd/intern-fd.c: Likewise.
8918         * hurd/port2fd.c: Likewise.
8920 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8922         [BZ #3906]
8923         * bits/in.h (IPV6_PKTINFO): Define new macro.
8924         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
8926 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8928         [BZ #13954]
8929         [BZ #13955]
8930         [BZ #13956]
8931         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
8932         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
8933         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
8934         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
8935         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
8936         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
8937         * math/libm-test.inc (logb_test) : Additional logb tests.
8939 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
8940             Andreas Jaeger  <aj@suse.de>
8942         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
8943         * configure: Regenerated.
8944         * config.h.in (LINK_OBSOLETE_RPC): New macro.
8945         * config.make.in (link-obsolete-rpc): New substituted variable.
8946         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
8947         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
8948         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8949         (shared-only-routines): Don't set it under [link-obsolete-rpc],
8950         so that libc.a contains the symbols.
8951         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
8952         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
8953         * sunrpc/auth_none.c: Likewise.
8954         * sunrpc/auth_unix.c: Likewise.
8955         * sunrpc/authdes_prot.c: Likewise.
8956         * sunrpc/authuxprot.c: Likewise.
8957         * sunrpc/clnt_gen.c: Likewise.
8958         * sunrpc/clnt_perr.c: Likewise.
8959         * sunrpc/clnt_raw.c: Likewise.
8960         * sunrpc/clnt_simp.c: Likewise.
8961         * sunrpc/clnt_tcp.c: Likewise.
8962         * sunrpc/clnt_udp.c: Likewise.
8963         * sunrpc/clnt_unix.c: Likewise.
8964         * sunrpc/des_crypt.c: Likewise.
8965         * sunrpc/des_soft.c: Likewise.
8966         * sunrpc/get_myaddr.c: Likewise.
8967         * sunrpc/key_call.c: Likewise.
8968         * sunrpc/key_prot.c: Likewise.
8969         * sunrpc/netname.c: Likewise.
8970         * sunrpc/pm_getmaps.c: Likewise.
8971         * sunrpc/pm_getport.c: Likewise.
8972         * sunrpc/pmap_clnt.c: Likewise.
8973         * sunrpc/pmap_prot.c: Likewise.
8974         * sunrpc/pmap_prot2.c: Likewise.
8975         * sunrpc/pmap_rmt.c: Likewise.
8976         * sunrpc/publickey.c: Likewise.
8977         * sunrpc/rpc_cmsg.c: Likewise.
8978         * sunrpc/rpc_common.c: Likewise.
8979         * sunrpc/rpc_dtable.c: Likewise.
8980         * sunrpc/rpc_prot.c: Likewise.
8981         * sunrpc/rpc_thread.c: Likewise.
8982         * sunrpc/rtime.c: Likewise.
8983         * sunrpc/svc.c: Likewise.
8984         * sunrpc/svc_auth.c: Likewise.
8985         * sunrpc/svc_raw.c: Likewise.
8986         * sunrpc/svc_run.c: Likewise.
8987         * sunrpc/svc_tcp.c: Likewise.
8988         * sunrpc/svc_udp.c: Likewise.
8989         * sunrpc/svc_unix.c: Likewise.
8990         * sunrpc/svcauth_des.c: Likewise.
8991         * sunrpc/xcrypt.c: Likewise.
8992         * sunrpc/xdr.c: Likewise.
8993         * sunrpc/xdr_array.c: Likewise.
8994         * sunrpc/xdr_float.c: Likewise.
8995         * sunrpc/xdr_intXX_t.c: Likewise.
8996         * sunrpc/xdr_mem.c: Likewise.
8997         * sunrpc/xdr_rec.c: Likewise.
8998         * sunrpc/xdr_ref.c: Likewise.
8999         * sunrpc/xdr_sizeof.c: Likewise.
9000         * sunrpc/xdr_stdio.c: Likewise.
9002 2012-05-10  Roland McGrath  <roland@hack.frob.com>
9004         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
9005         change.  Update copyright years.
9007 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9009         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
9011 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
9012             Joseph Myers  <joseph@codesourcery.com>
9013             Paul Pluzhnikov  <ppluzhnikov@google.com>
9015         [BZ #14012]
9016         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
9017         requiring rpcgen.
9018         [cross-compiling] (extra-libs): Likewise.
9019         [cross-compiling] (extra-libs-others): Likewise.
9020         [cross-compiling] (librpcsvc-routines): Likewise.
9021         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
9022         [cross-compiling] (omit-deps): Likewise.
9023         (sunrpc-CPPFLAGS): New variable.
9024         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
9025         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
9026         (cross-rpcgen-objs): New variable.
9027         (extra-objs): Append $(cross-rpcgen-objs).
9028         ($(cross-rpcgen-objs)): New rule.
9029         ($(objpfx)cross-rpcgen): Likewise.
9030         (rpcgen-cmd): Define to use $(built-program-file).  Expand
9031         comment.
9032         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
9033         ($(objpfx)x%.stmp): Likewise.
9034         * sunrpc/proto.h [IS_IN_build] (_): Define.
9035         [IS_IN_build] (_libc_intl_domainname): Likewise.
9037 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9039         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
9040         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
9041         and R_X86_64_TPOFF64.
9043 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
9045         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
9046         sysdeps/unix/sysv/syscalls.list.
9047         (stime): Likewise.
9048         (utime): Likewise.
9049         * sysdeps/unix/sysv/syscalls.list: Remove file.
9051 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
9053         [BZ #3440]
9054         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
9055         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
9056         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
9057         (__LC_IDENTIFICATION): Make these macros useful in #if
9058         expressions, as required by C99.
9060 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
9062         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
9063         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
9064         after this.
9066 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9068         * stdlib/longlong.h: Updated from GCC.
9070 2012-05-09  Andreas Jaeger  <aj@suse.de>
9072         * nscd/nscd.c (run_modes): Make named enum, reorder so that
9073         default is first entry.
9074         (run_mode): Set type.
9075         (main): Remove informal message about syslog.
9076         (options): Fix typo.
9078         [BZ #14053]
9079         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
9080         to asm.
9081         (lrint): Likewise.
9082         (llrintf): Likewise.
9083         (llrint): Likewise.
9084         (rint): Likewise.
9085         (rintf): Likewise.
9086         (nearbyint): Likewise.
9087         (nearbyintf): Likewise.
9089 2012-05-09  Andreas Jaeger  <aj@suse.de>
9090             Pedro Alves  <palves@redhat.com>
9092         * nscd/nscd.c (run_mode): Use enum.
9093         (main): Cleanup coding style issue.
9095 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
9096             Andreas Jaeger  <aj@suse.de>
9098         * nscd/nscd.c (go_background): Replaced with...
9099         (run_mode): ... this.
9100         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
9101         (options): Add -F --foreground.
9102         (main): Implement it.
9103         (parse_opt): Parse it.
9105 2012-05-09  Andreas Jaeger  <aj@suse.de>
9107         [BZ #14083]
9108         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
9109         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
9110         -Wconversion warning.
9111         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
9112         Likewise.
9114 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
9116         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
9117         == 0.
9118         (LC_ALL): Use macro-int-constant.
9119         (LC_COLLATE): Likewise.
9120         (LC_CTYPE): Likewise.
9121         (LC_MESSAGES): Likewise.
9122         (LC_MONETARY): Likewise.
9123         (LC_NUMERIC): Likewise.
9124         (LC_TIME): Likewise.
9125         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
9126         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9127         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9128         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
9129         Specify type.
9130         [C99-based standards] (float_t): Expect type.
9131         [C99-based standards] (double_t): Expect type.
9132         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
9133         type.
9134         [C99-based standards] (HUGE_VALL): Likewise.
9135         [C99-based standards] (INFINITY): Likewise.
9136         [C99-based standards] (NAN): Likewise.
9137         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
9138         [C99-based standards] (FP_NAN): Likewise.
9139         [C99-based standards] (FP_NORMAL): Likewise.
9140         [C99-based standards] (FP_SUBNORMAL): Likewise.
9141         [C99-based standards] (FP_ZERO): Likewise.
9142         [C99-based standards] (FP_FAST_FMA): Use
9143         optional-macro-int-constant.  Specify type.  Require == 1.
9144         [C99-based standards] (FP_FAST_FMAF): Likewise.
9145         [C99-based standards] (FP_FAST_FMAL): Likewise.
9146         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
9147         [C99-based standards] (FP_ILOGBNAN): Likewise.
9148         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
9149         Specify type.
9150         [C99-based standards] (MATH_ERREXCEPT): Likewise.
9151         [C99-based standards] (math_errhandling): Specify type.
9152         [ISO99 || ISO11] (signgam): Do not allow.
9153         [non-C99-based standards] (copysignf): Do not allow.
9154         [non-C99-based standards] (exp2f): Likewise.
9155         [non-C99-based standards] (log2f): Likewise.
9156         [non-C99-based standards] (modff): Allow.
9157         [non-C99-based standards] (erff): Do not allow.
9158         [non-C99-based standards] (erfcf): Likewise.
9159         [non-C99-based standards] (gammaf): Likewise.
9160         [non-C99-based standards] (hypotf): Likewise.
9161         [non-C99-based standards] (j0f): Likewise.
9162         [non-C99-based standards] (j1f): Likewise.
9163         [non-C99-based standards] (jnf): Likewise.
9164         [non-C99-based standards] (lgammaf): Likewise.
9165         [non-C99-based standards] (tgammaf): Likewise.
9166         [non-C99-based standards] (y0f): Likewise.
9167         [non-C99-based standards] (y1f): Likewise.
9168         [non-C99-based standards] (ynf): Likewise.
9169         [non-C99-based standards] (isnanf): Likewise.
9170         [non-C99-based standards] (acoshf): Likewise.
9171         [non-C99-based standards] (asinhf): Likewise.
9172         [non-C99-based standards] (atanhf): Likewise.
9173         [non-C99-based standards] (cbrtf): Likewise.
9174         [non-C99-based standards] (expm1f): Likewise.
9175         [non-C99-based standards] (ilogbf): Likewise.
9176         [non-C99-based standards] (log1pf): Likewise.
9177         [non-C99-based standards] (logbf): Likewise.
9178         [non-C99-based standards] (nextafterf): Likewise.
9179         [non-C99-based standards] (remainderf): Likewise.
9180         [non-C99-based standards] (rintf): Likewise.
9181         [non-C99-based standards] (scalbf): Likewise.
9182         [non-C99-based standards] (copysignl): Likewise.
9183         [non-C99-based standards] (exp2l): Likewise.
9184         [non-C99-based standards] (log2l): Likewise.
9185         [non-C99-based standards] (modfl): Allow.
9186         [non-C99-based standards] (erfl): Do not allow.
9187         [non-C99-based standards] (erfcl): Likewise.
9188         [non-C99-based standards] (gammal): Likewise.
9189         [non-C99-based standards] (hypotl): Likewise.
9190         [non-C99-based standards] (j0l): Likewise.
9191         [non-C99-based standards] (j1l): Likewise.
9192         [non-C99-based standards] (jnl): Likewise.
9193         [non-C99-based standards] (lgammal): Likewise.
9194         [non-C99-based standards] (tgammal): Likewise.
9195         [non-C99-based standards] (y0l): Likewise.
9196         [non-C99-based standards] (y1l): Likewise.
9197         [non-C99-based standards] (ynl): Likewise.
9198         [non-C99-based standards] (isnanl): Likewise.
9199         [non-C99-based standards] (acoshl): Likewise.
9200         [non-C99-based standards] (asinhl): Likewise.
9201         [non-C99-based standards] (atanhl): Likewise.
9202         [non-C99-based standards] (cbrtl): Likewise.
9203         [non-C99-based standards] (expm1l): Likewise.
9204         [non-C99-based standards] (ilogbl): Likewise.
9205         [non-C99-based standards] (log1pl): Likewise.
9206         [non-C99-based standards] (logbl): Likewise.
9207         [non-C99-based standards] (nextafterl): Likewise.
9208         [non-C99-based standards] (remainderl): Likewise.
9209         [non-C99-based standards] (rintl): Likewise.
9210         [non-C99-based standards] (scalbl): Likewise.
9211         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9212         [non-C99-based standards] (FP_*): Do not allow.
9213         [C99-based standards] (FP_*): Change to
9214         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
9215         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9216         allow.
9217         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
9218         (SIG_ERR): Likewise.
9219         [X/Open-based standards] (SIG_HOLD): Likewise.
9220         (SIG_IGN): Likewise.
9221         (SIGABRT): Use macro-int-constant.  Specify type.  Require
9222         positive value.
9223         (SIGFPE): Likewise.
9224         (SIGILL): Likewise.
9225         (SIGINT): Likewise.
9226         (SIGSEGV): Likewise.
9227         (SIGTER): Likewise.
9228         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
9229         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
9230         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
9231         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
9232         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
9233         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
9234         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
9235         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
9236         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
9237         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
9238         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
9239         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
9240         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
9241         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
9242         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
9243         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
9244         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
9245         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
9246         [X/Open-based standards] (SIGTRAP): Likewise.
9247         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
9248         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
9249         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
9250         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
9251         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9252         allow.
9254 2012-05-08  Ian Wienand  <ianw@vmware.com>
9256         [BZ #14080]
9257         * time/tzset.c (__tzset_parse_tz): Update default rules for
9258         daylight time changes in the Energy Policy Act of 2005.
9260 2012-05-09  Andreas Jaeger  <aj@suse.de>
9262         [BZ #13983]
9263         * elf/ldconfig.c (parse_conf): Change string to make clear that
9264         ldconfig only issued a warning if ld.so.conf does not exist.
9266 2012-05-08  David S. Miller  <davem@davemloft.net>
9268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
9269         movxtod instead of popping the value on the stack.
9271         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9273 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
9275         * config.h.in: Add HAVE_ARM_PCS_VFP.
9277 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
9279         [BZ #13979]
9280         * include/features.h: Warn if user requests __FORTIFY_SOURCE
9281         checking but the checks are disabled for any reason.
9283 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
9285         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
9286         and ELF64_R_TYPE with ELFW(R_TYPE).
9288 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
9290         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
9291         (ulimit): Likewise.
9293         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
9294         (settimeofday): Likewise.
9296 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
9298         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
9299         a struct th_u2 inside the union, and move tu_block/tu_code into
9300         a new th_u3 union of tu_block/tu_code inside of that.  Move
9301         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
9302         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
9303         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
9304         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
9305         (th_stuff): Change to th_u1.tu_stuff.
9306         (th_data): Define.
9307         (th_msg): Change to th_u1.th_u2.tu_data.
9309 2012-05-07  David S. Miller  <davem@davemloft.net>
9311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9313         [BZ #14074]
9314         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
9315         (SETUP_PIC_REG): Use it.
9316         (SETUP_PIC_REG_LEAF): Use it.
9318 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
9320         [BZ #13885]
9321         [BZ #13923]
9322         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9323         USE_AS_EXPM1L.
9324         (EXPL_FINITE): Likewise.
9325         (FLDLOG): Likewise.
9326         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9327         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9328         e_expl.S.
9329         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9330         USE_AS_EXPM1L.
9331         (EXPL_FINITE): Likewise.
9332         (FLDLOG): Likewise.
9333         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
9334         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
9335         e_expl.S.
9336         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
9337         test of -max_value argument for long double.
9338         * sysdeps/i386/fpu/libm-test-ulps: Update.
9339         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9341 2012-05-06  David S. Miller  <davem@davemloft.net>
9343         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
9344         quad soft-float symbols whose references which are compiler
9345         generated.
9346         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
9348 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
9350         [BZ #13884]
9351         [BZ #13914]
9352         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9353         USE_AS_EXP10L.
9354         (EXPL_FINITE): Likewise.
9355         (FLDLOG): Likewise.
9356         (c0): Likewise.
9357         (c1): Likewise.
9358         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9359         Adjust comments for base varying.
9360         (__expl_finite): Change alias to EXPL_FINITE.
9361         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
9362         e_expl.S.
9363         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
9364         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
9365         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
9366         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
9367         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
9368         USE_AS_EXP10L.
9369         (EXPL_FINITE): Likewise.
9370         (FLDLOG): Likewise.
9371         (c0): Likewise.
9372         (c1): Likewise.
9373         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
9374         Adjust comments for base varying.
9375         (__expl_finite): Change alias to EXPL_FINITE.
9376         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
9377         tests for bugs.
9378         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9380         [BZ #14064]
9381         * math/libm-test.inc (check_float_internal): Correct ulp
9382         calculation for subnormal expected results.
9384 2012-05-06  Andreas Jaeger  <aj@suse.de>
9386         * Makeconfig (+math-flags): New, set to -frounding-math.
9387         (+cflags): Add +math-flags so that all of glibc gets compiled with
9388         it.
9390         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
9392 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
9394         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
9395         Disable one test.
9397         [BZ #13787]
9398         [BZ #13922]
9399         [BZ #14036]
9400         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
9401         (__ieee754_expl): Allow for and saturate large arguments.
9402         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
9403         (u_threshold): Likewise.
9404         (__exp): Call __ieee754_exp before checking for overflow and
9405         underflow.
9406         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
9407         (u_threshold): Likewise.
9408         (__expf): Call __ieee754_expf before checking for overflow and
9409         underflow.
9410         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
9411         (u_threshold): Likewise.
9412         (__expl): Call __ieee754_expl before checking for overflow and
9413         underflow.
9414         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
9415         (__ieee754_expl): Allow for and saturate large arguments.
9416         * math/libm-test.inc (exp_test): Add another test.  Do not allow
9417         missing overflow exception on overflow.
9418         (expm1_test): Do not allow missing overflow exception on overflow.
9420         * sysdeps/i386/fpu/e_expl.c: Move to ...
9421         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
9422         rather than using inline asm.
9423         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
9424         * sysdeps/x86_64/fpu/e_expl.S: Copy from
9425         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
9427         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
9428         (nice): Likewise.
9429         (poll): Likewise.
9430         (signal): Likewise.
9431         (time): Likewise.
9432         (times): Likewise.
9434 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9436         * sysdeps/unix/syscalls.list (adjtime): Add entry from
9437         sysdeps/unix/common/syscalls.list.
9438         (fchmod): Likewise.
9439         (fchown): Likewise.
9440         (ftruncate): Likewise.
9441         (getrusage): Likewise.
9442         (gettimeofday): Likewise.
9443         (setpgid): Likewise.
9444         (setregid): Likewise.
9445         (setreuid): Likewise.
9446         (sigaction): Likewise.
9447         (truncate): Likewise.
9448         (vhangup): Likewise.
9449         * sysdeps/unix/common/syscalls.list: Remove file.
9450         * sysdeps/unix/bsd/Implies: Don't include unix/common.
9451         * sysdeps/unix/sysv/linux/Implies: Likewise.
9453 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9455         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
9456         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
9457         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
9458         Moved to ...
9459         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9460         Here.
9461         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
9462         to ...
9463         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
9464         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
9465         to ...
9466         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
9467         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
9468         to ...
9469         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
9470         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
9471         to ...
9472         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
9473         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
9474         to ...
9475         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
9476         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
9477         to ...
9478         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
9479         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
9480         to ...
9481         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
9482         Here.
9483         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
9484         to ...
9485         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
9486         Here.
9487         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
9488         to ...
9489         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
9490         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
9491         Moved to ...
9492         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
9493         Here.
9494         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
9495         to ...
9496         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
9498 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9500         * sysdeps/unix/common/bits/dirent.h: Remove file.
9501         * sysdeps/unix/common/bits/fcntl.h: Likewise.
9503         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
9504         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
9505         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
9506         * sysdeps/unix/bsd/isatty.c: Likewise.
9507         * sysdeps/unix/bsd/tcdrain.c: Likewise.
9508         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
9509         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
9511 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9513         [BZ #13563]
9514         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
9515         long double comparison inaccuracies.
9516         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
9517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9519 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
9521         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
9522         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
9524 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
9526         [BZ #14049]
9527         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
9528         nonzero digits before rounding a hex value.
9529         * stdlib/tst-strtod.c (tests): Add another test.
9531 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9533         * sysdeps/s390/fpu/libm-test-ulps: Update.
9535 2012-05-03  Andreas Jaeger  <aj@suse.de>
9537         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
9538         does not get optimized out.
9539         (malloc_opt_barrier): New.
9541 2012-05-03  Andreas Jaeger  <aj@suse.de>
9542             Roland McGrath  <roland@hack.frob.com>
9544         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
9545         intermediate file deletion.
9546         (generated): Add .symlist files.
9548 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
9550         [BZ #13775]
9551         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
9552         Redirect under this condition.
9553         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9554         [__USE_GNU] (__dprintf_chk): Not under this condition.
9555         [__USE_GNU] (__vdprintf_chk): Likewise.
9556         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
9557         under this condition.
9558         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
9559         [__USE_XOPEN2K8] (dprintf): Define under this condition.
9560         [__USE_XOPEN2K8] (vdprintf): Likewise.
9561         [__USE_GNU] (__dprintf_chk): Not under this condition.
9562         [__USE_GNU] (__vdprintf_chk): Likewise.
9563         [__USE_GNU] (dprintf): Likewise.
9564         [__USE_GNU] (vdprintf): Likewise.
9566 2012-05-03  Roland McGrath  <roland@hack.frob.com>
9568         * elf/Makefile (common-generated): Set this instead of generated for
9569         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
9570         $(all-built-dso)-derived lists.
9572 2012-05-03  Andreas Jaeger  <aj@suse.de>
9574         * sysdeps/i386/fpu/libm-test-ulps: Update.
9576         * FAQ: Removed.
9577         * FAQ.in: Likewise.
9578         * scripts/gen-FAQ.pl: Likewise.
9579         * manual/install.texi (Installation): Point to online location of
9580         FAQ.
9581         * Makefile (files-for-dist): Remove FAQ.
9582         (FAQ): Remove.
9584 2012-05-02  Allan McRae  <allan@archlinux.org>
9586         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
9587         (LDFLAGS-reldepmod5.so): Likewise.
9588         (LDFLAGS-reldep6mod1.so): Likewise.
9589         (LDFLAGS-reldep6mod4.so): Likewise.
9590         (LDFLAGS-reldep8mod3.so): Likewise.
9591         (LDFLAGS-unload4mod1.so): Likewise.
9592         (LDFLAGS-unload4mod2.so): Likewise.
9593         (LDFLAGS-tst-initorder): Likewise.
9594         (LDFLAGS-tst-initordera2.so): Likewise.
9595         (LDFLAGS-tst-initordera3.so): Likewise.
9596         (LDFLAGS-tst-initordera4.so): Likewise.
9597         (LDFLAGS-tst-initorderb2.so): Likewise.
9598         (LDFLAGS-noload): Likewise.
9599         (LDFLAGS-next): Likewise.
9600         (LDFLAGS-order2mod1.so): Likewise.
9601         (LDFLAGS-order2mod2.so): Likewise.
9602         (LDFLAGS-tst-initorder2): Likewise.
9603         (LDFLAGS-tst-initorder2a.so): Likewise.
9604         (LDFLAGS-tst-initorder2b.so): Likewise.
9605         (LDFLAGS-tst-initorder2c.so): Likewise.
9606         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
9608 2012-05-02  David S. Miller  <davem@davemloft.net>
9610         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9612 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
9614         [BZ #14055]
9615         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
9617 2012-05-02  Andreas Jaeger  <aj@suse.de>
9619         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
9620         since we manipulate rounding mode.
9621         (CPPFLAGS-test-idouble.c): Likewise.
9622         (CPPFLAGS-test-ifloat.c): Likewise.
9623         (CFLAGS-test-ldouble.c): Likewise.
9624         (CFLAGS-test-double.c): Likewise.
9625         (CFLAGS-test-float.c): Likewise.
9626         (CFLAGS-test-misc.c): Likewise.
9627         (CFLAGS-test-test-fenv.c): Likewise.
9629 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9631         [BZ #2550]
9632         [BZ #2570]
9633         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
9634         comparisons to determine direction to adjust input.
9636 2012-05-01  Roland McGrath  <roland@hack.frob.com>
9638         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
9639         output to the target.
9641         * scripts/localplt.awk: New file.
9642         * elf/Makefile ($(objpfx)check-localplt): Target removed.
9643         (check-localplt-CFLAGS): Variable removed.
9644         ($(all-built-dso:=.jmprel)): New static pattern rule.
9645         (generated): Add those targets.
9646         (localplt-built-dso): New variable.
9647         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
9649         * elf/check-localplt.c: File removed.
9651         * scripts/check-execstack.awk: New file.
9652         * elf/Makefile ($(objpfx)check-execstack): Target removed.
9653         (check-execstack-CFLAGS): Variable removed.
9654         ($(objpfx)check-execstack.h): Target removed.
9655         ($(objpfx)execstack-default): New target.
9656         (generated): Add that instead of check-execstack.h.
9657         ($(all-built-dso:=.phdr)): New static pattern rule.
9658         (generated): Add those targets.
9659         * elf/check-execstack.c: File removed.
9661         * scripts/check-textrel.awk: New file.
9662         * elf/Makefile ($(objpfx)check-textrel): Target removed.
9663         (check-textrel-CFLAGS): Variable removed.
9664         (all-built-dso): Use := to define.o
9665         ($(all-built-dso:=.dyn)): New static pattern rule.
9666         (generated): Add those targets.
9667         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
9668         * config.make.in (READELF): New substituted variable.
9669         * elf/check-textrel.c: File removed.
9671 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
9673         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
9674         allow.
9675         * conform/data/ctype.h-data [C99-based standards] (isblank):
9676         Expect function.
9677         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
9678         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
9679         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9680         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
9681         Specify type.  Require positive value.
9682         (EILSEQ): Likewise.
9683         (ERANGE): Likewise.
9684         [ISO || POSIX] (EILSEQ): Do not expect.
9685         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
9686         Specify type.  Require positive value.
9687         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
9688         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
9689         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
9690         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
9691         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
9692         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
9693         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
9694         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
9695         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
9696         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
9697         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
9698         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
9699         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
9700         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
9701         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
9702         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
9703         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
9704         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
9705         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
9706         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
9707         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
9708         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
9709         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
9710         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
9711         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
9712         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
9713         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
9714         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
9715         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
9716         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
9717         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
9718         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
9719         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
9720         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
9721         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
9722         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
9723         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
9724         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
9725         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
9726         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
9727         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
9728         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
9729         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
9730         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
9731         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
9732         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
9733         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
9734         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
9735         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
9736         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
9737         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
9738         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
9739         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
9740         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
9741         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
9742         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
9743         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
9744         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
9745         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
9746         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
9747         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
9748         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
9749         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
9750         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
9751         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
9752         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
9753         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
9754         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
9755         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
9756         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
9757         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
9758         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
9759         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
9760         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
9761         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
9762         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
9763         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
9764         Require >= 2.
9765         (FLT_ROUNDS): Expect as macro, not constant.
9766         (FLT_MANT_DIG): Use macro-int-constant.
9767         (DBL_MANT_DIG): Likewise.
9768         (LDBL_MANT_DIG): Likewise.
9769         (FLT_DIG): Likewise.
9770         (DBL_DIG): Likewise.
9771         (LDBL_DIG): Likewise.
9772         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
9773         (DBL_MIN_EXP): Likewise.
9774         (LDBL_MIN_EXP): Likewise.
9775         (FLT_MAX_EXP): Use macro-int-constant.
9776         (DBL_MAX_EXP): Likewise.
9777         (LDBL_MAX_EXP): Likewise.
9778         (FLT_MAX_10_EXP): Likewise.
9779         (DBL_MAX_10_EXP): Likewise.
9780         (LDBL_MAX_10_EXP): Likewise.
9781         (FLT_MAX): Use macro-constant.
9782         (DBL_MAX): Likewise.
9783         (LDBL_MAX): Likewise.
9784         (FLT_EPSILON): Use macro-constant.  Give upper bound.
9785         (DBL_EPSILON): Likewise.
9786         (LDBL_EPSILON): Likewise.
9787         (FLT_MIN): Likewise.
9788         (DBL_MIN): Likewise.
9789         (LDBL_MIN): Likewise.
9790         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
9791         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
9792         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
9793         [ISO11] (FLT_HAS_SUBNORM): Likewise.
9794         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
9795         [ISO11] (DBL_DECIMAL_DIG): Likewise.
9796         [ISO11] (FLT_DECIMAL_DIG): Likewise.
9797         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
9798         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
9799         [ISO11] (FLT_TRUE_MIN): Likewise.
9800         [ISO11] (LDBL_TRUE_MIN): Likewise.
9801         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9802         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
9803         (SCHAR_MIN): Use macro-int-constant.  Specify type.
9804         (SCHAR_MAX): Likewise.
9805         (UCHAR_MAX): Likewise.
9806         (CHAR_MIN): Likewise.
9807         (CHAR_MAX): Likewise.
9808         (MB_LEN_MAX): Use macro-int-constant.
9809         (SHRT_MIN): Use macro-int-constant.  Specify type.
9810         (SHRT_MAX): Likewise.
9811         (USHRT_MAX): Likewise.
9812         (INT_MAX): Likewise.
9813         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
9814         bound negative.
9815         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9816         bound with "U".
9817         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9818         bound with "L".
9819         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
9820         bound negative.  Suffix upper bound with "L".
9821         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
9822         bound with "UL".
9823         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
9824         Specify type.
9825         [C99-based standards] (LLONG_MAX): Likewise.
9826         [C99-based standards] (ULLONG_MAX): Likewise.
9827         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
9828         == 0.
9829         [ISO11] (max_align_t): Require type.
9830         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9832         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
9833         from $CFLAGS, without defining away __attribute__ calls.
9834         (checknamespace): Use $CFLAGS_namespace.
9836         * conform/conformtest.pl (@keywords): Only include C99 keywords
9837         for standards based on C99 or C11.
9839         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
9840         Disable tests.
9841         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
9842         UNIX98]: Likewise.
9844         * conform/conformtest.pl: Handle "macro-int-constant" and test for
9845         usability of symbols in #if.
9847         * conform/conformtest.pl: If macro or constant types start
9848         "promoted:", expect the symbol to be of the following type
9849         promoted by the integer promotions.
9851         * conform/conformtest.pl: Parse all "constant" and "macro" lines
9852         in one place.  Also handle "macro-constant".
9854         * conform/conformtest.pl: Only accept expected macro values with
9855         "==".  Parse all "macro" lines in one place.
9856         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
9858         * conform/conformtest.pl: Handle braced types on "constant" lines
9859         instead of handling "typed-constant".
9860         * conform/data/signal.h-data: Use "constant" instead of
9861         "typed-constant".
9863         * conform/conformtest.pl: Handle "optional-" at start of lines in
9864         one place rather than duplicating several cases.  Handle each
9865         format of "macro" line with initial "optional-".
9867         * conform/conformtest.pl: Only accept expected constant or
9868         optional-constant values with "==".  Parse all "constant" lines in
9869         one place.  Parse all "optional-constant" lines in one place.
9870         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
9871         * conform/data/fmtmsg.h-data: Likewise.
9872         * conform/data/netinet/in.h-data: Likewise.
9873         * conform/data/tar.h-data: Likewise.
9874         * conform/data/limits.h-data: Use "==" form on "constant" and
9875         "optional-constant" lines.
9877         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
9878         Use -std=c99 for XOPEN2K.
9879         (@knownproblems): Remove.
9880         (newtoken): Don't check %isknown.
9882         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
9883         Do not expect macro.
9884         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
9885         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
9886         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
9887         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
9888         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
9889         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
9890         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
9891         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
9892         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
9893         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
9894         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
9895         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
9896         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
9897         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
9898         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
9899         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
9900         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
9901         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
9902         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
9903         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
9904         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
9905         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
9906         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
9907         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
9908         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
9909         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
9910         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
9911         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
9912         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
9913         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
9914         [XPG3] (acosh): Likewise.
9915         [XPG3] (asinh): Likewise.
9916         [XPG3] (atanh): Likewise.
9917         [XPG3] (cbrt): Likewise.
9918         [XPG3] (expm1): Likewise.
9919         [XPG3] (ilogb): Likewise.
9920         [XPG3] (log1p): Likewise.
9921         [XPG3] (logb): Likewise.
9922         [XPG3] (nextafter): Likewise.
9923         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
9924         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
9925         [XPG3] (remainder): Likewise.
9926         [XPG3] (rint): Likewise.
9927         [XPG3 || XPG4 || UNIX98] (round): Likewise.
9928         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
9929         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
9930         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
9931         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
9932         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
9933         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
9934         [UNIX98 || XOPEN2K] (scalb): Expect.
9935         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
9936         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
9937         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
9938         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
9939         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
9940         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
9941         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
9942         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
9943         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
9944         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
9945         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
9946         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
9947         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
9948         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
9949         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
9950         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
9951         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
9952         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
9953         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
9954         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
9955         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
9956         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
9957         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
9958         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
9959         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
9960         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
9961         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
9962         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
9963         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
9964         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
9965         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
9966         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
9967         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
9968         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
9969         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
9970         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
9971         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
9972         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
9973         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
9974         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
9975         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
9976         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
9977         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
9978         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
9979         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
9980         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
9981         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
9982         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
9983         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
9984         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
9985         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
9986         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
9987         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
9988         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
9989         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
9990         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
9991         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
9992         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
9993         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
9994         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
9995         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
9996         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
9997         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
9998         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
9999         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
10000         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
10001         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
10002         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
10003         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
10004         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
10005         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
10006         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
10007         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
10008         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
10009         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
10010         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
10011         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
10012         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
10013         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
10014         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
10015         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
10016         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
10017         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
10018         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
10019         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
10020         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
10021         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
10022         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
10023         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
10024         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
10025         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
10026         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
10027         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
10028         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
10029         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
10030         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
10031         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
10032         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
10033         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
10034         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
10035         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
10036         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
10037         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
10038         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
10039         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
10040         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
10041         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
10042         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
10043         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
10044         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
10045         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
10046         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
10047         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
10048         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
10049         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
10050         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
10051         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
10052         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
10053         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
10054         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
10055         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
10056         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
10057         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
10058         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
10059         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
10060         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
10061         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
10062         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
10063         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
10064         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
10065         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
10066         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
10067         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
10068         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
10069         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
10070         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
10071         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
10073         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
10074         _XOPEN_SOURCE_EXTENDED for XPG4.
10076         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
10078         * Makeconfig (localtime): Remove variable.
10079         (inst_localtime-file): Likewise.
10081 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10083         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
10084         Update.
10085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
10086         Update.
10087         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
10088         Update.
10089         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
10090         Update.
10091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
10092         Update.
10093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
10094         Update.
10095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
10096         Update.
10097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
10098         Update.
10099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10100         Update.
10102 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
10104         [BZ #2550]
10105         [BZ #2570]
10106         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
10107         comparisons to determine direction to adjust input.
10108         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
10109         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
10110         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
10111         Likewise.
10112         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
10113         Likewise.
10114         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
10115         Likewise.
10116         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
10117         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
10118         Likewise.
10119         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
10120         Likewise.
10121         * math/libm-test.inc (nexttoward_test): Add more tests.
10123 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10125         [BZ #14040]
10126         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
10127         in version GLIBC_2.1, not GLIBC_2.0.
10128         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
10129         Likewise.
10131 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
10133         [BZ #13942]
10134         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
10135         (1 - x) * (1 + x).
10136         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10137         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
10138         * math/libm-test.inc (acos_test): Add more tests.
10139         (asin_test): Likewise.
10140         * sysdeps/i386/fpu/libm-test-ulps: Update.
10141         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10143         [BZ #14034]
10144         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
10145         of square root.
10146         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
10147         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
10148         * math/libm-test.inc (acos_test_tonearest): New function.
10149         (acos_test_towardzero): Likewise.
10150         (acos_test_downward): Likewise.
10151         (acos_test_upward): Likewise.
10152         (asin_test_tonearest): Likewise.
10153         (asin_test_towardzero): Likewise.
10154         (asin_test_downward): Likewise.
10155         (asin_test_upward): Likewise.
10156         (main): Call the new functions.
10157         * sysdeps/i386/fpu/libm-test-ulps: Update.
10158         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10160         [BZ #13884]
10161         [BZ #13924]
10162         * math/e_exp10.c: Include <float.h>.
10163         (__ieee754_exp10): Handle underflow here rather than multiplying
10164         large negative argument by M_LN10.
10165         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
10166         of __ieee754_expf.
10167         * math/e_exp10l.c: Include <float.h>.
10168         (__ieee754_exp10l): Handle underflow here rather than multiplying
10169         large negative argument by M_LN10l.
10170         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
10171         spurious overflow exception on underflow.
10173 2012-04-29  Marek Polacek  <polacek@redhat.com>
10175         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
10176         (__fortify_function): New macro.
10177         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
10178         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
10179         __extern_always_inline.
10180         * libio/bits/stdio2.h: Likewise.
10181         * libio/bits/stdio.h: Likewise.
10182         * string/string.h: Likewise.
10183         * string/bits/string3.h: Likewise.
10184         * include/stdio.h: Likewise.
10185         * stdlib/bits/stdlib.h: Likewise.
10186         * stdlib/stdlib.h: Likewise.
10187         * rt/bits/mqueue2.h: Likewise.
10188         * rt/mqueue.h: Likewise.
10189         * posix/bits/unistd.h: Likewise.
10190         * posix/unistd.h: Likewise.
10191         * io/bits/poll2.h: Likewise.
10192         * io/bits/fcntl2.h: Likewise.
10193         * io/fcntl.h: Likewise.
10194         * io/sys/poll.h: Likewise.
10195         * misc/bits/syslog.h: Likewise.
10196         * misc/bits/syslog-ldbl.h: Likewise.
10197         * misc/sys/syslog.h: Likewise.
10198         * socket/bits/socket2.h: Likewise.
10199         * socket/sys/socket.h: Likewise.
10200         * debug/tst-chk1.c: Likewise.
10201         * wcsmbs/bits/wchar2.h: Likewise.
10202         * wcsmbs/bits/wchar-ldbl.h: Likewise.
10203         * wcsmbs/wchar.h: Likewise.
10205 2012-04-29  Andreas Jaeger  <aj@suse.de>
10207         * Makerules (tests): Remove enable-check-abi protection.
10208         (check-abi-warn): Remove.
10209         (check-abi-%): Remove check-abi-warn usage.
10211         * configure.in: Remove check-abi configure option.
10212         * configure: Regenerated.
10213         * config.make.in (enable-check-abi): Remove.
10215 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
10217         [BZ #14033]
10218         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
10219         double functions to double *_finite functions.
10221         [BZ #13941]
10222         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
10223         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
10224         LDBL_MIN_EXP.
10225         * stdio-common/Makefile (tests): Add tst-sprintf3.
10226         * stdio-common/tst-sprintf3.c: New file.
10228         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
10229         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
10231 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10233         * conform/conformtest.pl: Remove duplicate typed-constant
10234         handling.
10236 2012-04-28  David S. Miller  <davem@davemloft.net>
10238         * Makerules (%.abilist): Add vpath on sysdep_dirs.
10239         (check-abi-%): Remove AWK script prerequisite and explicit
10240         abilist directory.
10241         (check-abi): Rewrite to just diff the symlist with the abilist.
10242         (config-tls, config-abi-config): Delete, no longer used.
10243         (update-abi-%): Remove AWK script and explicit abilist directory.
10244         (update-abi): Rewrite to simply compare and conditionally copy the
10245         symlist and the sysdep abilist file.  Remove update-abi-config
10246         checks.
10247         * abilist/ld.abilist: Remove.
10248         * abilist/libBrokenLocale.abilist: Remove.
10249         * abilist/libanl.abilist: Remove.
10250         * abilist/libcrypt.abilist: Remove.
10251         * abilist/libdl.abilist: Remove.
10252         * abilist/librt.abilist: Remove.
10253         * abilist/libthread_db.abilist: Remove.
10254         * abilist/libutil.abilist: Remove.
10255         * scripts/extract-abilist.awk: Remove.
10256         * scripts/merge-abilist.awk: Remove.
10257         * sysdeps/generic/libcidn.abilist: New file.
10258         * sysdeps/generic/libnss_compat.abilist: New file.
10259         * sysdeps/generic/libnss_db.abilist: New file.
10260         * sysdeps/generic/libnss_dns.abilist: New file.
10261         * sysdeps/generic/libnss_files.abilist: New file.
10262         * sysdeps/generic/libnss_hesiod.abilist: New file.
10263         * sysdeps/generic/libnss_nis.abilist: New file.
10264         * sysdeps/generic/libnss_nisplus.abilist: New file.
10265         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
10266         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
10267         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
10268         file.
10269         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
10270         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
10271         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
10272         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
10273         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
10274         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
10275         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
10276         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
10277         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
10278         file.
10279         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
10280         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
10281         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
10282         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
10283         file.
10284         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
10285         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
10286         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
10287         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
10288         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
10289         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
10290         file.
10291         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
10292         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
10293         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
10294         file.
10295         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
10296         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
10297         New file.
10298         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
10299         New file.
10300         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
10301         New file.
10302         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
10303         New file.
10304         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
10305         New file.
10306         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
10307         New file.
10308         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
10309         New file.
10310         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
10311         New file.
10312         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
10313         New file.
10314         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
10315         New file.
10316         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
10317         New file.
10318         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
10319         New file.
10320         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
10321         New file.
10322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
10323         file.
10324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
10325         New file.
10326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
10327         New file.
10328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
10329         file.
10330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
10331         New file.
10332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
10333         New file.
10334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
10335         file.
10336         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
10337         New file.
10338         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
10339         New file.
10340         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
10341         New file.
10342         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
10343         New file.
10344         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
10345         New file.
10346         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
10347         New file.
10348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
10349         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
10350         file.
10351         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
10352         New file.
10353         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
10354         file.
10355         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
10356         file.
10357         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
10358         file.
10359         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
10360         file.
10361         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
10362         file.
10363         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10364         New file.
10365         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
10366         file.
10367         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
10368         file.
10369         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
10370         New file.
10371         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
10372         file.
10373         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
10374         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
10375         file.
10376         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
10377         New file.
10378         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
10379         file.
10380         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
10381         file.
10382         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
10383         file.
10384         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
10385         file.
10386         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
10387         file.
10388         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10389         New file.
10390         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
10391         file.
10392         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
10393         file.
10394         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
10395         New file.
10396         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
10397         file.
10398         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10399         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
10400         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
10401         file.
10402         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
10403         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
10404         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
10405         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
10406         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
10407         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
10408         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
10409         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
10410         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
10411         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
10412         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
10413         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
10414         file.
10415         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
10416         New file.
10417         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
10418         file.
10419         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
10420         file.
10421         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
10422         file.
10423         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
10424         file.
10425         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
10426         file.
10427         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
10428         New file.
10429         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
10430         New file.
10431         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
10432         file.
10433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
10434         New file.
10435         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
10436         file.
10437         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
10438         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
10439         file.
10440         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
10441         New file.
10442         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
10443         file.
10444         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
10445         file.
10446         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
10447         file.
10448         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
10449         file.
10450         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
10451         file.
10452         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
10453         New file.
10454         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
10455         New file.
10456         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
10457         file.
10458         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
10459         New file.
10460         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
10461         file.
10463 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
10465         * conform/conformtest.pl: Fix typo in handling typed-constant from
10466         allow-header.
10468 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10470         * README: Cut down references to pre-2.6 Linux kernels and
10471         Linuxthreads.  Update lists of configurations in libc and ports
10472         and sort alphabetically.  Say "or newer" with Linux kernel version
10473         requirements.
10475         * config.h.in [IS_IN_build]: Allow compiling without optimization.
10477 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10479         [BZ #887]
10480         * math/libm-test.inc (logb_test_downward): New test to expose
10481         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
10482         rounding mode.
10484 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
10486         [BZ #14027]
10487         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
10488         to be done.
10489         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
10490         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
10492 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
10494         * sysdeps/unix/i386/brk.S: Remove file.
10495         * sysdeps/unix/i386/dl-brk.S: Likewise.
10496         * sysdeps/unix/i386/pipe.S: Likewise.
10497         * sysdeps/unix/i386/sigreturn.S: Likewise.
10498         * sysdeps/unix/i386/syscall.S: Likewise.
10499         * sysdeps/unix/i386/vfork.S: Likewise.
10500         * sysdeps/unix/i386/wait.S: Likewise.
10502         * sysdeps/unix/common/tcsendbrk.c: Move to ...
10503         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
10505         * configure.in (arm*-none*): Do not allow without
10506         --enable-hacker-mode.
10507         (netbsd*): Remove case setting base_os.
10508         (386bsd*): Likewise.
10509         (freebsd*): Likewise.
10510         (bsdi*): Likewise.
10511         (osf*): Likewise.
10512         (sunos*): Likewise.
10513         (ultrix*): Likewise.
10514         (newsos*): Likewise.
10515         (dynix*): Likewise.
10516         (*bsd*): Likewise.
10517         (sysv*): Likewise.
10518         (isc*): Likewise.
10519         (esix*): Likewise.
10520         (sco*): Likewise.
10521         (minix*): Likewise.
10522         (irix4*): Likewise.
10523         (irix6*): Likewise.
10524         (solaris[2-9]*): Likewise.
10525         (none): Likewise.
10526         * configure: Regenerated.
10528 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10530         [BZ #11521]
10531         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
10532         overflow or cancellation in calculating denominator.
10533         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
10534         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
10535         down expression to avoid unexpected rounding in newer GCCs.
10536         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10538 2012-04-26  David S. Miller  <davem@davemloft.net>
10540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
10541         long-double compat symbols.
10542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
10544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
10545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
10546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
10547         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
10548         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
10549         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
10550         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
10551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
10552         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
10553         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
10554         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10556 2012-04-25  David S. Miller  <davem@davemloft.net>
10558         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
10559         HWCAP_* values only after the memory barriers have been defined.
10560         (atomic_full_barrier): Define.
10561         (atomic_read_barrier): Define.
10562         (atomic_write_barrier): Define.
10564 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10566         * shlib-versions: Add libgcc_s version information.
10567         * sysdeps/generic/libgcc_s.h: Remove.
10568         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
10569         libgcc_s.h.
10570         * sysdeps/gnu/unwind-resume.c: Likewise.
10571         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
10573 2012-04-25  David S. Miller  <davem@davemloft.net>
10575         * sysdeps/unix/sparc/brk.S: Delete.
10576         * sysdeps/unix/sparc/dl-brk.S: Delete.
10577         * sysdeps/unix/sparc/pipe.S: Delete.
10578         * sysdeps/unix/sparc/sysdep.S: Delete.
10579         * sysdeps/unix/sparc/sysdep.h: Delete.
10580         * sysdeps/unix/sparc/vfork.S: Delete.
10581         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
10582         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
10583         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
10584         ret_ERRVAL, r0, r1, MOVE): Define.
10585         (JUMPTARGET): Remove.
10586         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
10587         sysdeps/unix/sparc/sysdep.h
10588         (ENTRY, END): Remove.
10589         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10591 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
10593         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
10594         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
10595         -DIS_IN_build.
10597         * timezone/README: Update upstream location and email address for
10598         tzcode and tzdata.
10599         * timezone/zdump.c: Update from tzcode 2012b.
10600         * timezone/zic.c: Likewise.
10602         * configure.in (libc_cv_as_needed): Remove test.
10603         * configure: Regenerated.
10604         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
10605         conditional definition.
10606         [$(have-as-needed) != yes] (no-as-needed): Likewise.
10607         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
10608         * config.make.in (have-as-needed): Remove variable.
10610 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
10611             Paul Pluzhnikov  <ppluzhnikov@google.com>
10613         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
10614         strings correctly.
10616 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
10618         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
10619         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
10620         * sysdeps/sh/strlen.S: Likewise.
10622 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10624         * sysdeps/unix/fork.S: Remove file.
10625         * sysdeps/unix/i386/fork.S: Likewise.
10626         * sysdeps/unix/sparc/fork.S: Likewise.
10628         * sysdeps/unix/system.c: Remove file.
10629         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
10631         * sysdeps/unix/getegid.S: Remove file.
10632         * sysdeps/unix/geteuid.S: Likewise.
10634 2012-04-24  Roland McGrath  <roland@hack.frob.com>
10636         * scripts/check-localplt.awk: New file.
10637         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
10638         of diff.
10639         * scripts/data/localplt-generic.data: Add a comment.
10641         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
10642         NODE when __dir_mkfile failed.
10643         * sysdeps/mach/hurd/symlinkat.c: Likewise.
10644         Reported by Ludovic Courtès <ludo@gnu.org>.
10646 2012-04-24  Andreas Jaeger  <aj@suse.de>
10648         * Makerules (common-clean): Also remove gen-as-const-headers
10649         files.
10651 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10653         * Makerules (native-compile): Do not change working directory for
10654         build.  Use $(OUTPUT_OPTION) in command.
10655         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
10657 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10659         [BZ #13886]
10660         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
10661         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
10662         * math/libm-test.inc (floor_test): Add more tests.
10663         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
10665 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
10667         * sysdeps/unix/getdents.c: Remove file.
10668         * sysdeps/unix/sysv/getdents.c: Likewise.
10669         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
10671         * sysdeps/unix/syscalls.list (madvise): Add syscall from
10672         sysdeps/unix/mman/syscalls.list.
10673         (mmap): Likewise.
10674         (mprotect): Likewise.
10675         (msync): Likewise.
10676         (munmap): Likewise.
10677         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
10678         * sysdeps/unix/mman/syscalls.list: Remove.
10679         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
10681         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
10682         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
10683         * configure: Regenerated.
10684         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
10685         $(libgcc_s_suffix).
10686         * config.make.in (libgcc_s_suffix): Remove variable.
10688 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
10690         * sysdeps/unix/sysv/gethostname.c: Move to ...
10691         * sysdeps/posix/gethostname.c: ... here.
10693         * sysdeps/unix/execve.S: Remove file.
10695         * sysdeps/unix/_exit.S: Remove file.
10697 2012-04-23  Andreas Jaeger  <aj@suse.de>
10699         [BZ #13739]
10700         * manual/Makefile: Remove make dist support, there's no
10701         need for a stand-alone documentation tar ball.
10702         (TEXI2DVI): Define always, it's not in Makeconfig.
10703         (dist): Removed.
10704         (tar-it): Removed.
10705         (edition): Removed.
10706         (glibc-doc-$(edition).tar): Removed
10707         (%.Z): Removed.
10708         (%.gz): Removed.
10709         (%.uu): Removed.
10710         (ETAGS): Remove, it's in Makeconfig.
10711         (move-if-change): Remove, it's in Makeconfig.
10713 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
10715         [BZ #13970]
10716         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
10717         (strtod, strtof, strtold, strtol, strtoul, strtoq)
10718         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
10719         (strtod_l, strtof_l, strtold_l): Remove __wur.
10720         It is not necessarily an error to ignore strtol's return value.
10721         One can reliably look at the stored endptr to decide whether
10722         the number had valid syntax.
10724 2012-04-21  Andreas Jaeger  <aj@suse.de>
10726         [BZ #13739]
10727         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
10729 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
10731         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
10732         * sysdeps/unix/sysv/Versions: Remove file.
10734 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
10736         [BZ #13927]
10737         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10739 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
10741         [BZ #7064]
10742         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
10743         version from __vm86.
10745 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
10747         * sysdeps/unix/common/lxstat.c: Remove file.
10748         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
10750         * sysdeps/unix/sysv/Makefile: Remove file.
10752         * sysdeps/unix/sysv/direct.h: Remove file.
10754         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
10755         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
10756         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
10757         * sysdeps/unix/sysv/bits/signum.h: Likewise.
10758         * sysdeps/unix/sysv/bits/stat.h: Likewise.
10759         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
10760         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
10762         * sysdeps/unix/sysv/setrlimit.c: Remove file.
10764         * sysdeps/unix/xmknod.c: Remove file.
10765         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
10767         * sysdeps/unix/sysv/settimeofday.c: Remove file.
10769         * sysdeps/unix/sysv/i386/time.S: Remove file.
10771         * sysdeps/unix/fxstat.c: Remove file.
10772         * sysdeps/unix/xstat.c: Likewise.
10773         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
10775         * sysdeps/unix/sysv/sigaction.c: Remove file.
10777         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
10778         (sysdep_headers): Remove variable.
10779         [termio.h not in sysdep_headers] (generated): Likewise.
10780         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
10781         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
10782         * sysdeps/unix/sysv/tcdrain.c: Likewise.
10783         * sysdeps/unix/sysv/tcflow.c: Likewise.
10784         * sysdeps/unix/sysv/tcflush.c: Likewise.
10785         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
10786         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
10787         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
10788         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
10789         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
10791         * sysdeps/unix/siglist.c: Remove file.
10793         * sysdeps/unix/getppid.S: Remove file.
10795         * sysdeps/unix/mkdir.c: Remove file.
10796         * sysdeps/unix/rmdir.c: Likewise.
10798 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
10800         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
10801         ERR_MAX value.
10802         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
10803         errlist-compat value.
10805 2012-04-18  David S. Miller  <davem@davemloft.net>
10807         * sysdeps/generic/memcopy.h (reg_char): Delete.
10808         * debug/strcat_chk.c: Use char, not reg_char.
10809         * debug/strcpy_chk.c: Likewise.
10810         * debug/strncat_chk.c: Likewise.
10811         * debug/strncpy_chk.c: Likewise.
10812         * string/memchr.c: Likewise.
10813         * string/memrchr.c: Likewise.
10814         * string/rawmemchr.c: Likewise.
10815         * string/strcat.c: Likewise.
10816         * string/strchr.c: Likewise.
10817         * string/strchrnul.c: Likewise.
10818         * string/strcmp.c: Likewise.
10819         * string/strcpy.c: Likewise.
10820         * string/strncat.c: Likewise.
10821         * string/strncmp.c: Likewise.
10822         * string/strncpy.c: Likewise.
10824 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10826         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
10827         __builtin_memcopy is called when src and dest ranges are known to not
10828         overlap.
10830 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10832         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
10833         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
10834         fwd_align_merge macro call.
10835         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
10836         bwd_align_merge macro call.
10837         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10839 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
10841         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
10842         bwd_align_merge macros.
10843         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
10844         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
10845         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
10847 2012-04-18  David S. Miller  <davem@davemloft.net>
10849         * sysdeps/sparc/sparc64/memcopy.h: Delete.
10851 2012-04-18  Andreas Jaeger  <aj@suse.de>
10853         [BZ# 6794]
10854         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
10855         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
10856         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10858         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
10859         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
10860         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10862         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
10863         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
10864         Adjust for changed ldbl-128 files.
10866         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
10867         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
10868         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
10870 2012-04-17  David S. Miller  <davem@davemloft.net>
10872         * sysdeps/sparc/sparc32/memcopy.h: Delete.
10874 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
10876         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
10877         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
10878         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
10879         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
10880         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
10881         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
10883 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10885         [BZ #6794]
10886         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
10887         * math/libm-test.inc: Add ilogb errno and exception tests.
10888         * math/w_ilogb.c: New file: ilogb wrapper.
10889         * math/w_ilogbf.c: New file: ilogbf wrapper.
10890         * math/w_ilogbl.c: New file: ilogbl wrapper.
10891         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
10892         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
10893         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
10894         exception being thrown with 0.0 as argument.
10895         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
10896         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
10897         exception being thrown with 0.0 as argument.
10898         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
10899         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10900         exception being thrown with 0.0 as argument.
10901         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
10902         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
10903         exception being thrown with 0.0 as argument.
10904         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
10905         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
10906         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
10907         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
10908         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
10909         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
10910         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
10911         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
10912         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
10914 2012-04-17  Petr Baudis  <pasky@ucw.cz>
10916         * include/sys/uio.h: Change __vector to __iovec to avoid clash
10917         with altivec.
10919 2012-04-16  Marek Polacek  <polacek@redhat.com>
10921         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
10923 2012-04-16  Marek Polacek  <polacek@redhat.com>
10925         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
10926         operands of fdivp instruction.
10928 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10930         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
10931         * elf/tst-auditmod3b.c: Likewise.
10932         * elf/tst-auditmod4b.c: Likewise.
10933         * elf/tst-auditmod5b.c: Likewise.
10934         * elf/tst-auditmod6b.c: Likewise.
10935         * elf/tst-auditmod6c.c: Likewise.
10936         * elf/tst-auditmod7b.c: Likewise.
10937         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
10938         * sysdeps/x86_64/preconfigure.in: Likewise.
10939         * sysdeps/x86_64/preconfigure: Regenerated.
10941 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
10943         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
10944         __ILP32__.
10946 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
10948         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10949         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
10951 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
10953         [BZ #13973]
10954         * locale/iso-639.def: Fix gl language name. Spotted by
10955         Yaron Shahrabani.
10957 2012-04-12  Roland McGrath  <roland@hack.frob.com>
10959         [BZ #2074]
10960         * libio/libio.h (__io_write_fn): Update comment.
10962 2012-04-12  Petr Baudis  <pasky@ucw.cz>
10964         [BZ #2074]
10965         * stdio.texi (Hook Functions): The user provided writer function
10966         is not allowed to return -1.
10968 2012-04-11  David S. Miller  <davem@davemloft.net>
10970         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10972 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
10974         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
10975         Add a leading slash to rtkaio.
10977 2012-04-11  Jim Meyering  <meyering@redhat.com>
10979         [BZ #11959]
10980         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
10981         It is not necessarily an error to ignore fwrite's return
10982         value.  One can reliably use ferror to test for errors after
10983         the fact.
10985 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
10987         * bits/types.h (__snseconds_t): New type.
10988         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
10990         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
10991         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
10992         (__SNSECONDS_T_TYPE): Likewise.
10993         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
10994         (__SNSECONDS_T_TYPE): Likewise.
10995         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
10996         (__SNSECONDS_T_TYPE): Likewise.
10998 2012-04-10  Andreas Jaeger  <aj@suse.de>
11000         [BZ #2636]
11001         * manual/time.texi (Processor Time): Return type of times is
11002         elapsed real time since an arbitrary point in the past.
11003         (CPU Time): Move CLK_TCK from here...
11004         (Processor Time): ...to here.  Correct description.
11005         * manual/conf.texi (Constants for Sysconf): Correct description of
11006         _SC_CLK_TCK.
11008 2012-04-10  David S. Miller  <davem@davemloft.net>
11010         [BZ #13967]
11011         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
11012         where the is a gap between DT_REL(A) and DT_JMPREL.
11014 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
11016         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
11017         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11018         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11020 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11022         * elf/dl-support.c (_dl_inhibit_cache): New variable.
11023         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
11024         (dl_main): Handle --inhibit-cache.
11025         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
11026         _dl_inhibit_cache.
11027         * elf/dl-load.c (_dl_map_object): Use it.
11028         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
11030 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11032         [BZ #13872]
11033         * sysdeps/i386/fpu/e_powl.S (p78): New object.
11034         (__ieee754_powl): Saturate large exponents rather than testing for
11035         overflow of y*log2(x).
11036         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11037         * math/libm-test.inc (pow_test): Do not permit spurious overflow
11038         exceptions.
11040         [BZ #11521]
11041         * math/s_ctan.c: Include <float.h>.
11042         (__ctan): Avoid internal overflow or cancellation in calculating
11043         denominator.
11044         * math/s_ctanf.c: Likewise.
11045         * math/s_ctanl.c: Likewise.
11046         * math/s_ctanh.c: Likewise.
11047         * math/s_ctanhf.c: Likewise.
11048         * math/s_ctanhl.c: Likewise.
11049         * math/libm-test.inc (ctan_test): Add more tests.
11050         (ctanh_test): Likewise.
11051         * sysdeps/i386/fpu/libm-test-ulps: Update.
11052         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11054 2012-04-09  Andreas Jaeger  <aj@suse.de>
11056         [BZ #6894]
11057         * manual/filesys.texi (Directory Entries): Mention that d_namlen
11058         is an optional BSD extension.
11060         [BZ #10254]
11061         * manual/stdio.texi (Opening Streams): Document additional fopen
11062         parameters.
11064 2012-04-09  Roland McGrath  <roland@hack.frob.com>
11066         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
11067         %eax without telling the compiler.
11069 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
11071         [BZ # 13963]
11072         * manual/install.texi: Use sourceware.org.
11074 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
11076         [BZ #13873]
11077         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
11078         (__ieee754_pow): Generate overflow and underflow using huge*huge
11079         and tiny*tiny rather than just returning constant infinity or zero
11080         for large exponents.
11081         * math/libm-test.inc (pow_test): Require overflow exceptions for
11082         applicable cases of large exponents.
11084         [BZ #706]
11085         * sysdeps/i386/fpu/e_pow.S (p10): New object.
11086         (__ieee754_pow): Use iterative multiplication algorithm only for
11087         integer exponents with absolute value below 1024.  Check for odd
11088         integer exponents when using algorithm for real exponents.
11089         * math/libm-test.inc (pow_test): Add more tests.
11090         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11092 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
11094         [BZ #13705]
11095         * math/libm-test.inc (exp_test): Do not allow overflow exception
11096         on underflow test.
11098 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
11100         [BZ #13705]
11101         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
11102         instead of __kernel_standard_f.
11104 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
11106         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
11107         * sysdeps/x86_64/memset_chk.S: Likewise.
11109 2012-04-08  Andreas Jaeger  <aj@suse.de>
11111         [BZ #10153]
11112         * manual/startup.texi (Environment Access): Describe return value
11113         for putenv and setenv.
11115         [BZ #6895]
11116         * manual/filesys.texi (Directory Entries): Add description for
11117         DT_LNK.
11119         [BZ #6890]
11120         * manual/filesys.texi (Directory Entries): Clarify that it's file
11121         system not operating system in the description of DT_UNKNOWN.
11123         [BZ #6578]
11124         * manual/syslog.texi (closelog): Fix reference, it's openlog.
11126 2012-04-08  Stephen Compall  <s11@member.fsf.org>
11128         [BZ #6649]
11129         * manual/llio.texi (Opening and Closing Files): Add cross
11130         reference to explain mode argument.
11132 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
11134         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
11135         * sysdeps/x86_64/memset_chk.S: Likewise.
11137 2012-04-07  David S. Miller  <davem@davemloft.net>
11139         * elf/elf.h (R_SPARC_WDISP10): Define.
11140         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
11141         R_SPARC_SIZE32.
11142         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
11143         R_SPARC_SIZE64 and R_SPARC_H34.
11145 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
11147         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
11148         conditions and remove no longer applicable assertion.
11150 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11152         * bits/byteswap.h: Include <features.h>.
11153         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
11154         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
11156 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
11158         * bits/byteswap.h (__bswap_16): Removed.
11159         Include <bits/byteswap-16.h> to get __bswap_16.
11160         * sysdeps/i386/bits/byteswap.h: Likewise.
11161         * sysdeps/s390/bits/byteswap.h: Likewise.
11162         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11163         * bits/byteswap-16.h: New file.
11164         * sysdeps/i386/bits/byteswap-16.h: Likewise.
11165         * sysdeps/s390/bits/byteswap-16.h: Likewise.
11166         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
11167         * string/Makefile (headers): Add bits/byteswap-16.h.
11169 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
11171         [BZ #13895]
11172         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
11173         extra indirection.
11174         * nss/Makefile (tests-static, tests): Add tst-nss-static.
11175         * nss/tst-nss-static.c: New.
11177 2012-04-06  Robert Millan  <rmh@gnu.org>
11179         [BZ #6486]
11180         * manual/llio.texi (File Position Primitive): lseek
11181         refers to WHENCE when it really means OFFSET.
11183 2012-04-06  Andreas Jaeger  <aj@suse.de>
11185         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
11186         strncmp declarations.
11188         * abilist/libc.abilist: Add __poll and __ppoll.
11190 2012-04-05  David S. Miller  <davem@davemloft.net>
11192         * scripts/check-local-headers.sh: Accept a host triplet in the
11193         path matched by the exclude regexp.
11195         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
11196         definition.
11197         * sysdeps/powerpc/powerpc32/dl-machine.h
11198         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
11199         * sysdeps/s390/s390-32/dl-machine.h
11200         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11201         * sysdeps/sparc/sparc32/dl-machine.h
11202         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11203         * sysdeps/sparc/sparc64/dl-machine.h
11204         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
11206         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
11207         lazy binding.
11208         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
11209         undefined symbol errors.
11211         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
11212         DT_NEEDED entries.
11214 2012-04-05  Michael Matz  <matz@suse.de>
11216         [BZ #13592]
11217         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
11219 2012-04-05  Andreas Jaeger  <aj@suse.de>
11221         [BZ #13908]
11222         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
11223         comment.
11225 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11227         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
11228         which ROUND is no valid rounding mode.
11230 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11232         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
11233         read again.
11234         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
11236 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11238         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
11239         an exception using FPU order intentionally.
11241 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11243         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
11244         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
11245         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
11246         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
11248 2012-04-05  Simon Josefsson  <simon@josefsson.org>
11250         [BZ #12340]
11251         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
11252         EINVAL when BUFLEN is too smal.
11254 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
11256         [BZ #13553]
11257         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
11258         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
11260 2012-04-03  Andreas Jaeger  <aj@suse.de>
11262         [BZ #13938]
11263         * manual/setjmp.texi (System V contexts): Fix sentence.
11265         [BZ #13926]
11266         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
11267         New macro for this case.
11268         [!__GNUC__] (__bswap_64): New inline function for this case.
11269         * sysdeps/x86_64/bits/byteswap.h: Likewise.
11270         * bits/byteswap.h: Likewise.
11271         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
11272         ull, guard with __GLIBC_HAVE_LONG_LONG.
11274         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
11275         __GLIBC_HAVE_LONG_LONG.
11277         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
11278         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
11280 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
11282         [BZ #13691]
11283         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
11284         inptr and inend, rather than using last_ch.
11286 2012-04-02  David S. Miller  <davem@davemloft.net>
11288         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
11289         * stdio-common/printf-parse.h (read_int): Change return type to
11290         'int', return -1 on INT_MAX overflow.
11291         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
11292         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
11293         overflows INT_MAX.  Check for overflow of in-format-string precision
11294         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
11295         SIZE_MAX not INT_MAX for integer overflow test.
11296         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
11297         skip the construct in the format string but do not record anything.
11298         * stdio-common/bug22.c: Adjust to test both width/prevision
11299         INT_MAX overflow as well as total length INT_MAX overflow.  Check
11300         explicitly for proper errno values.
11302 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
11304         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
11305         CHAR_MAX.
11306         * string/test-strcmp.c [! WIDE]: Likewise.
11307         * time/tst-mktime2.c: Likewise for INT_MAX.
11308         * string/test-string.h: #include <sys/param.h> for MIN.
11310         * csu/init-first.c (__libc_init_first): Call __ctype_init.
11311         * sysdeps/i386/init-first.c (init): Likewise.
11312         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
11313         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
11314         * sysdeps/sh/init-first.c (init): Likewise.
11316 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
11318         * po/ru.po: Update from translation team.
11319         * po/vi.po: Likewise.
11321 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11323         * resolv/nss_dns/dns-host.c: Merge copyright years.
11325 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11327         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
11328         Optimize memcpy with prefetch if
11329         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
11330         src, dst pointers have unequal 16 byte alignments.
11332 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11334         [BZ #13928]
11335         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
11336         from a CNAME entry and return the minimum ttl for the query.
11337         (gaih_getanswer_slice): Likewise.
11339 2012-03-30  Jeff Law  <law@redhat.com>
11341         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
11342         due to long keys.
11343         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
11344         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
11346         * resolv/nss_dns/dns-host.c: Update copyright year.
11348 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
11350         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
11351         requests to save a system call.  Fix check that all bytes are sent.
11353         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
11354         comments for sendmmsg.
11356 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11358         [BZ #13691]
11359         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
11360         with only 1 character between 0x0041 and 0x01b0.
11361         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
11362         * wcsmbs/tst-mbsnrtowcs.c: New file.
11364 2012-03-29  David S. Miller  <davem@davemloft.net>
11366         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
11367         small copies by hand.
11369 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11371         [BZ #13761]
11372         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
11373         _nss_compat_initgroups_dyn): Fall back to malloc/free
11374         for large group memberships.
11376 2012-03-28  David S. Miller  <davem@davemloft.net>
11378         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
11379         that branches into memcpy.
11380         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
11381         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
11382         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
11383         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
11384         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
11385         bits.
11386         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
11387         implementation too.
11388         * sysdeps/sparc/mempcpy.S: New file.
11390         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
11391         the IFUNC routine in the libc case.
11392         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
11394         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
11395         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
11396         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
11397         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
11398         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
11399         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
11400         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
11401         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
11403         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
11404         loop to 256 bytes instead of 64 bytes and fix test signedness.
11406         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
11407         * sysdeps/sparc/sparc32/Makefile: rather than here...
11408         * sysdeps/sparc/sparc64/Makefile: and here.
11410 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
11412         * malloc/mallocbug.c: Avoid warnings about unused variables.
11414 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
11416         [BZ #13760]
11417         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
11418         in the right place. Discard and retry query if response is
11419         larger than input buffer size.
11421 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
11423         [BZ #369]
11424         [BZ #2678]
11425         [BZ #3866]
11426         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
11427         x for large integer exponent.
11428         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
11429         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
11430         sign of result as needed afterwards.
11431         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
11432         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
11433         result for underflowing pow the same as for overflow.
11434         (__kernel_standard_l): Handle powl overflow and underflow here
11435         rather than calling __kernel_standard.
11436         * math/libm-test.inc (pow_test): Add more tests.
11438         [BZ #3868]
11439         [BZ #13879]
11440         [BZ #13910]
11441         [BZ #13911]
11442         [BZ #13912]
11443         [BZ #13913]
11444         [BZ #13915]
11445         [BZ #13916]
11446         [BZ #13917]
11447         [BZ #13918]
11448         [BZ #13919]
11449         [BZ #13920]
11450         [BZ #13921]
11451         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
11452         * sysdeps/ieee754/k_standard.c: Include <float.h>.
11453         (__kernel_standard_l): New function.
11454         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
11455         __kernel_standard.
11456         * math/w_acosl.c (__acosl): Likewise.
11457         * math/w_asinl.c (__asinl): Likewise.
11458         * math/w_atan2l.c (__atan2l): Likewise.
11459         * math/w_atanhl.c (__atanhl): Likewise.
11460         * math/w_coshl.c (__coshl): Likewise.
11461         * math/w_exp10l.c (__exp10l): Likewise.
11462         * math/w_exp2l.c (__exp2l): Likewise.
11463         * math/w_fmodl.c (__fmodl): Likewise.
11464         * math/w_hypotl.c (__hypotl): Likewise.
11465         * math/w_j0l.c (__j0l, __y0l): Likewise.
11466         * math/w_j1l.c (__j1l, __y1l): Likewise.
11467         * math/w_jnl.c (__jnl, __ynl): Likewise.
11468         * math/w_lgammal.c (__lgammal): Likewise.
11469         * math/w_log10l.c (__log10l): Likewise.
11470         * math/w_log2l.c (__log2l): Likewise.
11471         * math/w_logl.c (__logl): Likewise.
11472         * math/w_powl.c (__powl): Likewise.
11473         * math/w_remainderl.c (__remainderl): Likewise.
11474         * math/w_scalbl.c (sysv_scalbl): Likewise.
11475         * math/w_sinhl.c (__sinhl): Likewise.
11476         * math/w_sqrtl.c (__sqrtl): Likewise.
11477         * math/w_tgammal.c (__tgammal): Likewise.
11478         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
11479         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
11480         * math/libm-test.inc (acos_test): Add more tests.
11481         (acosh_test): Likewise.
11482         (asin_test): Likewise.
11483         (atanh_test): Likewise.
11484         (exp_test): Likewise.
11485         (exp10_test): Likewise.
11486         (exp2_test): Likewise.
11487         (expm1_test): Likewise.
11488         (lgamma_test): Likewise.
11489         (log_test): Likewise.
11490         (log10_test): Likewise.
11491         (log1p_test): Likewise.
11492         (log2_test): Likewise.
11493         (pow_test): Do not allow some spurious overflow exceptions.
11494         (sqrt_test): Add more tests.
11495         (tgamma_test): Likewise.
11496         (y0_test): Likewise.
11497         (y1_test): Likewise.
11498         (yn_test): Likewise.
11500 2012-03-27  Anton Blanchard  <anton@samba.org>
11502         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
11503         MAP_HUGETLB.
11504         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
11505         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
11506         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
11508 2012-03-27  David S. Miller  <davem@davemloft.net>
11510         * conform/Makefile: Run run-conformtest.sh using $(BASH).
11512         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
11513         have-as-vis3 check.
11515 2012-03-27  Andreas Jaeger  <aj@suse.de>
11517         * sysdeps/x86_64/elf/configure.in: Moved to ...
11518         * sysdeps/x86_64/configure.in: ... here.
11519         * sysdeps/x86_64/elf/start.S: Moved to ...
11520         * sysdeps/x86_64/start.S: ... here.
11521         * sysdeps/x86_64/elf/configure: Delete.
11523         * sysdeps/x86_64/configure.in: Merge contents from
11524         sysdeps/i386/configure.in (without i686 check).
11526         * sysdeps/i386/elf/Versions: Merge into ...
11527         * sysdeps/i386/Versions: ... this.
11528         * sysdeps/i386/elf/Versions: Delete file.
11529         * sysdeps/i386/elf/start.S: Moved to ...
11530         * sysdeps/i386/start.S: ...here.
11531         * sysdeps/i386/elf/configure.in: Merge into...
11532         * sysdeps/i386/configure.in: ...here.
11533         * sysdeps/i386/elf/configure.in: Delete file.
11534         * sysdeps/i386/elf/configure: Delete file.
11536         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
11537         * debug/backtracesyms.c: ... here.
11538         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
11539         * debug/backtracesymsfd.c: ... here.
11540         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
11541         * sysdeps/generic/ifunc-sel.h: ... here.
11543         * sysdeps/unix/i386/start.c: Delete file.
11544         * sysdeps/unix/sparc/start.c: Delete file.
11545         * sysdeps/unix/start.c: Delete file.
11547         * sysdeps/sh/elf/configure.in: Moved to ...
11548         * sysdeps/sh/configure.in: ... here.
11549         * sysdeps/sh/elf/start.S: Moved to ...
11550         * sysdeps/sh/start.S: ... here.
11551         * sysdeps/sh/elf/configure: Delete file.
11553         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
11554         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
11555         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
11556         * sysdeps/powerpc/powerpc64/entry.h: ... here.
11557         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
11558         * sysdeps/powerpc/powerpc64/start.S: here.
11559         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
11560         * sysdeps/powerpc/powerpc64/Makefile: ... this.
11561         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
11562         * sysdeps/powerpc/powerpc64/configure.in: ... this.
11563         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
11565         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
11566         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
11567         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
11568         * sysdeps/powerpc/powerpc32/start.S: ... here.
11569         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
11570         * sysdeps/powerpc/powerpc32/configure.in: ... this.
11571         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
11573         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
11574         * sysdeps/powerpc/ifunc-sel.h: ... here.
11575         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
11576         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
11578         * sysdeps/sparc/elf/configure.in: Moved to ...
11579         * sysdeps/sparc/configure.in: ... here.
11580         * sysdeps/sparc/elf/configure: Delete file.
11581         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
11582         * sysdeps/sparc/sparc32/start.S: ... here.
11583         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
11584         * sysdeps/sparc/sparc64/start.S: ... here.
11585         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
11586         * sysdeps/sparc/sparc32/Makefile: ... this.
11587         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
11588         * sysdeps/sparc/sparc64/Makefile: ... this.
11590         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
11591         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
11592         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
11593         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
11594         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
11595         * sysdeps/s390/s390-32/setjmp.S: ... here.
11596         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
11597         * sysdeps/s390/s390-32/configure.in: ... here.
11598         * sysdeps/s390/s390-32/elf/configure: Delete file.
11599         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
11600         * sysdeps/s390/s390-32/start.S: ... here.
11602         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
11603         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
11604         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
11605         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
11606         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
11607         * sysdeps/s390/s390-64/setjmp.S: ... here.
11608         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
11609         * sysdeps/s390/s390-64/configure.in: ... here
11610         * sysdeps/s390/s390-64/elf/configure: Delete file.
11611         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
11612         * sysdeps/s390/s390-64/start.S: ... here.
11613         * sysdeps/s390/s390-64/elf/configure: Delete.
11615         * configure.in: Remove support for elf directories in sysdeps.
11617         * configure: Regenerated.
11618         * sysdeps/i386/configure: Regenerated.
11619         * sysdeps/powerpc/powerpc32/configure: Regenerated.
11620         * sysdeps/powerpc/powerpc64/configure: Regenerated.
11621         * sysdeps/s390/s390-32/configure: Regenerated.
11622         * sysdeps/s390/s390-64/configure: Regenerated.
11623         * sysdeps/sh/configure: Regenerated.
11624         * sysdeps/sparc/configure: Regenerated.
11625         * sysdeps/x86_64/configure: Regenerated.
11627 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
11629         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11631         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
11632         denormal result into account.
11634 2012-03-25  Roland McGrath  <roland@hack.frob.com>
11636         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
11637         Reported by Allan McRae <allan@archlinux.org>.
11639 2012-03-23  Jeff Law  <law@redhat.com>
11641         * nss/getnssent.c (__nss_getent): Fix typo.
11643 2012-03-23  David S. Miller  <davem@davemloft.net>
11645         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11647 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
11649         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
11650         to pad to uint64_t for each field.
11651         (dl_tls_index): Replace unsigned long with uint64_t.
11653 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
11654         Paul Pluzhnikov  <ppluzhnikov@google.com>
11656         [BZ #6528]
11657         * grp/Makefile (otherlibs): Don't set it.
11658         * inet/Makefile (otherlibs): Likewise.
11659         * login/Makefile (otherlibs): Likewise.
11660         * nscd/Makefile (otherlibs): Likewise.
11661         * posix/Makefile (otherlibs): Likewise.
11662         * pwd/Makefile (otherlibs): Likewise.
11663         * rt/Makefile (otherlibs): Likewise.
11664         * sunrpc/Makefile (otherlibs): Likewise.
11665         * nss/Makefile (otherlibs): Likewise.
11666         Add libnss_files to routines and static-only-routines.
11667         ($(objpfx)getent): Remove rule.
11668         * resolv/Makefile: Add libnss_dns and libresolv to routines and
11669         static-only-routines.
11671 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11673         [BZ #13892]
11674         * math/s_cexp.c: Include <float.h>.
11675         (__cexp): Handle exp result overflowing not necessarily
11676         overflowing both real and imaginary parts of result.
11677         * math/s_cexpf.c: Likewise.
11678         * math/s_cexpl.c: Likewise.
11679         * math/libm-test.inc (cexp_test): Add more tests.
11680         * sysdeps/i386/fpu/libm-test-ulps: Update.
11681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11683 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11685         * include/link.h (ELFW): New macro.
11686         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
11687         Replace ELF64_R_TYPE with ELFW(R_TYPE).
11689 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11691         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
11692         with uint64_t.
11694 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11696         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
11697         declaration.
11698         (struct La_x32_retval): Likewise.
11700 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
11702         * sysdeps/x86_64/preconfigure.in: New file.
11703         * sysdeps/x86_64/preconfigure: New generated file.
11705 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
11707         [BZ #13824]
11708         * math/e_exp2l.c: Include <float.h>.
11709         (__ieee754_exp2l): Handle overflow and underflow cases
11710         separately.  Only pass fractional part of argument to
11711         __ieee754_expl.
11712         * math/libm-test.inc (exp2_test): Add more tests.
11714         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
11715         negating x to take absolute value.
11716         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
11717         Likewise.
11718         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
11719         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
11720         Likewise.
11721         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
11722         computing low part if x was negated.
11723         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
11725 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11727         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
11728         la_x32_gnu_pltexit.
11729         (pltexit): Cast int_retval to ptrdiff_t.
11730         * elf/tst-auditmod3b.c: Likewise.
11731         * elf/tst-auditmod4b.c: Likewise.
11732         * elf/tst-auditmod5b.c: Likewise.
11733         * elf/tst-auditmod6b.c: Likewise.
11734         * elf/tst-auditmod6c.c: Likewise.
11735         * elf/tst-auditmod7b.c: Likewise.
11737         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
11738         and x32_gnu_pltexit.
11740         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
11741         __ELF_NATIVE_CLASS.
11742         (La_x32_regs): New macro.
11743         (La_x32_retval): Likewise.
11744         (la_x32_gnu_pltenter): New function prototype.
11745         (la_x32_gnu_pltexit): Likewise.
11747 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
11749         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
11750         exponent.
11752         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11754         * configure.in (libc_cv_cc_nofma): Check for option to disable
11755         generation of FMA instructions.
11756         * configure: Regenerate.
11757         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
11758         * sysdeps/ieee754/dbl-64/Makefile: New file.
11759         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
11760         Remove brandred-fma4.
11761         (CFLAGS-brandred-fma4.c): Remove.
11762         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
11763         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
11764         define.
11765         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
11766         define.
11768 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11770         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
11771         LLONG_MAX != LONG_MAX.
11772         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11773         (_fitoa_word): Likewise.
11774         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
11775         LLONG_MAX != LONG_MAX.
11776         * stdio-common/_itowa.h: Include <_itoa.h>.
11777         (_itowa_word): Use _ITOA_WORD_TYPE on value.
11778         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
11779         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
11780         only if not defined.
11781         (_ITOA_WORD_TYPE): Likewise.
11782         (_itoa_word): Use _ITOA_WORD_TYPE on value.
11783         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
11785 2012-03-21  David S. Miller  <davem@davemloft.net>
11787         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11789 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
11791         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
11792         of x86_64 when setting libc_cv_slibdir, libdir and
11793         libc_cv_localedir.
11794         * sysdeps/unix/sysv/linux/configure: Regenerated.
11796 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11798         * manual/lang.texi (Old Varargs): Remove section.
11799         (How Variadic): Update menu.
11800         (va_start): Do not mention varargs.h.
11802 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11803             Joseph Myers  <joseph@codesourcery.com>
11805         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
11806         link test.
11807         * configure: Regenerated.
11809 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
11811         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
11812         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
11813         conformtest.pl
11815 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11817         * NOTES: Remove.
11818         * Makefile (files-for-dist): Remove NOTES.
11819         (NOTES): Remove rule.
11820         * README: Don't refer to NOTES.
11821         * manual/creature.texi: Don't include macros.texi.
11822         * manual/intro.texi (creature.texi): Remove comment referring to
11823         NOTES.
11825         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
11826         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
11827         * configure: Regenerated.
11828         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
11829         LIBC_TRY_CC_OPTION.
11830         (libc_cv_as_i686): Likewise.
11831         (libc_cv_cc_avx): Likewise.
11832         (libc_cv_cc_sse2avx): Likewise.
11833         (libc_cv_cc_fma4): Likewise.
11834         (libc_cv_cc_novzeroupper): Likewise.
11835         * sysdeps/i386/configure: Regenerated.
11837         [BZ #13883]
11838         * sysdeps/i386/fpu/s_cexp.S: Remove.
11839         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11840         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11841         * math/libm-test.inc (cexp_test): Add more tests.
11842         * sysdeps/i386/fpu/libm-test-ulps: Update.
11843         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11845 2012-03-21  Allan McRae  <allan@archlinux.org>
11847         * timezone/Makefile: Do not install iso3166.tab and zone.tab
11849 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
11851         [BZ #13871]
11852         * math/w_exp2.c: Do not include <float.h>.
11853         (o_threshold, u_threshold): Remove.
11854         (__exp2): Calculate result before checking finiteness and calling
11855         __kernel_standard.
11856         * math/w_exp2f.c: Likewise.
11857         * math/w_exp2l.c: Likewise.
11858         * math/libm-test.inc (exp2_test): Require overflow exception for
11859         1e6 input.
11861         [BZ #3866]
11862         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
11863         range of signed 64-bit integers before using fistpll.  Remove
11864         checks for whether integers fit in mantissa bits.
11865         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
11866         the range of signed 32-bit integers before using fistpl.  Remove
11867         checks for whether integers fit in mantissa bits.
11868         * sysdeps/i386/fpu/e_powl.S (p64): New object.
11869         (__ieee754_powl): Test for y outside the range of signed 64-bit
11870         integers before using fistpll.  Reduce 64-bit values to 63-bit
11871         ones as needed.
11872         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
11873         divide-by-zero is raised for zero to large negative powers.
11874         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
11875         (__ieee754_powl): Test for y outside the range of signed 64-bit
11876         integers before using fistpll.  Reduce 64-bit values to 63-bit
11877         ones as needed.
11878         * math/libm-test.inc (pow_test): Add more tests.
11880 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11882         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
11883         <stdio-common/_itoa.h>.
11884         * debug/segfault.c: Likewise.
11885         * elf/dl-cache.c: Likewise.
11886         * elf/dl-minimal.c: Likewise.
11887         * elf/dl-misc.c: Likewise.
11888         * elf/dl-sysdep.c: Likewise.
11889         * elf/dl-version.c: Likewise.
11890         * elf/rtld.c: Likewise.
11891         * hurd/hurdsock.c: Likewise.
11892         * hurd/lookup-retry.c: Likewise.
11893         * malloc/malloc.c: Likewise.
11894         * malloc/mtrace.c: Likewise.
11895         * nscd/nscd_getgr_r.c: Likewise.
11896         * nscd/nscd_getpw_r.c: Likewise.
11897         * nscd/nscd_getserv_r.c: Likewise.
11898         * posix/getopt_init.c: Likewise.
11899         * posix/wordexp.c: Likewise.
11900         * stdio-common/_itoa.c: Likewise.
11901         * stdio-common/printf_fphex.c: Likewise.
11902         * stdio-common/vfprintf.c: Likewise.
11903         * string/_strerror.c: Likewise.
11904         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
11905         * sysdeps/i386/i686/hp-timing.h: Likewise.
11906         * sysdeps/mach/_strerror.c: Likewise.
11907         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
11908         * sysdeps/mach/hurd/sethostid.c: Likewise.
11909         * sysdeps/mach/hurd/xmknodat.c: Likewise.
11910         * sysdeps/mach/xpg-strerror.c: Likewise.
11911         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11912         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11913         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
11914         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
11915         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11916         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
11917         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
11918         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
11919         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
11920         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
11921         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
11922         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
11923         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
11924         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
11925         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
11926         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
11927         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
11928         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
11929         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
11930         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
11931         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
11933         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
11935         * stdio-common/_itoa.h: Moved to ...
11936         * sysdeps/generic/_itoa.h: Here.
11938         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
11940         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
11941         instead of "_itoa.h" and "_itowa.h".
11942         * stdio-common/vfprintf.: Likewise.
11944 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11946         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
11947         <bits/wordsize.h>.
11948         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
11949         (__signbit): Likwise.
11950         (llrintf): Likwise.
11951         (llrint): Likwise.
11953 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
11955         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
11956         __WORDSIZE != 64.
11958 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
11960         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
11961         OVERFLOW_EXCEPTION_OK.
11962         * math/libm-test.inc ("Philosophy"): Update comment about
11963         exception testing.
11964         (OVERFLOW_EXCEPTION): Define.
11965         (OVERFLOW_EXCEPTION_OK): Likewise.
11966         (INVALID_EXCEPTION_OK): Renumber.
11967         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11968         (IGNORE_ZERO_INF_SIGN): Likewise.
11969         (test_exceptions): Handle FE_OVERFLOW.
11970         (exp10_test): Expect overflow exceptions.
11971         (exp2_test): Likewise.
11972         (expm1_test): Likewise.
11973         (nextafter_test): Likewise.
11974         (pow_test): Likewise.
11975         (scalbn_test): Likewise.
11976         (scalbln_test): Likewise.
11978 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11980         * sysdeps/x86_64/bits/atomic.h
11981         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
11982         64bit integer.
11983         (atomic_exchange_acq): Likewise.
11984         (__arch_exchange_and_add_body): Likewise.
11985         (__arch_add_body): Likewise.
11986         (atomic_add_negative): Likewise.
11987         (atomic_add_zero): Likewise.
11989 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11991         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
11992         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
11994 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
11996         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
11997         Check __x86_64__ instead of __WORDSIZE.
11999 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12001         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
12003 2012-03-19  David S. Miller  <davem@davemloft.net>
12005         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12007         * sysdeps/sparc/fpu/fenv_private.h: New file.
12008         * sysdeps/sparc/fpu/math_private.h: Use it.
12009         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
12010         Remove.
12011         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
12012         (libc_feholdexcept_setroundl): Remove.
12013         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
12014         Remove.
12015         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
12016         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
12018 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12020         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
12021         int64_t instead of long int.
12022         (INSERT_WORDS64): Likwise.
12024 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
12026         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
12027         _Unwind_GetCFA return to _Unwind_Ptr first.
12029 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
12031         [BZ #13629]
12032         * math/s_clog.c: Include <float.h>.
12033         (__clog): Scale large or subnormal inputs.
12034         * math/s_clogf.c: Likewise.
12035         * math/s_clogl.c: Likewise.
12036         * math/s_clog10.c: Include <float.h>.
12037         (M_LOG10_2): Define.
12038         (__clog10): Scale large or subnormal inputs.
12039         * math/s_clog10f.c: Likewise.
12040         * math/s_clog10l.c: Likewise.
12041         * math/libm-test.inc (clog_test): Add more tests.
12042         (clog10_test): Likewise.
12043         * sysdeps/i386/fpu/libm-test-ulps: Update.
12044         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12046         [BZ #11451]
12047         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
12048         x and y.
12049         * math/libm-test.inc (atan2_test): Add another test.
12051         * Makerules (common-objdir-compile): Remove.
12052         * sysdeps/unix/Makefile (config-generated): Do not add
12053         $(unix-generated) to variable.
12054         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
12055         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
12056         Remove rule.
12057         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
12058         Likewise.
12059         [generic bits/local_lim.h] (before-compile): Do not append to
12060         variable.
12061         [generic bits/local_lim.h] (common-generated): Likewise.
12062         [generic sys/param.h] (before-compile): Do not append to variable.
12063         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
12064         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
12065         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
12066         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
12067         include.
12068         [generic sys/param.h] (sys/param.h-includes): Remove variable.
12069         [generic sys/param.h] (sys/param.h-includes): Remove rule.
12070         [generic sys/param.h] ($(addprefix
12071         $(common-objpfx),$(sys/param.h-includes))): Likewise.
12072         [generic sys/param.h] (common-generated): Do not append to
12073         variable.
12074         [generic sys/param.h] (sysdep_headers): Likewise.
12075         [generic bits/errno.h] (before-compile): Do not append to
12076         variable.
12077         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
12078         rule.
12079         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
12080         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
12081         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
12082         [generic bits/errno.h] (common-generated): Do not append to
12083         variable.
12084         [generic bits/ioctls.h] (before-compile): Do not append to
12085         variable.
12086         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
12087         rule.
12088         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
12089         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
12090         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
12091         rule.
12092         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
12093         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
12094         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
12095         [generic bits/ioctls.h] (common-generated): Do not append to
12096         variable.
12097         [generic sys/syscall.h] (syscall.h): Remove variable.
12098         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
12099         rule.
12100         [generic sys/syscall.h] (before-compile): Do not append to
12101         variable.
12102         [generic sys/syscall.h] (common-generated): Likewise.
12103         * sysdeps/unix/errnos-tmpl.c: Remove file.
12104         * sysdeps/unix/errnos.awk: Likewise.
12105         * sysdeps/unix/ioctls-tmpl.c: Likewise.
12106         * sysdeps/unix/ioctls.awk: Likewise.
12107         * sysdeps/unix/mk-local_lim.c: Likewise.
12108         * sysdeps/unix/snarf-ioctls: Likewise.
12110 2012-03-19  Richard Henderson  <rth@twiddle.net>
12112         * sysdeps/i386/fpu/fenv_private.h: New file.
12113         * sysdeps/i386/fpu/math_private.h: Use it.
12114         (math_opt_barrier, math_force_eval): Remove.
12115         (libc_feholdexcept_setround_53bit): Remove.
12116         (libc_feupdateenv_53bit): Remove.
12117         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12118         (math_opt_barrier, math_force_eval): Remove.
12119         (libc_feholdexcept): Remove.
12120         (libc_feholdexcept_setround): Remove.
12121         (libc_fetestexcept, libc_fesetenv): Remove.
12122         (libc_feupdateenv_test): Remove.
12123         (libc_feupdateenv, libc_feholdsetround): Remove.
12124         (libc_feresetround): Remove.
12126         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
12127         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
12129         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
12130         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
12131         (libc_feupdateenv_testl): New.
12132         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
12133         (libc_feupdateenv_testf): New.
12134         (libc_feupdateenv): Use libc_feupdateenv_test.
12135         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
12136         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
12138         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
12139         (libc_feholdsetroundf, libc_feholdsetroundl): New.
12140         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
12141         (libc_feresetround_noex): New.
12142         (libc_feresetround_noexf): New.
12143         (libc_feresetround_noexl): New.
12144         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
12145         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
12146         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
12147         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
12148         SET_RESTORE_ROUND.
12149         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
12150         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
12151         (__cos): Likewise.
12152         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
12153         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
12154         SET_RESTORE_ROUND_NOEX.
12155         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
12156         SET_RESTORE_ROUND_NOEXF.
12157         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
12158         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
12159         (libc_feholdsetroundf): New.
12160         (libc_feresetround, libc_feresetroundf): New.
12162         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
12163         (libc_feholdexcept_setround_53bit): Convert from macro to function.
12164         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
12166         * sysdeps/generic/math_private.h: Include <fenv.h>.
12167         (default_libc_feholdexcept): New.
12168         (default_libc_feholdexcept_setround): New.
12169         (default_libc_fesetenv, default_libc_feupdateenv): New.
12170         (libc_feholdexcept): Only define if undefined.
12171         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
12172         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
12173         (libc_feholdexcept_setroundl): Likewise.
12174         (libc_feholdexcept_setround_53bit): Likewise.
12175         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
12176         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
12177         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
12178         (libc_feupdateenv_53bit): Likewise.
12179         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
12180         (libc_feholdexcept): Convert from macro to inline function.
12181         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
12182         (libc_fesetenv, libc_feupdateenv): Likewise.
12184         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
12185         not previously defined.
12186         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
12187         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
12188         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
12189         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
12190         * sysdeps/ieee754/flt-32/math_private.h: New file.
12191         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
12192         math_private.h below SET_FLOAT_WORD.
12193         (__isnan, __isinf_ns, __finite): Remove.
12194         (__isnanf, __isinf_nsf, __finitef): Remove.
12196 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
12198         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12200 2012-03-17  David S. Miller  <davem@davemloft.net>
12202         [BZ #6471]
12203         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
12204         for 2.16.
12206 2012-03-16  David S. Miller  <davem@davemloft.net>
12208         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
12209         warnings.
12211         [BZ #6471]
12212         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
12213         properly.
12214         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
12215         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
12216         sysdep_routines when subdir is sysvipc.
12217         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
12218         __getshmlba helper.
12220         * sysdeps/sparc/fpu/libm-test/ulps: Update.
12222 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12224         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
12225         [__LP64__].
12227 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12229         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
12230         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
12231         (__lround): Renamed to ...
12232         (__llround): This.  Replace long int with long long int.
12233         Define lround functions as aliases of llround functions.
12234         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
12236 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12238         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
12239         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
12240         adresses to uintptr_t.  Replace "long int" and "unsigned long
12241         int" with "greg_t" on va_arg.
12243 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12245         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
12246         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
12248         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
12249         Move e_machine check before EI_CLASS check.  Handle x32
12250         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
12251         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
12252         SKIP_EM_IA_64 and include
12253         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
12255         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
12256         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
12257         (add_system_dir): New macro.
12259         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
12260         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
12262 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12264         [BZ #2551]
12265         [BZ #2552]
12266         [BZ #2553]
12267         [BZ #2554]
12268         [BZ #2562]
12269         [BZ #2563]
12270         [BZ #2565]
12271         [BZ #2566]
12272         [BZ #2576]
12273         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
12274         (y0): Likewise.
12275         * math/w_j0f.c (j0f): Likewise.
12276         (y0f): Likewise.
12277         * math/w_j0l.c (__j0l): Likewise.
12278         (__y0l): Likewise.
12279         * math/w_j1.c (j1): Likewise.
12280         (y1): Likewise.
12281         * math/w_j1f.c (j1f): Likewise.
12282         (y1f): Likewise.
12283         * math/w_j1l.c (__j1l): Likewise.
12284         (__y1l): Likewise.
12285         * math/w_jn.c (jn): Likewise.
12286         (yn): Likewise.
12287         * math/w_jnf.c (jnf): Likewise.
12288         (ynf): Likewise.
12289         * math/w_jnl.c (__jnl): Likewise.
12290         (__ynl): Likewise.
12291         * math/libm-test.inc (j0_test): Add more tests.
12292         (j1_test): Likewise.
12293         (jn_test): Likewise.  Add trailing semicolon to existing test.
12294         (y0_test): Likewise.
12295         (y1_test): Likewise.
12296         * sysdeps/i386/fpu/libm-test-ulps: Update.
12297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12299         [BZ #13851]
12300         [BZ #13854]
12301         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
12302         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
12303         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
12304         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
12305         (__tanl): Set errno for infinite argument.
12306         * sysdeps/i386/fpu/mptan.c: Remove.
12307         * sysdeps/i386/fpu/s_tan.S: Likewise.
12308         * sysdeps/i386/fpu/s_tanl.S: Likewise.
12309         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
12310         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
12311         * math/libm-test.inc (tan_test): Add more tests and enable more
12312         tests for double and long double.
12313         * sysdeps/i386/fpu/libm-test-ulps: Update.
12314         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12316 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
12318         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
12319         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
12321 2012-03-16  Roland McGrath  <roland@hack.frob.com>
12323         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
12324         * configure.in: Use it for both main tree and add-ons.
12325         * configure: Regenerated.
12327 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12329         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
12331 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
12333         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
12334         in comment.
12336         [BZ #13851]
12337         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
12338         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
12339         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
12340         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
12341         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
12342         infinite argument.
12343         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
12344         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
12345         != 0 for prec == 2.
12346         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
12347         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
12348         * sysdeps/i386/fpu/s_cosl.S: Likewise.
12349         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
12350         * sysdeps/i386/fpu/s_sinl.S: Likewise.
12351         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
12352         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
12353         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
12354         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
12355         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
12356         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
12357         * math/libm-test.inc (cos_test): Add more tests and enable more
12358         tests for long double.
12359         (sin_test): Likewise.
12360         (sincos_test): Likewise.
12361         * sysdeps/i386/fpu/libm-test-ulps: Update.
12362         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12364 2012-03-16  David S. Miller  <davem@davemloft.net>
12366         * sysdeps/sparc/fpu/math_private.h: New file.
12368 2012-03-15  David S. Miller  <davem@davemloft.net>
12370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
12371         file.
12372         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
12373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
12374         file.
12375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
12376         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
12377         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
12378         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
12379         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
12380         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
12381         sysdep routines.
12382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12384         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
12385         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
12387         * sysdeps/sparc/sparc-ifunc.h: New file.
12388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
12389         sparc-ifunc.h
12390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
12391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
12392         Likewise.
12393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
12394         Likewise.
12395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
12396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
12397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
12398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
12399         Likewise.
12400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
12401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
12402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
12403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
12404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
12405         Likewise.
12406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
12407         Likewise.
12408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
12409         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
12410         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
12411         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
12412         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
12413         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
12414         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
12415         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
12416         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
12417         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
12418         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
12419         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
12420         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
12421         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
12422         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
12423         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
12424         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
12425         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
12426         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
12427         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
12428         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
12429         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
12430         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
12431         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
12433 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12435         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
12436         scaling.
12437         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12439 2012-03-15  Andreas Jaeger  <aj@suse.de>
12441         [BZ #13852]
12442         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
12443         ieee754/flt-32 implementation for sin, cos and sincos.
12444         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
12445         * sysdeps/i386/fpu/s_cosf.S: Likewise.
12446         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
12447         * sysdeps/i386/fpu/s_sinf.S: Likewise.
12448         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
12449         ieee754/flt-32 implementation for tan.
12451         * math/libm-test.inc (cos_test): Enable some large input tests for
12452         float as well
12453         (sin_test): Likewise.
12454         (sincos_test): Likewise.
12455         (tan_test): Add tests for large input.
12457         * sysdeps/i386/fpu/libm-test-ulps: Update.
12459 2012-03-15  Andreas Jaeger  <aj@suse.de>
12461         [BZ #13658]
12462         * math/libm-test.inc (cos_test): Add more test cases.
12463         (sin_test): Likewise.
12464         (sincos_test): Likewise.
12466 2012-03-15  Andreas Jaeger  <aj@suse.de>
12468         [BZ #13837]
12469         * math/libm-test.inc (cos_test): Add a test case for large input
12470         value.
12471         (sin_test): Likewise.
12472         (sincos_test): Likewise.
12474 2012-03-15  Andreas Jaeger  <aj@suse.de>,
12475         Joseph Myers  <joseph@codesourcery.com>
12477         [BZ #13658]
12478         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
12479         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
12480         * sysdeps/i386/fpu/branred.c: Likewise.
12481         * sysdeps/i386/fpu/dosincos.c: Likewise.
12482         * sysdeps/i386/fpu/mpa.c: Likewise.
12483         * sysdeps/i386/fpu/s_cos.S: Likewise.
12484         * sysdeps/i386/fpu/s_sin.S: Likewise.
12485         * sysdeps/i386/fpu/s_sincos.S: Likewise.
12486         * sysdeps/i386/fpu/sincos32.c: Likewise.
12488         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
12489         Define.
12490         (libc_feupdateenv_53bit): Define.
12491         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
12492         Define.
12493         (libc_feupdateenv_53bit): Define.
12495         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
12496         53 bit (without extend i386 double precision).
12498         * math/libm-test.inc (sincos_test): Add tests for large input.
12499         (sin): Likewise.
12500         (cos): Likewise.
12502         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
12504 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
12506         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12508 2012-03-15  David S. Miller  <davem@davemloft.net>
12510         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
12511         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
12512         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
12513         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
12514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
12515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
12516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
12517         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
12518         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
12519         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
12520         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
12521         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
12522         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
12523         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
12524         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
12525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
12526         file.
12527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
12528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
12529         file.
12530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
12531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
12532         file.
12533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
12534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
12535         file.
12536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
12537         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
12538         fmin/fmax sysdep routines.
12539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
12541 2012-03-14  David S. Miller  <davem@davemloft.net>
12543         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
12544         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
12545         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
12546         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
12547         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
12548         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
12549         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
12550         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
12551         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
12552         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
12553         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
12554         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
12555         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
12556         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
12557         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
12558         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
12559         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
12560         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
12561         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
12562         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
12563         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
12564         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
12565         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
12566         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
12567         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
12568         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
12569         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
12570         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
12571         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
12572         routines.
12573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
12574         file.
12575         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
12576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
12577         file.
12578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
12579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
12580         file.
12581         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
12582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
12583         file.
12584         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
12585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
12586         file.
12587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
12588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
12589         file.
12590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
12591         file.
12592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
12593         file.
12594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
12595         file.
12596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
12597         New file.
12598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
12599         file.
12600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
12601         file.
12602         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
12603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
12604         file.
12605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
12606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
12607         file.
12608         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
12609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
12610         file.
12611         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
12612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
12613         VIS3 routines.
12615         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
12616         New file.
12618         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12620         * sysdeps/sparc/configure.in: New file.
12621         * sysdeps/sparc/configure: Generate.
12622         * configure.in (libc_cv_sparc_as_vis3): Substitute.
12623         * configure: Regenerate.
12624         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
12625         * config.make.in (have-as-vis3): New.
12626         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
12627         available use -Av9d instead of -Av9a.
12628         * sysdeps/sparc/sparc64/Makefile: Likewise.
12629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
12630         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
12631         New file.
12632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
12633         file.
12634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
12635         New file.
12636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
12637         file.
12638         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
12639         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
12640         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
12641         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
12642         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
12644         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
12645         fzeros/fnegs to load 0x80000000 into a float register instead of
12646         using the stack.
12647         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
12649 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12651         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12652         bits/syscall.h.
12653         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
12654         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
12655         ($(inst_includedir)/bits/syscall.h): Remove rule.
12656         ($(objpfx)bits/syscall.d): Include instead of
12657         $(objpfx)syscall-list.d.
12658         (generated): Change syscall-list.h and syscall-list.d to
12659         bits/syscall.h and bits/syscall.d.
12661 2012-03-14  Roland McGrath  <roland@hack.frob.com>
12663         [BZ #13846]
12664         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
12666 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
12668         [BZ #13841]
12669         * math/s_csqrt.c: Include <float.h>.
12670         (__csqrt): Scale large or subnormal inputs.
12671         * math/s_csqrtf.c: Likewise.
12672         * math/s_csqrtl.c: Likewise.
12673         * math/libm-test.inc (csqrt_test): Add more tests.
12674         * sysdeps/i386/fpu/libm-test-ulps: Update.
12675         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12677         [BZ #13840]
12678         * math/libm-test.inc (hypot_test): Add more tests.
12680 2012-03-13  David S. Miller  <davem@davemloft.net>
12682         [BZ #13840]
12683         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
12684         double-precision for the calculation instead of scaling.
12686 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
12688         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
12689         manipulate bits before adding and subtracting TWO52[sx].
12690         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
12691         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
12692         Likewise.
12693         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
12695 2012-03-13  David S. Miller  <davem@davemloft.net>
12697         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
12698         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
12699         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
12700         rtld-global-offsets.h
12701         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12703         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
12704         large parameters.
12706         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
12708         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
12709         'err' in the ifdef scope in which it is actually used.
12711         * nss/nss_db/db-init.c: Include string.h
12713 2012-03-12  David S. Miller  <davem@davemloft.net>
12715         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12716         masking out of the most significant byte of random value used.
12717         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12718         Fix coding style in previous change.
12720         * sysdeps/unix/sysv/linux/kernel-features.h
12721         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
12722         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
12723         expression.
12724         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
12725         later.
12727 2012-03-11  David S. Miller  <davem@davemloft.net>
12729         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12730         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
12731         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
12732         for 'resultvar' otherwise things get truncated on 64-bit.
12734         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
12735         Fix masking out of the most significant byte of random value used.
12737         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12739 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
12741         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12743 2012-03-09  David S. Miller  <davem@davemloft.net>
12745         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
12746         variables with appropriate CPP guards.
12747         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
12748         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
12749         on resulting framesize and the management of the outregs buffer for pltexit.
12750         Preserve floating point return values across _dl_call_pltexit call.
12751         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
12752         framesize and the management of the outregs buffer for pltexit.
12753         Preserve floating point return values across _dl_call_pltexit
12754         call.
12755         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
12756         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
12757         (print_exit): Fix format string for return register value.
12759 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
12761         * sunrpc/Makefile (others): Add rpcgen.
12762         ($(objpfx)rpcgen): Remove special build rule and dependency on
12763         libc.
12764         * sunrpc/rpcgen.c: New file.
12766 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
12768         [BZ #13673]
12769         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
12770         * stdio-common/bug-vfprintf-nargs.c: Likewise.
12771         * sysdeps/i386/crti.S: Likewise.
12772         * sysdeps/i386/crtn.S: Likewise.
12773         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
12774         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
12775         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
12776         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
12777         * sysdeps/sh/crti.S: Likewise.
12778         * sysdeps/sh/crtn.S: Likewise.
12779         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
12781         [BZ #13673]
12782         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
12783         with URL.
12784         * locale/programs/locfile-kw.gperf: Likewise.
12785         * locale/programs/charmap-kw.h: Regenerated.
12786         * locale/programs/locfile-kw.h: Likewise.
12788         [BZ #13673]
12789         * intl/plural.y: Replace FSF snail mail address with URL.
12790         * intl/plural.c: Regenerated.
12792 2012-03-09  Richard Henderson  <rth@twiddle.net>
12794         * include/math_private.h: Remove file.
12795         * math/math_private.h: Move file ...
12796         * sysdeps/generic/math_private.h: ... here.
12798         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
12799         * sysdeps/powerpc/fpu/math_private.h: Likewise.
12800         * sysdeps/x86_64/fpu/math_private.h: Likewise.
12802         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
12803         and <math_private.h>.
12804         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
12805         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
12806         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
12807         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
12808         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
12809         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
12810         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12811         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12812         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
12813         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12814         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12815         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
12816         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
12817         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12818         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
12819         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
12820         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
12821         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
12822         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
12823         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
12824         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12825         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
12826         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
12827         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12828         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
12829         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12830         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
12831         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12832         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12833         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
12834         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
12835         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12836         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
12837         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
12838         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
12839         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
12840         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
12841         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
12842         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
12843         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
12844         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
12845         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
12846         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
12847         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
12848         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
12849         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
12850         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
12851         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
12852         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
12853         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
12854         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
12855         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
12856         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
12857         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
12858         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
12859         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
12860         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
12861         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
12862         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
12863         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
12864         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12865         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
12866         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12867         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
12868         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
12869         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12870         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12871         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12872         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
12873         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
12874         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
12875         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
12876         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
12877         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
12878         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
12879         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
12880         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
12881         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
12882         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
12883         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
12884         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
12885         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
12886         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
12887         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
12888         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
12889         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
12890         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
12891         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
12892         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
12893         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
12894         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
12895         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
12896         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
12897         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
12898         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
12899         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
12900         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
12901         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
12902         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12903         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
12904         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
12905         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
12906         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
12907         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
12908         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
12909         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
12910         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
12911         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
12912         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
12913         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
12914         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
12915         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
12916         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
12917         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
12918         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
12919         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
12920         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
12921         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
12922         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
12923         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
12924         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
12925         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
12926         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
12927         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
12928         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
12929         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
12930         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
12931         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
12932         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
12933         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
12934         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
12935         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
12936         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
12937         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
12938         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
12939         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
12940         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
12941         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
12942         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
12943         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
12944         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
12945         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
12946         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
12947         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
12948         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
12949         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
12950         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
12951         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
12952         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
12953         * sysdeps/ieee754/k_standard.c: Likewise.
12954         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
12955         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
12956         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
12957         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
12958         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
12959         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
12960         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
12961         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
12962         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
12963         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
12964         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12965         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
12966         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
12967         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
12968         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
12969         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
12970         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
12971         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
12972         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
12973         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
12974         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
12975         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
12976         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
12977         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
12978         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
12979         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
12980         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
12981         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
12982         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
12983         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
12984         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
12985         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
12986         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
12987         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
12988         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
12989         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
12990         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
12991         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
12992         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
12993         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
12994         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
12995         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
12996         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
12997         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
12998         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
12999         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
13000         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
13001         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
13002         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
13003         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
13004         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
13005         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
13006         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
13007         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
13008         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
13009         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
13010         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
13011         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
13012         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
13013         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
13014         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
13015         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
13016         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
13017         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
13018         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
13019         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
13020         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
13021         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
13022         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
13023         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
13024         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
13025         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
13026         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
13027         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
13028         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
13029         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
13030         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
13031         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
13032         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13033         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
13034         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
13035         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
13036         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
13037         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
13038         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
13039         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
13040         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
13041         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
13042         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
13043         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
13044         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
13045         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
13046         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
13047         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
13048         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
13049         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
13050         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
13051         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
13052         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
13053         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
13054         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
13055         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
13056         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
13057         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
13058         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
13059         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
13060         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
13061         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
13063         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
13064         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
13065         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
13066         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
13067         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
13069         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13070         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
13071         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
13072         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13073         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
13074         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
13075         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
13076         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13077         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
13078         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
13079         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
13080         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13081         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
13082         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
13083         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
13084         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13085         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13086         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13087         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13088         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
13089         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
13090         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
13091         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13092         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13093         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
13094         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
13095         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13096         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
13097         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
13098         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
13099         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13100         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13101         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
13102         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
13103         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
13104         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13105         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13106         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
13107         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13108         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
13109         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
13110         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
13111         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
13112         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
13113         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13114         * sysdeps/ieee754/s_lib_version.c: Likewise.
13115         * sysdeps/ieee754/s_matherr.c: Likewise.
13116         * sysdeps/ieee754/s_signgam.c: Likewise.
13117         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
13118         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
13119         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
13120         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
13121         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
13122         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
13123         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
13124         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
13125         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
13126         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
13127         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
13128         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
13129         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
13130         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
13131         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
13132         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
13133         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
13134         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
13135         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
13136         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
13137         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
13139 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13141         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
13142         * sunrpc/rpc_main.c: Likewise.
13143         * sunrpc/rpc_svcout.c: Likewise.
13145 2012-03-09  David S. Miller  <davem@davemloft.net>
13147         * include/math_private.h: New file.
13149 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
13151         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
13152         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
13153         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
13154         from <bits/socket_type.h>.
13155         (enum __socket_type): Don't define here.
13156         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
13157         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13158         bits/socket_type.h.
13160         [BZ #13566]
13161         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
13162         checking __USE_GNU.
13164         * Makerules ($(inst_includedir)/%.h): New rule.
13165         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
13166         (install-others): Remove variable setting.
13167         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
13169 2012-03-08  Richard Henderson  <rth@twiddle.net>
13171         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
13172         from macro to inline function; merge with the
13173         !__LIBC_INTERNAL_MATH_INLINES version.
13174         (__ieee754_sqrtf): Likewise.
13176         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
13177         to inline function.
13178         (__rintf, __floor, __floorf): Likewise.
13180         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
13181         macro to inline function.
13182         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
13184         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
13185         not <math/math_private.h>.
13187 2012-03-08  David S. Miller  <davem@davemloft.net>
13189         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
13190         copyright year.
13191         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
13193 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
13195         * resolv/gai_misc.c (handle_requests): Fix struct timespec
13196         normalization.
13197         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
13198         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
13200 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
13202         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
13203         be defined individually, they must be defined as a block.  Define
13204         S for printing a string instead of hidint the different by using a
13205         macro for adding the 'l'.
13206         * stdio-common/tst-fphex-wide.c: Adjust.
13208 2012-03-07  Marek Polacek  <polacek@redhat.com>
13210         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
13212 2012-03-08  Marek Polacek  <polacek@redhat.com>
13214         [BZ #13806]
13215         * stdio-common/Makefile (tests): Add tst-fphex-wide.
13216         * stdio-common/tst-fphex.c: Define a few macros to make the
13217         test reusable.  Use them.
13218         * stdio-common/tst-fphex-wide.c: New file.
13220 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
13222         [BZ #6911]
13223         * manual/macros.texi (gnusystems): New macro.
13224         (nongnusystems): Likewise.
13225         (gnulinuxhurdsystems): Likewise.
13226         (gnuhurdsystems): Likewise..
13227         (gnulinuxsystems): Likewise.
13228         * manual/charset.texi: Use new macros or @theglibc{} to refer to
13229         variants of the GNU system, not "GNU system".
13230         * manual/conf.texi: Likewise.
13231         * manual/errno.texi: Likewise.  Update example of errno macro
13232         expansion.
13233         * manual/filesys.texi: Likewise.
13234         (getumask): Document as specific to GNU/Hurd.
13235         * manual/install.texi: Likewise.  Reword some references to
13236         GNU/Linux.
13237         * manual/intro.texi: Likewise.
13238         * manual/io.texi: Likewise.
13239         (File Name Portability): Detail which constraints are inapplicable
13240         to all GNU systems and which are only inapplicable to GNU/Hurd.
13241         * manual/job.texi: Likewise.
13242         * manual/llio.texi: Likewise.
13243         (O_NOCTTY): Document as present on GNU/Linux.
13244         * manual/maint.texi: Likewise.
13245         * manual/memory.texi: Likewise.
13246         * manual/pattern.texi: Likewise.
13247         * manual/pipe.texi: Likewise.
13248         * manual/process.texi: Likewise.
13249         * manual/resource.texi: Likewise.
13250         (RUSAGE_CHILDREN): Remove statement about specifying a particular
13251         child on GNU/Hurd.
13252         * manual/setjmp.texi: Likewise.
13253         * manual/signal.texi: Likewise.
13254         * manual/startup.texi: Likewise.
13255         * manual/stdio.texi: Likewise.
13256         * manual/terminal.texi: Likewise.
13257         (ONLCR): Document as POSIX.
13258         (OXTABS): Document availability on GNU/Linux as XTABS.
13259         (ONOEOT): Document availability separately from other bits.
13260         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
13261         * manual/time.texi: Likewise.
13262         * manual/users.texi: Likewise.
13263         * INSTALL: Regenerated.
13264         * sysdeps/gnu/errlist.c: Regenerated.
13266         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
13267         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
13268         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
13269         puts.
13270         * configure: Regenerated.
13272 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
13274         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
13275         default includes instead of AC_HEADER_CHECK.
13276         * sysdeps/i386/configure: Regenerated.
13278         [BZ #10716]
13279         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
13280         * math/s_cacoshf.c (__cacoshf): Likewise.
13281         * math/s_cacoshl.c (__cacoshl): Likewise.
13282         * math/s_casinh.c (__casinh): Set signs of result from argument.
13283         * math/s_casinhf.c (__casinhf): Likewise.
13284         * math/s_casinhl.c (__casinhl): Likewise.
13285         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
13286         (casinh_test): Add more tests.
13287         * sysdeps/i386/fpu/libm-test-ulps: Update.
13288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13290 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
13292         * po/zh_TW.po: Update from translation team.
13294         * login/Makefile (distribute): Remove variable.
13295         * catgets/Makefile: Likewise.
13296         * mach/Makefile: Likewise.
13297         * malloc/Makefile: Likewise.
13298         * misc/Makefile: Likewise.
13299         * iconv/Makefile: Likewise.
13300         * nscd/Makefile: Likewise.
13301         * hurd/Makefile: Likewise.
13302         * manual/Makefile: Likewise.
13303         * locale/Makefile: Likewise.
13304         * intl/Makefile: Likewise.
13305         * conform/Makefile: Likewise.
13306         * nss/Makefile: Likewise.
13307         * time/Makefile: Likewise.
13308         * soft-fp/Makefile: Likewise.
13309         * dirent/Makefile: Likewise.
13310         * gmon/Makefile: Likewise.
13311         * po/Makefile: Likewise.
13312         * rt/Makefile: Likewise.
13313         * socket/Makefile: Likewise.
13314         * math/Makefile: Likewise.
13315         * signal/Makefile: Likewise.
13316         * debug/Makefile: Likewise.
13317         * elf/Makefile: Likewise.
13318         * timezone/Makefile: Likewise.
13319         * stdlib/Makefile: Likewise.
13320         * iconvdata/Makefile: Likewise.
13321         * sunrpc/Makefile: Likewise.
13322         * io/Makefile: Likewise.
13323         * argp/Makefile: Likewise.
13324         * inet/Makefile: Likewise.
13325         * hesiod/Makefile: Likewise.
13326         * grp/Makefile: Likewise.
13327         * csu/Makefile: Likewise.
13328         * wctype/Makefile: Likewise.
13329         * crypt/Makefile: Likewise.
13330         * libio/Makefile: Likewise.
13331         * string/Makefile: Likewise.
13332         * nis/Makefile: Likewise.
13333         * resolv/Makefile: Likewise.
13334         * stdio-common/Makefile: Likewise.
13335         * wcsmbs/Makefile: Likewise.
13336         * dlfcn/Makefile: Likewise.
13337         * posix/Makefile: Likewise.
13339         [BZ #6959]
13340         * timezone/Makefile: Don't install timezone files, just the programs
13341         and scripts.
13343 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
13345         * nss/databases.def: Add missing gshadow entry.
13347         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
13349 2012-03-06  Marek Polacek  <polacek@redhat.com>
13351         [BZ #13726]
13352         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
13353         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
13354         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
13355         * stdio-common/tst-long-dbl-fphex.c: New file.
13357 2012-03-06  David S. Miller  <davem@davemloft.net>
13359         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13360         (set_obp_int): New function.
13361         (get_obp_int): New function.
13362         (__get_clockfreq_via_dev_openprom): Likewise.
13363         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
13364         Avoid unused variable warnings on 'val' and use builtin_expect.
13365         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
13366         __builtin_expect.
13367         (INLINE_CLONE_SYSCALL): Likewise.
13369 2012-03-05  David S. Miller  <davem@davemloft.net>
13371         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13373 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
13375         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13377         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
13378         only for |x| >= 40.
13379         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
13381 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13383         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
13384         Replace gettimeofday with __vdso_gettimeofday.
13386         * sysdeps/unix/sysv/linux/x86_64/init-first.c
13387         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
13388         __vdso_clock_gettime and __vdso_getcpu.
13390         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
13391         time with __vdso_time.
13393 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13395         * manual/lang.texi (size_t): Note types to which size_t may be
13396         equivalent with the GNU C Library, but do not describe when
13397         differences between them are significant.
13399 2012-03-05  Andreas Jaeger  <aj@suse.de>
13401         * sysdeps/i386/fpu/libm-test-ulps: Update.
13403 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
13405         [BZ #3976]
13406         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
13407         (__ieee754_pow): Save and restore rounding mode and use
13408         round-to-nearest for main computations.
13409         * math/libm-test.inc (pow_test_tonearest): New function.
13410         (pow_test_towardzero): Likewise.
13411         (pow_test_downward): Likewise.
13412         (pow_test_upward): Likewise.
13413         (main): Call the new functions.
13414         * sysdeps/i386/fpu/libm-test-ulps: Update.
13415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13417         [BZ #3976]
13418         * math/libm-test.inc (cosh_test_tonearest): New function.
13419         (cosh_test_towardzero): Likewise.
13420         (cosh_test_downward): Likewise.
13421         (cosh_test_upward): Likewise.
13422         (sinh_test_tonearest): Likewise.
13423         (sinh_test_towardzero): Likewise.
13424         (sinh_test_downward): Likewise.
13425         (sinh_test_upward): Likewise.
13426         (main): Call the new functions.
13427         * sysdeps/i386/fpu/libm-test-ulps: Update.
13428         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13430 2012-03-05  Tom de Vries  <tom@codesourcery.com>
13432         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
13433         default stack guard is set in last bytes.
13434         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
13436 2012-03-05  Kees Cook  <keescook@chromium.org>
13438         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
13440         [BZ #13656]
13441         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
13442         possibly allocate from heap instead of stack.
13443         * stdio-common/bug-vfprintf-nargs.c: New file.
13444         * stdio-common/Makefile (tests): Add nargs overflow test.
13446 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
13448         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13450 2012-03-03  Marek Polacek  <polacek@redhat.com>
13452         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
13453         * math/math_private.h: Likewise.
13454         * stdlib/tst-strtod.c: Likewise.
13455         * sysdeps/i386/i486/bits/atomic.h: Likewise.
13456         * sysdeps/x86_64/bits/atomic.h: Likewise.
13458 2012-03-02  David S. Miller  <davem@davemloft.net>
13460         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
13461         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
13462         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
13463         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
13464         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
13465         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
13466         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
13467         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
13469 2012-03-02  Roland McGrath  <roland@hack.frob.com>
13471         [BZ #13792]
13472         * manual/examples/README: New file, says the example source files
13473         can be used under GPL>=2.
13474         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
13475         line containing just "*/".
13476         * manual/examples/add.c: Add copyright header (GPL>=2).
13477         * manual/examples/argp-ex1.c: Likewise.
13478         * manual/examples/argp-ex2.c: Likewise.
13479         * manual/examples/argp-ex3.c: Likewise.
13480         * manual/examples/argp-ex4.c: Likewise.
13481         * manual/examples/atexit.c: Likewise.
13482         * manual/examples/db.c: Likewise.
13483         * manual/examples/dir.c: Likewise.
13484         * manual/examples/dir2.c: Likewise.
13485         * manual/examples/execinfo.c: Likewise.
13486         * manual/examples/filecli.c: Likewise.
13487         * manual/examples/filesrv.c: Likewise.
13488         * manual/examples/fmtmsgexpl.c: Likewise.
13489         * manual/examples/genpass.c: Likewise.
13490         * manual/examples/inetcli.c: Likewise.
13491         * manual/examples/inetsrv.c: Likewise.
13492         * manual/examples/isockad.c: Likewise.
13493         * manual/examples/longopt.c: Likewise.
13494         * manual/examples/memopen.c: Likewise.
13495         * manual/examples/memstrm.c: Likewise.
13496         * manual/examples/mkfsock.c: Likewise.
13497         * manual/examples/mkisock.c: Likewise.
13498         * manual/examples/mygetpass.c: Likewise.
13499         * manual/examples/pipe.c: Likewise.
13500         * manual/examples/popen.c: Likewise.
13501         * manual/examples/rprintf.c: Likewise.
13502         * manual/examples/search.c: Likewise.
13503         * manual/examples/select.c: Likewise.
13504         * manual/examples/setjmp.c: Likewise.
13505         * manual/examples/sigh1.c: Likewise.
13506         * manual/examples/sigusr.c: Likewise.
13507         * manual/examples/stpcpy.c: Likewise.
13508         * manual/examples/strdupa.c: Likewise.
13509         * manual/examples/strftim.c: Likewise.
13510         * manual/examples/strncat.c: Likewise.
13511         * manual/examples/subopt.c: Likewise.
13512         * manual/examples/swapcontext.c: Likewise.
13513         * manual/examples/termios.c: Likewise.
13514         * manual/examples/testopt.c: Likewise.
13515         * manual/examples/testpass.c: Likewise.
13516         * manual/examples/timeval_subtract.c: Likewise.
13518         [BZ #13792]
13519         * manual/time.texi (Elapsed Time): Move timeval_subtract example
13520         function to ...
13521         * manual/timeval_subtract.c.texi: ... here, new file.
13523 2012-03-02  David S. Miller  <davem@davemloft.net>
13525         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
13527 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
13529         [BZ #3976]
13530         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
13531         (__sin): Save and restore rounding mode and use round-to-nearest
13532         for all computations.
13533         (__cos): Save and restore rounding mode and use round-to-nearest
13534         for all computations.
13535         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
13536         <fenv.h>.
13537         (tan): Save and restore rounding mode and use round-to-nearest for
13538         all computations.
13539         * math/libm-test.inc (cos_test_tonearest): New function.
13540         (cos_test_towardzero): Likewise.
13541         (cos_test_downward): Likewise.
13542         (cos_test_upward): Likewise.
13543         (sin_test_tonearest): Likewise.
13544         (sin_test_towardzero): Likewise.
13545         (sin_test_downward): Likewise.
13546         (sin_test_upward): Likewise.
13547         (tan_test_tonearest): Likewise.
13548         (tan_test_towardzero): Likewise.
13549         (tan_test_downward): Likewise.
13550         (tan_test_upward): Likewise.
13551         (main): Call the new functions.
13552         * sysdeps/i386/fpu/libm-test-ulps: Update.
13553         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13555         [BZ #10135]
13556         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
13557         small n, then large n, before computing and testing k+n.
13558         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
13559         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
13560         Likewise.
13561         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
13562         Likewise.
13563         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
13564         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
13565         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
13566         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
13567         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
13568         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
13569         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
13570         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
13571         * math/libm-test.inc (scalbn_test): Add more tests.
13572         (scalbln_test): Likewise.
13574         * manual/filesys.texi (mode_t): Describe constraints on size and
13575         signedness, not exact equivalence to a particular type.
13576         (ino_t): Likewise.
13577         (ino64_t): Likewise.
13578         (dev_t): Likewise.
13579         (nlink_t): Likewise.
13580         (blkcnt_t): Likewise.
13581         (blkcnt64_t): Likewise.
13582         * manual/llio.texi (off_t): Likewise.
13584         [BZ #3976]
13585         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
13586         (__ieee754_exp): Save and restore rounding mode and use
13587         round-to-nearest for all computations.
13588         * math/libm-test.inc (exp_test_tonearest): New function.
13589         (exp_test_towardzero): Likewise.
13590         (exp_test_downward): Likewise.
13591         (exp_test_upward): Likewise.
13592         (main): Call the new functions.
13593         * sysdeps/i386/fpu/libm-test-ulps: Update.
13594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13596 2012-03-01  Chris Demetriou  <cgd@google.com>
13598         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
13599         have predictable order.
13601 2012-03-01  David S. Miller  <davem@davemloft.net>
13603         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
13605         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
13606         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
13607         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
13608         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
13610         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
13611         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
13612         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
13613         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
13614         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
13615         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
13616         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
13617         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
13618         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
13620         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13622         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
13623         * sysdeps/sparc/fpu/libm-test-ulps: to here.
13624         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
13626         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
13627         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
13628         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
13629         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
13630         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
13631         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
13632         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
13633         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
13634         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
13635         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
13636         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
13637         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
13638         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
13639         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
13640         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
13641         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
13642         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
13643         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
13644         * sysdeps/sparc/elf/configure: Regenerated.
13646 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
13648         * configure.in (AS, LD): Require binutils 2.20 or later.
13649         * configure: Regenerated.
13650         * manual/install.texi (Tools for Compilation): Give binutils 2.20
13651         as required minimum version.
13652         * INSTALL: Regenerated.
13654         [BZ #2541]
13655         [BZ #4108]
13656         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
13657         before squaring exponent.
13658         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
13659         bottom long double and 27 bits of top long double before squaring
13660         exponent.
13661         * math/libm-test.inc (erfc_test): Add more tests.
13662         * sysdeps/i386/fpu/libm-test-ulps: Update.
13663         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13664         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13666 2012-03-01  Kai Tietz  <ktietz@redhat.com>
13668         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
13669         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
13670         containing bit-fields.
13671         * soft-fp/extended.h (_FP_UNION_E): Likewise.
13672         * soft-fp/single.h (_FP_UNION_S): Likewise.
13673         * soft-fp/double.h (_FP_UNION_D): Likewise.
13675 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13677         [BZ #13786]
13678         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
13679         not include ../strcmp.S.
13680         [USE_AS_STRNCASECMP_L]: Likewise.
13681         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
13682         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
13683         * sysdeps/i386/i686/multiarch/strncase_l-c.c
13684         (__strncasecmp_l_ia32): Define as alias to
13685         __strncasecmp_l_nonascii.
13687         [BZ #5794]
13688         * math/libm-test.inc (expm1_test): Add test for bug 5794.
13689         * sysdeps/i386/fpu/libm-test-ulps: Update.
13690         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13692         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
13693         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13695 2012-02-29  Jeff Law  <law@redhat.com>
13697         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
13698         out of bounds read.
13700 2012-02-29  Marek Polacek  <polacek@redhat.com>
13702         [BZ #13706]
13703         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
13704         * elf/Makefile: Add rules to run tst-unused-dep.out.
13706 2012-02-28  David S. Miller  <davem@davemloft.net>
13708         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
13709         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
13710         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
13711         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
13712         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
13713         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
13715 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
13717         * math/libm-test.inc (llround_test): Move one test from
13718         lround_test.  Use TEST_f_L in moved test.
13719         (lround_test): Move misplaced test to llround_test.  Add testcase
13720         from bug 2561.
13722 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
13724         * sysdeps/x86_64/fpu/e_expf.S: New file.
13725         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
13727 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
13729         [BZ #13637]
13730         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
13731         of remain_len that may cause incomplete multi-byte character and
13732         false match.
13733         * posix/bug-regex33.c: New file.
13734         * posix/Makefile (tests): Add bug-regex33.
13736 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
13738         * manual/macros.texi: New file.
13739         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
13740         * manual/libc.texinfo: Include macros.texi.
13741         * manual/creatute.texi: Likewise.
13742         * manual/install.texi: Likewise.
13743         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
13744         @glibcadj{} in references to the GNU C Library.
13745         * manual/charset.texi: Likewise.
13746         * manual/conf.texi: Likewise.
13747         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
13748         when not using those macros.
13749         * manual/creature.texi: Likewise.
13750         * manual/crypt.texi: Likewise.
13751         * manual/errno.texi: Likewise.
13752         * manual/filesys.texi: Likewise.
13753         * manual/header.texi: Likewise.
13754         * manual/install.texi: Likewise.
13755         * manual/intro.texi: Likewise.
13756         * manual/io.texi: Likewise.
13757         * manual/job.texi: Likewise.
13758         * manual/lang.texi: Likewise.
13759         * manual/libc.texiinfo: Likewise.
13760         * manual/llio.texi: Likewise.
13761         * manual/locale.texi: Likewise.
13762         * manual/maint.texi: Likewise.
13763         * manual/math.texi: Likewise.
13764         * manual/memory.texi: Likewise.
13765         * manual/message.texi: Likewise.
13766         * manual/nss.texi: Likewise.
13767         * manual/pattern.texi: Likewise.
13768         * manual/process.texi: Likewise.
13769         * manual/resource.texi: Likewise.
13770         * manual/search.texi: Likewise.
13771         * manual/setjmp.texi: Likewise.
13772         * manual/signal.texi: Likewise.
13773         * manual/socket.texi: Likewise.
13774         * manual/startup.texi: Likewise.
13775         * manual/stdio.texi: Likewise.
13776         * manual/string.texi: Likewise.
13777         * manual/sysinfo.texi: Likewise.
13778         * manual/syslog.texi: Likewise.
13779         * manual/terminal.texi: Likewise.
13780         * manual/time.texi: Likewise.
13781         * manual/users.texi: Likewise.
13782         * INSTALL: Regenerated.
13783         * NOTES: Regenerated.
13784         * sysdeps/gnu/errlist.c: Regenerated.
13786 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
13788         * include/dirent.h: Include <dirstream.h> before
13789         <dirent/dirent.h>.
13791 2012-02-28  David S. Miller  <davem@davemloft.net>
13793         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
13794         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
13795         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
13796         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
13798 2012-02-27  David S. Miller  <davem@davemloft.net>
13800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
13801         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
13802         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
13803         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
13805         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
13806         frame pointer instead of stack pointer relative arg slot.
13807         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13808         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13809         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13811 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
13813         [BZ #3992]
13814         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
13816 2012-02-27  David S. Miller  <davem@davemloft.net>
13818         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
13819         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
13820         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
13821         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
13822         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
13823         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
13824         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
13825         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
13827 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13829         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
13830         later.  Allow versions 5-9.
13831         * configure: Regenerated.
13832         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
13833         required minimum version and 4.6 as recommended version.  Do not
13834         mention bugs in GCC 2.7 and 2.8.
13835         * INSTALL: Regenerated.
13837 2012-02-27  David S. Miller  <davem@davemloft.net>
13839         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
13840         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
13841         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
13842         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
13843         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
13844         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
13845         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
13846         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
13848         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
13849         manipulate bits before adding and subtracting TWO112[sx].
13850         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
13852 2012-02-27  Roland McGrath  <roland@hack.frob.com>
13854         [BZ #13775]
13855         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
13856         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
13857         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
13858         being in POSIX, because they are in 1003.1-2008.
13860         * rt/tst-aio.c: Include <fcntl.h>.
13861         * rt/tst-aio7.c: Likewise.
13862         * rt/tst-aio64.c: Likewise.
13864         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
13866 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
13868         * manual/install.texi (--with-headers): Describe headers as
13869         interface headers, not private headers.
13870         (Specific advice for GNU/Linux systems): Describe use of headers
13871         from "make headers_install", not private headers from older
13872         kernels.
13873         * INSTALL: Regenerated.
13874         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
13875         Change to 2.6.19.
13876         * sysdeps/unix/sysv/linux/configure: Regenerated.
13878         * manual/llio.texi (fclean): Remove documentation.
13880         * manual/Makefile (libc-texi-generated): New variable.  Include
13881         version.texi.
13882         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
13883         $(libc-texi-generated), not duplicated list of files.
13884         (version.texi, stamp-version): New rules.
13885         (realclean): Remove $(libc-texi-generated), not individual files
13886         from that list.  Do not remove dir-add.texinfo.
13887         * manual/libc.texinfo: Comment out uses of edition numbers and
13888         references to printed manual.  Remove last-updated dates.
13889         (EDITION): Comment out.
13890         (ISBN): Likewise.
13891         (VERSION, UPDATED): Remove.
13892         (version.texi): Include.
13894 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
13896         * sysdeps/posix/spawni.c: Include <signal.h>.
13897         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
13898         * sysdeps/pthread/aio_fsync.c: Likewise.
13900 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
13902         * conform/Makefile (tests): Run only when not cross-compiling and
13903         when fast-check is not defined.
13905         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
13906         * conform/data/limits.h-data: Fixes for POSIX2008.
13907         * conform/run-conformtest.sh: Run all tests.
13908         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
13909         headers.
13910         * include/bits/dlfcn.h: Likewise.
13911         * include/langinfo.h: Likewise.
13912         * include/monetary.h: Likewise.
13913         * include/sys/poll.h: Likewise.
13915         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
13916         for __USE_GNU.
13917         * posix/spawn.h: Define __need_sigset_t.
13918         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
13919         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
13920         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
13921         to get sigevent_t only.
13922         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
13923         only for __USE_GNU.
13924         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
13925         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13926         process_vm_writev only for __USE_GNU.
13927         * termios/termios.h: Declare tcgetsid also for POSIX2008.
13929         * conform/Makefile: For now ignore errors from run-conformtest.
13930         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
13931         POSIX to avoid namespace pollution.  Don't prepend headers.
13932         * conform/data/aio.h-data: Fixes for POSIX testing.
13933         * conform/data/fcntl.h-data: Likewise.
13934         * conform/data/glob.h-data: Likewise.
13935         * conform/data/grp.h-data: Likewise.
13936         * conform/data/pthread.h-data: Likewise.
13937         * conform/data/pwd.h-data: Likewise.
13938         * conform/data/signal.h-data: Likewise.
13939         * conform/data/spawn.h-data: Likewise.
13940         * conform/data/stdio.h-data: Likewise.
13941         * conform/data/stdlib.h-data: Likewise.
13942         * conform/data/stropts.h-data: Likewise.
13943         * conform/data/sys/mman.h-data: Likewise.
13944         * conform/data/sys/stat.h-data: Likewise.
13945         * conform/data/sys/types.h-data: Likewise.
13946         * conform/data/sys/wait.h-data: Likewise.
13947         * conform/data/time.h-data: Likewise.
13948         * conform/data/unistd.h-data: Likewise.
13949         * conform/data/utime.h-data: Likewise.
13951         * io/sys/stat.h: fchmod was always in POSIX.
13952         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
13953         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
13954         * rt/aio.h: Define __need_timespec before including <time.h>.
13955         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
13956         struct.  Add forward declaration of pthread_attr_t and use it in
13957         sigevent.
13958         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13959         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13960         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
13961         always remove CLK_TCK definition.
13963 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
13965         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
13967 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
13969         * conform/run-conformtest.sh: New file.
13970         * conform/Makefile: Run run-conformtest for tests.
13971         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
13972         support.
13974         * conform/data/uchar.h-data: New file.
13975         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
13976         * conform/data/arpa/inet.h-data: Likewise.
13977         * conform/data/assert.h-data: Likewise.
13978         * conform/data/complex.h-data: Likewise.
13979         * conform/data/cpio.h-data: Likewise.
13980         * conform/data/ctype.h-data: Likewise.
13981         * conform/data/dirent.h-data: Likewise.
13982         * conform/data/dlfcn.h-data: Likewise.
13983         * conform/data/errno.h-data: Likewise.
13984         * conform/data/fcntl.h-data: Likewise.
13985         * conform/data/float.h-data: Likewise.
13986         * conform/data/fmtmsg.h-data: Likewise.
13987         * conform/data/fnmatch.h-data: Likewise.
13988         * conform/data/ftw.h-data: Likewise.
13989         * conform/data/glob.h-data: Likewise.
13990         * conform/data/grp.h-data: Likewise.
13991         * conform/data/iconv.h-data: Likewise.
13992         * conform/data/inttypes.h-data: Likewise.
13993         * conform/data/langinfo.h-data: Likewise.
13994         * conform/data/libgen.h-data: Likewise.
13995         * conform/data/limits.h-data: Likewise.
13996         * conform/data/locale.h-data: Likewise.
13997         * conform/data/math.h-data: Likewise.
13998         * conform/data/monetary.h-data: Likewise.
13999         * conform/data/mqueue.h-data: Likewise.
14000         * conform/data/ndbm.h-data: Likewise.
14001         * conform/data/net/if.h-data: Likewise.
14002         * conform/data/netdb.h-data: Likewise.
14003         * conform/data/netinet/in.h-data: Likewise.
14004         * conform/data/nl_types.h-data: Likewise.
14005         * conform/data/poll.h-data: Likewise.
14006         * conform/data/pthread.h-data: Likewise.
14007         * conform/data/pwd.h-data: Likewise.
14008         * conform/data/regex.h-data: Likewise.
14009         * conform/data/sched.h-data: Likewise.
14010         * conform/data/search.h-data: Likewise.
14011         * conform/data/semaphore.h-data: Likewise.
14012         * conform/data/setjmp.h-data: Likewise.
14013         * conform/data/signal.h-data: Likewise.
14014         * conform/data/spawn.h-data: Likewise.
14015         * conform/data/stdarg.h-data: Likewise.
14016         * conform/data/stdio.h-data: Likewise.
14017         * conform/data/stdlib.h-data: Likewise.
14018         * conform/data/string.h-data: Likewise.
14019         * conform/data/strings.h-data: Likewise.
14020         * conform/data/stropts.h-data: Likewise.
14021         * conform/data/sys/ipc.h-data: Likewise.
14022         * conform/data/sys/mman.h-data: Likewise.
14023         * conform/data/sys/msg.h-data: Likewise.
14024         * conform/data/sys/resource.h-data: Likewise.
14025         * conform/data/sys/select.h-data: Likewise.
14026         * conform/data/sys/sem.h-data: Likewise.
14027         * conform/data/sys/shm.h-data: Likewise.
14028         * conform/data/sys/socket.h-data: Likewise.
14029         * conform/data/sys/stat.h-data: Likewise.
14030         * conform/data/sys/statvfs.h-data: Likewise.
14031         * conform/data/sys/time.h-data: Likewise.
14032         * conform/data/sys/timeb.h-data: Likewise.
14033         * conform/data/sys/times.h-data: Likewise.
14034         * conform/data/sys/types.h-data: Likewise.
14035         * conform/data/sys/uio.h-data: Likewise.
14036         * conform/data/sys/un.h-data: Likewise.
14037         * conform/data/sys/utsname.h-data: Likewise.
14038         * conform/data/sys/wait.h-data: Likewise.
14039         * conform/data/syslog.h-data: Likewise.
14040         * conform/data/tar.h-data: Likewise.
14041         * conform/data/termios.h-data: Likewise.
14042         * conform/data/utime.h-data: Likewise.
14043         * conform/data/utmpx.h-data: Likewise.
14044         * conform/data/varargs.h-data: Likewise.
14045         * conform/data/wchar.h-data: Likewise.
14046         * conform/data/wctype.h-data: Likewise.
14047         * conform/data/wordexp.h-data: Likewise.
14049         * include/stropts.h: New file.
14050         * include/uchar.h: New file.
14051         * include/aio.h: Changes to allow conformtest.pl to use the headers.
14052         * include/assert.h: Likewise.
14053         * include/ctype.h: Likewise.
14054         * include/dirent.h: Likewise.
14055         * include/dlfcn.h: Likewise.
14056         * include/fcntl.h: Likewise.
14057         * include/fnmatch.h: Likewise.
14058         * include/glob.h: Likewise.
14059         * include/grp.h: Likewise.
14060         * include/libio.h: Likewise.
14061         * include/locale.h: Likewise.
14062         * include/math.h: Likewise.
14063         * include/net/if.h: Likewise.
14064         * include/netdb.h: Likewise.
14065         * include/netinet/in.h: Likewise.
14066         * include/pthread.h: Likewise.
14067         * include/pwd.h: Likewise.
14068         * include/regex.h: Likewise.
14069         * include/sched.h: Likewise.
14070         * include/search.h: Likewise.
14071         * include/setjmp.h: Likewise.
14072         * include/signal.h: Likewise.
14073         * include/stdio.h: Likewise.
14074         * include/stdlib.h: Likewise.
14075         * include/string.h: Likewise.
14076         * include/sys/cdefs.h: Likewise.
14077         * include/sys/mman.h: Likewise.
14078         * include/sys/msg.h: Likewise.
14079         * include/sys/resource.h: Likewise.
14080         * include/sys/select.h: Likewise.
14081         * include/sys/socket.h: Likewise.
14082         * include/sys/stat.h: Likewise.
14083         * include/sys/statvfs.h: Likewise.
14084         * include/sys/time.h: Likewise.
14085         * include/sys/times.h: Likewise.
14086         * include/sys/uio.h: Likewise.
14087         * include/sys/utsname.h: Likewise.
14088         * include/sys/wait.h: Likewise.
14089         * include/termios.h: Likewise.
14090         * include/time.h: Likewise.
14091         * include/ulimit.h: Likewise.
14092         * include/unistd.h: Likewise.
14093         * include/utime.h: Likewise.
14094         * include/wchar.h: Likewise.
14095         * include/wctype.h: Likewise.
14096         * include/wordexp.h: Likewise.
14098         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
14100         * time/time.h: TIME_UTC must be a macro.
14101         Make timespec_get available for ISO C11 only as well.
14103 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
14105         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
14106         Reported by Peng Haitao <penght@cn.fujitsu.com>.
14108 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14110         * configure.in: Use -o not -a in test for unsupported multi-arch.
14112 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14114         * manual/texinfo.tex: Update to version 2012-01-19.16.
14116 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
14118         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
14120 2012-02-24  Roland McGrath  <roland@hack.frob.com>
14122         [BZ #13738]
14123         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
14124         * manual/fdl-1.3.texi: New file.
14125         * manual/fdl-1.1.texi: File removed.
14127         [BZ #13738]
14128         * manual/libc.texinfo (FDL_VERSION): New @set.
14129         Use it for mention of FDL in cover text.
14130         (Documentation License): Use it in @include file name.
14132 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14133             Roland McGrath  <roland@hack.frob.com>
14135         [BZ #5461]
14136         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
14137         not LONG_LONG_MAX and LONG_LONG_MIN.
14138         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
14139         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
14140         name.
14141         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
14143 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14145         [BZ #2547]
14146         [BZ #11365]
14147         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
14148         manipulate bits before adding and subtracting TWO23[sx].
14149         * math/libm-test.inc (nearbyint_test): Add more tests.
14151 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14153         [BZ #2548]
14154         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
14155         bits before adding and subtracting TWO23[sx].
14156         * math/libm-test.inc (rint_test): Add more tests.
14157         (rint_test_tonearest): Likewise.
14158         (rint_test_towardzero): Likewise.
14159         (rint_test_downward): Likewise.
14160         (rint_test_upward: Likewise.
14162 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14164         [BZ #10110]
14165         * include/stdc-predef.h: New file.  Extracted from features.h.
14166         * include/features.h: Include stdc-predef.h.
14167         * Makefile (headers): Add stdc-predef.h.
14168         * CONFORMANCE (Compiler limitations): Update.
14170 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
14172         * manual/libc.texinfo (VERSION, UPDATED): Revert.
14174 2012-02-21  David S. Miller  <davem@davemloft.net>
14176         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
14177         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14179 2012-02-20  David S. Miller  <davem@davemloft.net>
14181         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
14182         using a normal save/restore sequence, rather than allocating a
14183         dummy stack frame just to store a frame pointer and restore.
14184         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14186 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14188         * manual/install.texi: Fix stray word in line-wrapped comment.
14190 2012-02-20  David S. Miller  <davem@davemloft.net>
14192         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
14193         both binutils and gcc support GOTDATA.
14195         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
14196         "rd %pc" in the PIC register setup sequences.
14198         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
14199         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
14200         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
14201         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
14202         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
14203         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
14204         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14205         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
14206         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
14207         (SYSCALL_ERROR_HANDLER): Likewise.
14208         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
14209         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
14210         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
14211         (SYSCALL_ERROR_HANDLER): Likewise.
14213         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
14214         (HAVE_GCC_GOTDATA): New.
14215         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
14216         relocation support in both binutils and gcc.
14217         * sysdeps/sparc/elf/configure: Regenerate.
14219         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
14220         * sysdeps/sparc/sparc32/elf/configure: Delete.
14221         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
14222         * sysdeps/sparc/sparc64/elf/configure: Delete.
14223         * sysdeps/sparc/elf/configure.in: New file.
14224         * sysdeps/sparc/elf/configure: Generate.
14226         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
14227         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
14228         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14229         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
14230         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
14232 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14234         * manual/install.texi: Do not mention specific glibc version
14235         numbers.
14236         * manual/libc.texinfo (VERSION, UPDATED): Update.
14237         (@copying): Use @copyright{} and range of years.
14239 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
14241         [BZ #13695]
14242         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
14243         [crti.S not in sysdirs] (generated): Do not append.
14244         [crti.S not in sysdirs] (omit-deps): Likewise.
14245         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
14246         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
14247         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
14248         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
14249         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
14250         Likewise.
14251         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
14252         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
14253         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
14254         * csu/defs.awk: Remove file.
14255         * sysdeps/generic/initfini.c: Likewise.
14256         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
14257         variable.
14258         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
14259         Likewise.
14261 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14263         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
14264         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
14265         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
14266         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
14267         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
14268         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
14269         <bits/epoll.h>.
14270         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
14271         (__EPOLL_PACKED): Define to empty if not defined by
14272         <bits/epoll.h>.
14273         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
14274         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14275         bits/epoll.h.
14277 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14279         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
14280         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
14281         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
14282         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
14283         <bits/timerfd.h>.
14284         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
14285         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14286         bits/timerfd.h.
14288 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
14290         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
14291         in C locale.
14292         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
14293         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
14294         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
14295         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14297 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
14299         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14300         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
14302 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
14304         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
14305         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
14306         defined.
14307         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
14308         Likewise.
14309         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
14310         entry for 2.16.
14312 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
14314         * math/w_acos.c: Use non-signaling floating-point comparisons.
14315         * math/w_acosf.c: Likewise.
14316         * math/w_acosh.c: Likewise.
14317         * math/w_acoshf.c: Likewise.
14318         * math/w_acoshl.c: Likewise.
14319         * math/w_acosl.c: Likewise.
14320         * math/w_asin.c: Likewise.
14321         * math/w_asinf.c: Likewise.
14322         * math/w_asinl.c: Likewise.
14323         * math/w_atanh.c: Likewise.
14324         * math/w_atanhf.c: Likewise.
14325         * math/w_atanhl.c: Likewise.
14326         * math/w_exp2.c: Likewise.
14327         * math/w_exp2f.c: Likewise.
14328         * math/w_exp2l.c: Likewise.
14329         * math/w_j0.c: Likewise.
14330         * math/w_j0f.c: Likewise.
14331         * math/w_j0l.c: Likewise.
14332         * math/w_j1.c: Likewise.
14333         * math/w_j1f.c: Likewise.
14334         * math/w_j1l.c: Likewise.
14335         * math/w_jn.c: Likewise.
14336         * math/w_jnf.c: Likewise.
14337         * math/w_log.c: Likewise.
14338         * math/w_log10.c: Likewise.
14339         * math/w_log10f.c: Likewise.
14340         * math/w_log10l.c: Likewise.
14341         * math/w_log2.c: Likewise.
14342         * math/w_log2f.c: Likewise.
14343         * math/w_log2l.c: Likewise.
14344         * math/w_logf.c: Likewise.
14345         * math/w_logl.c: Likewise.
14346         * math/w_sqrt.c: Likewise.
14347         * math/w_sqrtf.c: Likewise.
14348         * math/w_sqrtl.c: Likewise.
14349         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14350         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
14351         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14352         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
14353         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
14355 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14357         [BZ #9739]
14358         * manual/string.texi (strnlen): Use correct parameter name in
14359         equivalent expression.
14361 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14363         [BZ #11174]
14364         * manual/users.texi (seteuid): Consistently use neweuid for
14365         argument name.
14367 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
14369         [BZ #13704]
14370         * manual/nss.texi (Services in the NSS configuration): Correct
14371         list of services in example configuration file.
14373 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
14375         [BZ #11322]
14376         * manual/arith.texi: Remove statements about negative zero
14377         behaving identically to zero.
14379 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14381         [BZ #5993]
14382         * manual/install.texi: Do not document upgrading from libc5.
14384 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
14386         [BZ #4596]
14387         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
14389 2012-02-18  David S. Miller  <davem@davemloft.net>
14391         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
14392         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
14393         %o7 across the call.
14394         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
14395         instead.
14396         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
14397         SETUP_PIC_REG_LEAF.
14398         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14399         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
14400         * sysdeps/sparc/crtn.S: Likewise.
14402 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
14404         * aout/Makefile: Remove.
14406 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
14408         [BZ #13058]
14409         * manual/examples/argp-ex1.c (main): Format definition in GNU
14410         style.
14411         * manual/examples/argp-ex2.c (main): Likewise.
14412         * manual/examples/argp-ex3.c (main): Likewise.
14413         * manual/examples/argp-ex4.c (main): Likewise.
14414         * manual/examples/longopt.c (main): Use new-style prototype
14415         definition.
14416         * manual/examples/strncat.c (main): Specify return type and use
14417         (void) for arguments.
14418         * manual/examples/subopt.c (main): Use char **argv argument.
14420 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14422         [BZ #5077]
14423         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
14424         rounding modes.
14426 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
14428         [BZ #6907]
14429         * manual/string.texi (strchr): Change when strchrnul is
14430         recommended.
14432 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
14434         [BZ #174]
14435         * manual/locale.texi (setlocale): Document LOCPATH.
14437 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14439         [BZ #10210]
14440         * manual/process.texi (execle): Move @dots{} before last argument.
14442 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
14444         [BZ #12047]
14445         * manual/charset.texi (Generic Charset Conversion): Fix typo
14446         (LC_TYPE -> LC_CTYPE).
14448 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
14450         [BZ #5805]
14451         * manual/arith.texi (scalbn): Use @var{} on parameter names.
14452         (scalbnf): Likewise.
14453         (scalbnl): Likewise.
14454         (scalbln): Likewise.
14455         (scalblnf): Likewise.
14456         (scalblnl): Likewise.
14457         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
14458         (vwarnx): Likewise.
14459         (verr): Likewise.
14460         (verrx): Likewise.
14461         * manual/filesys.texi (telldir): Use braces around return type.
14462         * manual/llio.texi (mmap): Add space after comma.
14463         (mmap64): Likewise.
14464         * manual/math.texi (jn): Use @var{} on parameter names.
14465         (jnf): Likewise.
14466         (jnl): Likewise.
14467         (yn): Likewise.
14468         (ynf): Likewise.
14469         (ynl): Likewise.
14470         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
14471         line.
14472         * manual/resource.texi (ulimit): Use @dots{} instead of literal
14473         "...".
14474         (sched_get_priority_min): Remove semicolon on @deftypefun line.
14475         (sched_get_priority_max): Likewise.
14476         * manual/signal.texi (sigvec): Add space after comma.
14477         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
14478         names.
14479         (if_indextoname): Likewise.
14480         (if_freenameindex): Likewise.
14481         (sendto): Use ',' instead of '.' in prototype.
14482         * manual/startup.texi (syscall): Use @dots{} instead of literal
14483         "...".
14484         * manual/stdio.texi (__fpending): Separate initial words of
14485         paragraph from @deftypefun line.
14486         * manual/syslog.texi (syslog): Use @dots{} instead of literal
14487         "...".
14488         (vsyslog): Use @var{} on parameter names.
14489         * manual/terminal.texi (stty): Use @var{} on parameter names.
14490         * manual/users.texi (getutmp): Use @var{} on parameter names.
14491         (getutmpx): Likewise.
14493 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14495         [BZ #6884]
14496         * manual/stdio.texi (fopen): Fix typos in description of
14497         ",ccs=STRING".
14499 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
14501         [BZ #4026]
14502         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
14503         get clock_id definition.
14505 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
14507         [BZ #4822]
14508         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
14509         (madvise): Cast every argument to void on its own.
14511 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14513         [BZ #9902]
14514         * manual/startup.texi (Exit Status): Fix typo.
14516 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
14518         [BZ #10140]
14519         * manual/examples/argp-ex1.c: Include <stdlib.h>.
14520         * manual/examples/argp-ex2.c: Likewise.
14521         * manual/examples/argp-ex3.c: Likewise.
14523 2012-02-16  Richard Henderson  <rth@redhat.com>
14525         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
14526         * sysdeps/s390/s390-32/initfini.c: Remove.
14527         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
14528         * sysdeps/s390/s390-64/initfini.c: Remove.
14530 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
14532         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
14533         compiler output for sysdeps/generic/initfini.c.
14534         * sysdeps/sh/elf/initfini.c: Remove file.
14536 2012-02-16  David S. Miller  <davem@davemloft.net>
14538         [BZ #11494]
14539         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
14541         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
14542         * sysdeps/sparc/crti.S: New file.
14543         * sysdeps/sparc/crtn.S: New file.
14544         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
14545         * sysdeps/sparc/sparc64/Makefile: Likewise.
14547 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
14549         [BZ #3335]
14550         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
14552 2012-02-15  Roland McGrath  <roland@hack.frob.com>
14554         [BZ #4822]
14555         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
14557         * mach/devstream.c (cookie_io_functions_t): Macro removed.
14558         (write, read, close): Likewise.
14559         Patch by Aurelien Jarno <aurelien@aurel32.net>.
14561 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
14563         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
14564         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
14565         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
14566         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
14567         <bits/signalfd.h>.
14568         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
14569         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14570         bits/signalfd.h.
14572 2012-02-14  Marek Polacek  <polacek@redhat.com>
14574         * sysdeps/x86_64/crti.S: New file.
14575         * sysdeps/x86_64/crtn.S: New file.
14576         * sysdeps/x86_64/elf/initfini.c: Remove file.
14578 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14580         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
14581         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
14582         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
14583         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
14584         <bits/inotify.h>.
14585         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
14586         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14587         bits/inotify.h.
14589 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
14591         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
14592         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
14593         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
14594         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
14595         <bits/eventfd.h>.
14596         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
14597         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14598         bits/eventfd.h.
14600 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
14602         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
14603         __feraiseexcept instead of feraiseexcept.
14605         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
14606         nanosleep invocations.
14607         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
14608         strings, and add error checking for a nanosleep invocations.
14610 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14612         Replace FSF snail mail address with URLs, as per GNU coding standards.
14613         Most of the snail mail addresses were wrong anyway, and omitting
14614         them makes the source code easier to maintain.  Almost all of the
14615         changes are to license notices and to locale LC_IDENTIFICATION
14616         addresses, except for this one:
14617         * manual/libc.texinfo: In "Published by", give the FSF's URL,
14618         not its snail mail address.
14620 2012-02-09  Richard Henderson  <rth@twiddle.net>
14622         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
14623         of kernel-features.h.
14625         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
14627 2012-02-08  Marek Polacek  <polacek@redhat.com>
14629         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
14630         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
14631         * sysdeps/gnu/_G_config.h: Likewise.
14632         * sysdeps/generic/_G_config.h: Likewise.
14634 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
14636         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
14637         tests.
14638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14640         * sysdeps/powerpc/powerpc32/crti.S: New file.
14641         * sysdeps/powerpc/powerpc32/crtn.S: New file.
14642         * sysdeps/powerpc/powerpc64/crti.S: New file.
14643         * sysdeps/powerpc/powerpc64/crtn.S: New file.
14645         * Makeconfig (have-initfini): Don't set.
14646         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
14647         * configure.in (nopic_initfini): Don't substitute.
14648         * config.h.in (HAVE_INITFINI): Don't #undef.
14649         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
14650         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
14652 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
14654         Support crti.S and crtn.S provided directly by architectures.
14655         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
14656         [crti.S in sysdirs] (omit-deps): Likewise.
14657         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
14658         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
14659         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
14660         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
14661         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
14662         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
14663         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
14664         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
14665         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
14666         compiler output for sysdeps/generic/initfini.c.
14667         * sysdeps/i386/elf/Makefile: Remove file.
14668         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
14670 2012-02-07  Marek Polacek  <polacek@redhat.com>
14672         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
14673         * sysdeps/gnu/_G_config.h: Likewise.
14674         * sysdeps/mach/hurd/_G_config.h: Likewise.
14676 2012-02-07  Marek Polacek  <polacek@redhat.com>
14678         * math/Makefile (tests): Add tst-CMPLX2.
14679         * math/tst-CMPLX2.c: New file.
14681 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
14683         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14685         * math/libm-test.inc (jn_test): Add missing L suffix.
14687 2012-02-06  Marek Polacek  <polacek@redhat.com>
14689         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
14690         * sysdeps/i386/fpu/e_powf.S: Likewise.
14691         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14692         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
14693         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14694         * sysdeps/i386/fpu/e_pow.S: Likewise.
14695         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14696         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14697         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14698         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14699         * sysdeps/i386/fpu/e_log2.S: Likewise.
14700         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14701         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14702         * sysdeps/i386/fpu/e_powl.S: Likewise.
14703         * sysdeps/i386/fpu/s_log1p.S: Likewise.
14704         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14705         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14706         * sysdeps/i386/fpu/e_logl.S: Likewise.
14707         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14708         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
14709         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14710         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14711         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14712         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14713         * sysdeps/i386/fpu/e_log.S: Likewise.
14714         * sysdeps/i386/fpu/s_cexp.S: Likewise.
14715         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14716         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
14717         * sysdeps/i386/fpu/e_logf.S: Likewise.
14718         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14719         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14720         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
14721         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14722         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
14723         * sysdeps/i386/fpu/e_log10.S: Likewise.
14724         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14725         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14726         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14727         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14728         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14729         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14730         * sysdeps/i386/asm-syntax.h: Likewise.
14731         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14732         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14733         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14734         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
14735         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
14736         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14737         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14738         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14739         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14740         * sysdeps/powerpc/sysdep.h: Likewise.
14741         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
14742         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
14744 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14746         [BZ #411]
14747         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
14749 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
14751         * sysdeps/i386/sysdep.h: Include <features.h>.
14752         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
14753         version.
14755 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
14757         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
14758         Define.
14759         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
14760         LOAD_PIC_REG_STR.
14762 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14764         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
14765         (SETUP_PIC_REG): Use GET_PC_THUNK.
14766         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
14767         macro.
14769 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14771         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
14772         for non-PIC compilation.
14773         (SETUP_PIC_REG): Add .p2align directive.
14774         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
14775         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
14776         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14777         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14778         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
14779         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14780         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
14781         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14782         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14783         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14784         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14785         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14786         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14787         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14788         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14789         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
14790         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
14791         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14792         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14793         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14794         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14795         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
14796         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14797         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14798         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
14799         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
14800         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14801         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
14802         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14803         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14804         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14805         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14806         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14807         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14808         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14809         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14810         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14811         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14812         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14813         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14814         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14816 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
14818         * math/tst-CMPLX.c: Include <stdio.h>.
14820 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
14822         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
14823         float.
14824         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
14825         * sysdeps/sparc/bits/mathdef.h: Likewise.
14827 2012-01-31  Marek Polacek  <polacek@redhat.com>
14829         * libio/libio.h: Don't define _PARAMS.
14830         * locale/programs/config.h: Don't define PARAMS.
14831         * stdlib/strtol_l.c: Likewise.
14832         (__strtol_l): Remove PARAMS from the prototype.
14834 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
14836         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
14837         names.  Just use the correct names.  Remove unnecessary wrapper
14838         functions.
14839         * malloc/arena.c: Likewise.
14840         * malloc/hooks.c: Likewise.
14842         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
14843         ARENA_TEST says not to.  Simplify test for creation of a new arena.
14844         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
14846 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
14848         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
14849         into tail calls.
14850         (update_get_addr): New function.
14851         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
14852         GET_ADDR_MODULE parameter.
14854 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14856         * crypt/cert.c: Remove __STDC__ conditionals.
14857         * crypt/crypt-entry.c: Likewise.
14858         * crypt/crypt_util.c: Likewise.
14859         * libio/filedoalloc.c: Likewise.
14860         * libio/fileops.c: Likewise.
14861         * libio/genops.c: Likewise.
14862         * libio/iofclose.c: Likewise.
14863         * libio/iofdopen.c: Likewise.
14864         * libio/iofopen.c: Likewise.
14865         * libio/iofopen64.c: Likewise.
14866         * libio/iogetdelim.c: Likewise.
14867         * libio/iopopen.c: Likewise.
14868         * libio/obprintf.c: Likewise.
14869         * libio/oldfileops.c: Likewise.
14870         * libio/oldiofclose.c: Likewise.
14871         * libio/oldiofdopen.c: Likewise.
14872         * libio/oldiofopen.c: Likewise.
14873         * libio/oldiopopen.c: Likewise.
14874         * libio/wfiledoalloc.c: Likewise.
14875         * libio/wgenops.c: Likewise.
14876         * locale/programs/xmalloc.c: Likewise.
14877         * misc/syslog.c: Likewise.
14878         * stdio-common/xbug.c: Likewise.
14879         * string/memchr.c: Likewise.
14880         * string/memcmp.c: Likewise.
14881         * string/memrchr.c: Likewise.
14882         * string/rawmemchr.c: Likewise.
14883         * sysdeps/posix/getcwd.c: Likewise.
14884         * time/strftime_l.c: Likewise.
14886 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
14888         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
14889         * config.make.in (config-cflags-sse2avx): Define.
14890         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
14891         Fix typo.
14893 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
14895         * scripts/config.guess: Update from upstream config git repository.
14896         * scripts/config.sub: Likewise.
14898 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
14900         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
14901         (EM_NUM): Update.
14902         (R_TILEPRO_*, R_TILEGX_*): New macros.
14904         * scripts/firstversions.awk: Fix bug in version range handling.
14906         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
14908         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
14910         * include/sys/epoll.h: New file.
14911         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
14912         libc_hidden_def.
14914 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
14916         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
14917         Avoid unnecessary __WORDSIZE == 64 test.
14918         (fmaxf): Use VEX format if possible.
14919         (fmax): Likewise.
14920         (fminf): Likewise.
14921         (fmin): Likewise.
14923         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
14924         * math/math_private.h: Remove libc_fegetround* and
14925         libc_fesetround*.
14926         * sysdeps/i386/configure.in: Check for -msse2avx.
14927         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
14928         also if SSE2AVX is defined.
14929         Remove libc_fegetround* and libc_fesetround*.
14930         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
14931         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
14932         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
14933         of HAS_YMM_USABLE.
14934         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
14935         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
14936         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
14937         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
14938         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
14940         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
14942 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14944         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
14945         size is not set.
14946         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14948 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
14950         [BZ #13618]
14951         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
14952         relocation.
14953         * Makeconfig (libm): Define.
14954         * elf/Makefile: Add rules to build and run tst-relsort1.
14955         * elf/tst-relsort1.c: New file.
14956         * elf/tst-relsort1mod1.c: New file.
14957         * elf/tst-relsort1mod2.c: New file.
14959 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
14961         * math/s_ldexp.c: Remove __STDC__ conditionals.
14962         * math/s_ldexpf.c: Likewise.
14963         * math/s_ldexpl.c: Likewise.
14964         * math/s_nextafter.c: Likewise.
14965         * math/s_nexttowardf.c: Likewise.
14966         * math/s_significand.c: Likewise.
14967         * math/s_significandf.c: Likewise.
14968         * math/s_significandl.c: Likewise.
14969         * math/w_jnl.c: Likewise.
14970         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
14971         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
14972         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
14973         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
14974         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
14975         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14976         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
14977         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14978         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14979         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14980         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14981         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14982         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14983         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
14984         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14985         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14986         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14987         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14988         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
14989         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14990         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14991         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
14992         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
14993         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
14994         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
14995         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
14996         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
14997         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
14998         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
14999         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
15000         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
15001         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
15002         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
15003         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
15004         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
15005         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
15006         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
15007         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
15008         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
15009         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
15010         * sysdeps/ieee754/k_standard.c: Likewise.
15011         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
15012         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
15013         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
15014         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
15015         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
15016         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
15017         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
15018         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
15019         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
15020         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
15021         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
15022         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
15023         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
15024         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
15025         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
15026         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
15027         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
15028         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
15029         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
15030         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
15031         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
15032         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
15033         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
15034         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
15035         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
15036         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
15037         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
15038         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
15039         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
15040         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
15041         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
15042         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
15043         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
15044         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
15045         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
15046         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
15047         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
15048         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
15049         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
15050         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
15051         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
15052         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
15053         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
15054         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
15055         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
15056         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
15057         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
15058         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
15059         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
15060         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
15061         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
15062         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
15063         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
15064         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
15065         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
15066         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
15067         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
15068         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
15069         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
15070         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
15071         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
15072         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
15073         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
15074         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
15075         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
15076         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
15077         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
15078         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
15079         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
15080         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
15081         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
15082         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
15083         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
15084         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
15085         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
15086         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
15087         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
15088         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
15089         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
15090         * sysdeps/ieee754/s_matherr.c: Likewise.
15091         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
15092         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
15093         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
15094         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
15096 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15098         * crypt/md5.h: Remove __STDC__ conditionals.
15099         * libio/libioP.h: Likewise.
15100         * locale/programs/config.h: Likewise.
15101         * sysdeps/generic/sysdep.h: Likewise.
15102         * sysdeps/i386/asm-syntax.h: Likewise.
15103         * sysdeps/s390/asm-syntax.h: Likewise.
15104         * sysdeps/unix/sysdep.h: Likewise.
15105         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
15106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
15108 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
15110         * libio/libio.h: Remove __STDC__ conditionals.
15111         * malloc/obstack.h: Likewise.
15112         * math/complex.h: Likewise.
15113         * math/math.h: Likewise.
15114         * sysdeps/generic/_G_config.h: Likewise.
15115         * sysdeps/gnu/_G_config.h: Likewise.
15116         * sysdeps/mach/hurd/_G_config.h: Likewise.
15117         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15118         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
15119         * sysdeps/sparc/bits/mathdef.h: Likewise.
15121 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
15123         [BZ #13583]
15124         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
15125         Clean up HAS_* macros.
15126         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
15127         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
15128         possible.
15129         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
15130         HAS_AVX.
15131         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
15132         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
15133         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
15134         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
15135         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
15137 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
15139         * elf/tst-unique3.cc (gets): Remove declaration.
15140         * elf/tst-unique3lib.cc (gets): Likewise.
15141         * elf/tst-unique3lib2.cc (gets): Likewise.
15142         * elf/tst-unique4.cc (gets): Likewise.
15144 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
15146         * include/stdio.h: Add C++ protection.  Add gets declarations and
15147         definitions.
15148         * debug/tst-chk1.c: Don't declare gets here.
15149         * stdio-common/tst-gets.c: Likewise.
15151 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15153         * posix/glob: Remove directory.
15155 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
15157         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
15159 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
15161         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
15162         of the non-standard EPFNOSUPPORT.
15164 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15166         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
15167         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
15168         ANYWHERE set to 1 only on KERN_NO_SPACE error.
15170 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
15172         * wcsmbs/uchar.h: Test __STDC_VERSION__.
15174 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
15176         * nscd/aicache.c (addhstaiX): Do not cache negative results of
15177         transient errors.
15178         * nscd/grpcache.c (cache_addgr): Likewise.
15179         * nscd/hstcache.c (cache_addhst): Likewise.
15180         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15181         * nscd/pwdcache.c (cache_addpw): Likewise.
15182         * nscd/servicescache.c (cache_addserv): Likewise.
15184 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
15186         * malloc/malloc.c: Various cleanups.
15187         * malloc/hooks.c: Likewise.
15189         * stdlib/Makefile (tests): Add bug-fmtmsg1.
15190         * stdlib/bug-fmtmsg1.c: New file.
15192         * stdlib/fmtmsg.c (init): Add missing unlock.
15193         Patch by Peng Haitao <penght@cn.fujitsu.com>.
15195 2012-01-12  Marek Polacek  <polacek@redhat.com>
15197         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
15198         and _GNU_SOURCE.
15200 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15202         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
15203         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
15204         macro to ensure uniqueness of label name.
15205         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15206         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15208 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
15210         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
15212         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
15213         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
15214         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
15215         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
15217 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
15219         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
15221         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
15222         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
15223         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
15225         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
15227         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
15228         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
15229         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
15230         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
15232         * math/bits/math-finite.h: Add ldexp support.
15234 2012-01-10  Marek Polacek  <polacek@redhat.com>
15236         * locale/programs/localedef.h (show_archive_content): Add noreturn
15237         attribute.
15239 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
15241         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
15243 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15245         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
15247         * io/Makefile (headers): Add bits/poll2.h.
15249 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
15251         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
15252         typo #include statement.
15254 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15256         * include/sys/cdefs.h: Define __attribute_alloc_size.
15257         * catgets/gencat.c: Add alloc_size attribute and apply consistently
15258         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
15259         * elf/pldd.c: Likewise.
15260         * iconv/iconv_charmap.c: Likewise.
15261         * iconv/iconvconfig.c: Likewise.
15262         * iconv/strtab.c: Likewise.
15263         * locale/programs/locale.c: Likewise.
15264         * locale/programs/localedef.h: Likewise.
15265         * locale/programs/simple-hash.c: Likewise.
15266         * nscd/nscd.h: Likewise.
15267         * nss/makedb.c: Likewise.
15268         * sysdeps/generic/ldconfig.h: Likewise.
15269         * locale/programs/localedef.c: Remove xmalloc prototype.
15270         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
15272 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
15274         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
15275         appropriate.
15277 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
15279         * math/Makefile (tests): Add tst-CMPLX.
15280         * math/tst-CMPLX.c: New file.
15282         * math/complex.h (CMPLXL): Fix typo.
15284         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
15285         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
15286         GLIBC_2.16.
15287         * debug/tst-chk1.c: Add poll and ppoll tests.
15288         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
15289         * include/sys/poll.h: Add hidden proto for ppoll.
15290         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
15291         * sysdeps/mach/hurd/ppoll.c: Likewise.
15292         * io/ppoll.c: Likewise.
15293         * debug/poll_chk.c: New file.
15294         * debug/ppoll_chk.c: New file.
15295         * include/bits/poll2.h: New file.
15296         * io/bits/poll2.h: New file.
15298         [BZ #1350]
15299         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
15301         * configure.in: static is always set to yes.  Remove.
15302         * config.make.in: Don't set build-static.
15303         * Makeconfig: Remove use of build-static.
15304         * dlfcn/Makefile: Likewise.
15305         * elf/Makefile: Likewise.
15306         * math/Makefile: Likewise.
15307         * misc/Makefile: Likewise.
15308         * nptl/Makefile: Likewise.
15309         * sysdeps/mach/hurd/Makefile: Likewise.
15311         * configure.in: PWD_P is not used anymore.
15312         * config.make.in: Remove PWD_P entry.
15314         * configure.in: Remove last remnants of RANLIB.
15315         No need to check for signed size_t anymore.
15316         Don't set libc_commonpagesize and libc_relro_required here for Alpha
15317         and IA-64.
15318         Remove __builtin_expect test because we require at least gcc 3.4.
15319         * aclocal.m4: Likewise.
15321         * wcsmbs/mbrtoc16.c: Implement using towc function.
15322         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
15323         * wcsmbs/wcsmbsload.c: Likewise.
15324         * iconv/gconv_simple.c: Likewise.
15325         * iconv/gconv_int.h: Likewise.
15326         * iconv/gconv_builtin.h: Likewise.
15327         * iconv/iconv_prog.c: Remove CHAR16 handling.
15329         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
15331         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
15333         * configure.in: Remove --with-elf and --enable-bounded options.
15334         Dont set base_machine for ia64.  More non-ELF conditions removed.
15335         Remove testing and setting of leading underscore information.
15336         * config.make.in (build-bounded): Set to no.
15337         * config.h.in: Remove NO_UNDERSCORES entry.
15338         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
15339         them.
15340         * csu/start.c: Remove !NO_UNDERSCORE code.
15341         * locale/localeinfo.h: Likewise.
15342         * sysdeps/generic/machine-gmon.h: Likewise.
15343         * sysdeps/generic/sysdep.h: Likewise.
15344         * sysdeps/i386/sysdep.h: Likewise.
15345         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15346         * sysdeps/mach/sysdep.h: Likewise.
15347         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15348         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15349         * sysdeps/sh/sysdep.h: Likewise.
15350         * sysdeps/sparc/sparc32/alloca.S: Likewise.
15351         * sysdeps/unix/i386/sysdep.S: Likewise.
15352         * sysdeps/unix/sparc/start.c: Likewise.
15353         * sysdeps/unix/sparc/sysdep.S: Likewise.
15354         * sysdeps/unix/sparc/sysdep.h: Likewise.
15355         * sysdeps/unix/start.c: Likewise.
15356         * sysdeps/unix/x86_64/sysdep.S: Likewise.
15357         * sysdeps/x86_64/sysdep.h: Likewise.
15359 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
15361         [BZ #13553]
15362         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
15363         for non-gcc.
15364         * argp/argp-fmtstream.h: Use const instead __const.
15365         * argp/argp.h: Likewise.
15366         * assert/assert.h: Likewise.
15367         * bits/fenv.h: Likewise.
15368         * bits/sched.h: Likewise.
15369         * bits/sigset.h: Likewise.
15370         * bits/sigthread.h: Likewise.
15371         * catgets/nl_types.h: Likewise.
15372         * conform/data/pthread.h-data: Likewise.
15373         * crypt/crypt-private.h: Likewise.
15374         * crypt/crypt.h: Likewise.
15375         * crypt/crypt_util.c: Likewise.
15376         * ctype/ctype.h: Likewise.
15377         * debug/execinfo.h: Likewise.
15378         * debug/mbsnrtowcs_chk.c: Likewise.
15379         * debug/mbsrtowcs_chk.c: Likewise.
15380         * debug/wcsnrtombs_chk.c: Likewise.
15381         * debug/wcsrtombs_chk.c: Likewise.
15382         * debug/wcstombs_chk.c: Likewise.
15383         * dirent/dirent.h: Likewise.
15384         * dlfcn/dlfcn.h: Likewise.
15385         * elf/neededtest4.c: Likewise.
15386         * grp/grp.h: Likewise.
15387         * gshadow/gshadow.h: Likewise.
15388         * iconv/gconv.h: Likewise.
15389         * iconv/gconv_int.h: Likewise.
15390         * iconv/gconv_simple.c: Likewise.
15391         * iconv/iconv.h: Likewise.
15392         * iconv/loop.c: Likewise.
15393         * iconv/skeleton.c: Likewise.
15394         * include/aio.h: Likewise.
15395         * include/aliases.h: Likewise.
15396         * include/argz.h: Likewise.
15397         * include/arpa/inet.h: Likewise.
15398         * include/assert.h: Likewise.
15399         * include/dirent.h: Likewise.
15400         * include/dlfcn.h: Likewise.
15401         * include/execinfo.h: Likewise.
15402         * include/fcntl.h: Likewise.
15403         * include/fenv.h: Likewise.
15404         * include/glob.h: Likewise.
15405         * include/grp.h: Likewise.
15406         * include/libintl.h: Likewise.
15407         * include/mntent.h: Likewise.
15408         * include/netdb.h: Likewise.
15409         * include/pwd.h: Likewise.
15410         * include/rpc/netdb.h: Likewise.
15411         * include/sched.h: Likewise.
15412         * include/search.h: Likewise.
15413         * include/shadow.h: Likewise.
15414         * include/signal.h: Likewise.
15415         * include/stdio.h: Likewise.
15416         * include/stdlib.h: Likewise.
15417         * include/string.h: Likewise.
15418         * include/sys/socket.h: Likewise.
15419         * include/sys/stat.h: Likewise.
15420         * include/sys/statfs.h: Likewise.
15421         * include/sys/statvfs.h: Likewise.
15422         * include/sys/syslog.h: Likewise.
15423         * include/sys/time.h: Likewise.
15424         * include/sys/uio.h: Likewise.
15425         * include/time.h: Likewise.
15426         * include/unistd.h: Likewise.
15427         * include/utmp.h: Likewise.
15428         * include/wchar.h: Likewise.
15429         * include/wctype.h: Likewise.
15430         * inet/aliases.h: Likewise.
15431         * inet/arpa/inet.h: Likewise.
15432         * inet/netinet/ether.h: Likewise.
15433         * inet/netinet/in.h: Likewise.
15434         * intl/libintl.h: Likewise.
15435         * io/bits/fcntl2.h: Likewise.
15436         * io/fcntl.h: Likewise.
15437         * io/ftw.h: Likewise.
15438         * io/sys/poll.h: Likewise.
15439         * io/sys/stat.h: Likewise.
15440         * io/sys/statfs.h: Likewise.
15441         * io/sys/statvfs.h: Likewise.
15442         * io/utime.h: Likewise.
15443         * libio/bits/stdio.h: Likewise.
15444         * libio/bits/stdio2.h: Likewise.
15445         * libio/libio.h: Likewise.
15446         * libio/libioP.h: Likewise.
15447         * libio/stdio.h: Likewise.
15448         * locale/lc-ctype.c: Likewise.
15449         * locale/locale.h: Likewise.
15450         * login/utmp.h: Likewise.
15451         * malloc/arena.c: Likewise.
15452         * malloc/malloc.c: Likewise.
15453         * malloc/malloc.h: Likewise.
15454         * malloc/mcheck.c: Likewise.
15455         * malloc/mtrace.c: Likewise.
15456         * math/bits/mathcalls.h: Likewise.
15457         * math/fenv.h: Likewise.
15458         * math/math_private.h: Likewise.
15459         * misc/bits/error.h: Likewise.
15460         * misc/bits/syslog.h: Likewise.
15461         * misc/err.h: Likewise.
15462         * misc/error.h: Likewise.
15463         * misc/fstab.h: Likewise.
15464         * misc/mntent.h: Likewise.
15465         * misc/regexp.h: Likewise.
15466         * misc/search.h: Likewise.
15467         * misc/sgtty.h: Likewise.
15468         * misc/sys/mman.h: Likewise.
15469         * misc/sys/syslog.h: Likewise.
15470         * misc/sys/uio.h: Likewise.
15471         * misc/sys/xattr.h: Likewise.
15472         * misc/ttyent.h: Likewise.
15473         * nis/rpcsvc/ypclnt.h: Likewise.
15474         * nss/nss.h: Likewise.
15475         * posix/bits/unistd.h: Likewise.
15476         * posix/fnmatch.h: Likewise.
15477         * posix/glob.h: Likewise.
15478         * posix/sched.h: Likewise.
15479         * posix/spawn.h: Likewise.
15480         * posix/sys/wait.h: Likewise.
15481         * posix/unistd.h: Likewise.
15482         * posix/wordexp.h: Likewise.
15483         * pwd/pwd.h: Likewise.
15484         * resolv/netdb.h: Likewise.
15485         * resource/sys/resource.h: Likewise.
15486         * rt/aio.h: Likewise.
15487         * rt/bits/mqueue2.h: Likewise.
15488         * rt/mqueue.h: Likewise.
15489         * shadow/shadow.h: Likewise.
15490         * signal/signal.h: Likewise.
15491         * socket/send.c: Likewise.
15492         * socket/sendto.c: Likewise.
15493         * socket/sys/socket.h: Likewise.
15494         * stdio-common/printf.h: Likewise.
15495         * stdlib/bits/stdlib.h: Likewise.
15496         * stdlib/fmtmsg.h: Likewise.
15497         * stdlib/monetary.h: Likewise.
15498         * stdlib/stdlib.h: Likewise.
15499         * stdlib/ucontext.h: Likewise.
15500         * streams/stropts.h: Likewise.
15501         * string/argz.h: Likewise.
15502         * string/bits/string2.h: Likewise.
15503         * string/string.h: Likewise.
15504         * string/strings.h: Likewise.
15505         * sunrpc/rpc/auth.h: Likewise.
15506         * sunrpc/rpc/auth_des.h: Likewise.
15507         * sunrpc/rpc/clnt.h: Likewise.
15508         * sunrpc/rpc/netdb.h: Likewise.
15509         * sunrpc/rpc/pmap_clnt.h: Likewise.
15510         * sunrpc/rpc/xdr.h: Likewise.
15511         * sysdeps/generic/inttypes.h: Likewise.
15512         * sysdeps/generic/net/if.h: Likewise.
15513         * sysdeps/generic/sys/swap.h: Likewise.
15514         * sysdeps/gnu/net/if.h: Likewise.
15515         * sysdeps/gnu/utmpx.h: Likewise.
15516         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
15517         * sysdeps/i386/i486/bits/string.h: Likewise.
15518         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
15519         * sysdeps/s390/bits/string.h: Likewise.
15520         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
15521         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
15522         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
15523         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
15524         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
15525         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
15526         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
15527         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
15528         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
15529         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
15530         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
15531         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
15532         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
15533         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
15534         * sysdeps/unix/sysv/linux/readv.c: Likewise.
15535         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
15536         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
15537         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
15538         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
15539         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
15540         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15541         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
15542         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
15543         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
15544         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
15545         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
15546         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
15547         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15548         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
15549         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
15550         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
15551         * sysvipc/sys/ipc.h: Likewise.
15552         * sysvipc/sys/msg.h: Likewise.
15553         * sysvipc/sys/sem.h: Likewise.
15554         * sysvipc/sys/shm.h: Likewise.
15555         * termios/termios.h: Likewise.
15556         * time/sys/time.h: Likewise.
15557         * time/time.h: Likewise.
15558         * wcsmbs/bits/wchar2.h: Likewise.
15559         * wcsmbs/uchar.h: Likewise.
15560         * wcsmbs/wchar.h: Likewise.
15561         * wctype/wctype.h: Likewise.
15563         [BZ #13551]
15564         * Makeconfig: Remove all but ELF support including AIX support.
15565         * Makerules: Likewise.
15566         * config.h.in: Likewise.
15567         * config.make.in: Likewise.
15568         * configure: Likewise.
15569         * configure.in: Likewise.
15570         * csu/Makefile: Likewise.
15571         * csu/version.c: Likewise.
15572         * debug/Makefile: Likewise.
15573         * dlfcn/Makefile: Likewise.
15574         * elf/Makefile: Likewise.
15575         * extra-lib.mk: Likewise.
15576         * iconv/Makefile: Likewise.
15577         * include/libc-symbols.h: Likewise.
15578         * include/shlib-compat.h: Likewise.
15579         * resolv/Makefile: Likewise.
15580         * resolv/res_libc.c: Likewise.
15581         * rt/Makefile: Likewise.
15582         * sysdeps/i386/asm-syntax.h: Likewise.
15583         * sysdeps/i386/sysdep.h: Likewise.
15584         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
15585         * sysdeps/mach/sysdep.h: Likewise.
15586         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
15587         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
15588         * sysdeps/s390/asm-syntax.h: Likewise.
15589         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15590         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15591         * sysdeps/sh/sysdep.h: Likewise.
15592         * sysdeps/unix/sparc/sysdep.h: Likewise.
15593         * sysdeps/wordsize-32/divdi3.c: Likewise.
15594         * sysdeps/x86_64/sysdep.h: Likewise.
15596         * argp/Versions: Remove _argp_unlock_xxx.
15598         [BZ #13559]
15599         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
15600         * abilist/libBrokenLocale.abilist: Likewise.
15601         * abilist/libanl.abilist: Likewise.
15602         * abilist/libc.abilist: Likewise.
15603         * abilist/libcrypt.abilist: Likewise.
15604         * abilist/libdl.abilist: Likewise.
15605         * abilist/libm.abilist: Likewise.
15606         * abilist/libnsl.abilist: Likewise.
15607         * abilist/libpthread.abilist: Likewise.
15608         * abilist/libresolv.abilist: Likewise.
15609         * abilist/librt.abilist: Likewise.
15610         * abilist/libthread_db.abilist: Likewise.
15611         * abilist/libutil.abilist: Likewise.
15612         * abilist/libnss_db.abilist: New file.
15614         * scripts/abilist.awk: Add support for indirect functions.
15616         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
15618         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
15620         * shlib-versions: Remove entries for ports architectures.
15622         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
15623         files in ports.
15624         * elf/stackguard-macros.h: Remove support for IA-64.
15625         * elf/tst-auditmod1.c: Likewise.
15626         * sysdeps/generic/ldsodefs.h: Likewise.
15628         * sysdeps/unix/sysv/linux/configure.in: Ports should define
15629         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
15630         configure files.
15632         [BZ #13552]
15633         * configure.in: Remove --enable-omitfp support.
15634         * FAQ.in: Adjust.
15635         * config.make.in: Likewise.
15636         * Makeconfig: Likewise.
15637         * manual/install.texi: Likewise.
15639         In case anyone cares, the IA-64 architecture could move to ports.
15640         * sysdeps/ia64/*: Removed.
15641         * sysdeps/unix/sysv/linux/ia64/*: Removed.
15642         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
15644         [BZ #13555]
15645         * configure.in: Remove entries for unsupported architectures.
15647         [BZ #13533]
15648         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
15649         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
15650         routines.
15651         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
15652         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
15653         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
15654         fall back to using wcrtomb.
15655         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
15656         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
15657         renaming.
15658         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
15659         * wcsmbs/tst-c16c32-1.c: New file.
15661         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
15662         local variable.
15664         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
15666         * elf/tst-unique3.cc: Add explicit declaration of gets.
15667         * elf/tst-unique3lib.cc: Likewise.
15668         * elf/tst-unique3lib2.cc: Likewise.
15669         * elf/tst-unique4.cc: Likewise.
15671         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
15673 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
15675         [BZ #13566]
15676         * assert/assert.h (static_assert): Don't define for C++.
15677         * libio/stdio.h (gets): Do declare for C++ <= C++11.
15678         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
15680 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
15682         * iconv/loop.c (single loop): Fix assertion in storing of
15683         remaining bytes.
15685         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
15687 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
15689         * posix/getconf.c: Update copyright year.
15690         * nss/getent.c: Likewise.
15691         * nss/makedb.c: Likewise.
15692         * iconv/iconvconfig.c: Likewise.
15693         * iconv/iconv_prog.c: Likewise.
15694         * elf/ldconfig.c: Likewise.
15695         * elf/pldd.c: Likewise.
15696         * elf/sotruss.ksh: Likewise.
15697         * catgets/gencat.c: Likewise.
15698         * csu/version.c: Likewise.
15699         * elf/ldd.bash.in: Likewise.
15700         * elf/sprof.c (print_version): Likewise.
15701         * locale/programs/locale.c: Likewise.
15702         * locale/programs/localedef.c: Likewise.
15703         * login/programs/pt_chown.c: Likewise.
15704         * nscd/nscd.c (print_version): Likewise.
15705         * debug/xtrace.sh: Likewise.
15706         * malloc/memusage.sh: Likewise.
15707         * malloc/mtrace.pl: Likewise.
15708         * debug/catchsegv.sh: Likewise.
15710 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
15712         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
15713         pure attribute.
15715 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
15717         [BZ #13533]
15718         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
15719         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
15720         transformations.
15721         * iconv/gconv_int.h: Likewise.
15722         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
15723         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
15724         from libc for GLIBC_2.16.
15725         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
15726         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
15727         * wcsmbs/uchar.h: Really define mbstate_t.
15728         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
15729         * wcsmbs/c16rtomb.c: New file.
15730         * wcsmbs/mbrtoc16.c: New file.
15731         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
15732         for C/POSIX locale.
15733         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
15734         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
15736         * wcsmbs/wchar.h: Add missing __restrict.
15738 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15740         [BZ #13532]
15741         * time/Makefile (routines): Add timespec_get.
15742         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
15743         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
15744         timespec for ISO C11.
15745         * time/timespec_get.c: New file.
15746         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
15747         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
15749         [BZ #13531]
15750         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
15751         * stdlib/stdlib.h: Declare aligned_alloc.
15752         * Versions.def: Add GLIBC_2.16 for libc.
15753         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
15755         [BZ 13527]
15756         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
15757         ISO C11.
15759         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
15760         code.
15762         [BZ #13528]
15763         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
15765         [BZ #13529]
15766         * assert/assert.h (static_assert): Define.
15768         * version.h: Update for 2.16 development version.
15770         [BZ #13526]
15771         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
15772         _ISOC11_SOURCE.
15774         * version.h (RELEASE): Bump for 2.15 release.
15775         * include/features.h (__GLIBC_MINOR__): Bump to 15.
15777         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
15778         Patch by Marek Polacek <mpolacek@redhat.com>.
15780         * bits/byteswap.h: Protect long long constants with __extension__.
15781         * sysdeps/i386/bits/byteswap.h: Likewise.
15782         * sysdeps/ia64/bits/byteswap.h: Likewise.
15783         * sysdeps/s390/bits/byteswap.h: Likewise.
15784         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15786 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15788         [BZ #13540]
15789         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
15790         destination buffer.
15791         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
15793 2011-12-23  Marek Polacek  <polacek@redhat.com>
15795         * elf/dl-addr.c (determine_info): Add inline keyword.
15796         * elf/tst-auditmod4b.c (check_avx): Likewise.
15797         * elf/tst-auditmod6b.c (check_avx): Likewise.
15798         * elf/tst-auditmod6c.c (check_avx): Likewise.
15799         * elf/tst-auditmod7b.c (check_avx): Likewise.
15801 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
15803         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
15804         !__SSE_MATH__.
15806 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15808         [BZ #13540]
15809         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
15810         processing for last bytes.
15812 2011-08-06  Bruno Haible  <bruno@clisp.org>
15814         [BZ #13061]
15815         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
15816         U+0385, not to U+1FEE.
15818         [BZ #13062]
15819         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
15820         entry for U+00A5 U+0301.
15822 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15824         [BZ #13166]
15825         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
15826         buffer for the output is too small.
15828         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
15829         optimization.
15831         [BZ #13185]
15832         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
15833         SSE flags if possible.
15835 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15837         [BZ #13540]
15838         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
15839         processing for last bytes.
15841 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
15843         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
15844         (syscall-list-default-options, syscall-list-default-condition)
15845         (syscall-list-includes): Define.
15846         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
15847         list of ABIs and options and #if conditions for each ABI.  Do not
15848         handle common syscalls between ABIs specially.
15849         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
15850         Remove.
15851         (syscall-list-variants, syscall-list-32bit-options)
15852         (syscall-list-32bit-condition, syscall-list-64bit-options)
15853         (syscall-list-64bit-condition): Define.
15854         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
15855         (syscall-list-variants, syscall-list-32bit-options)
15856         (syscall-list-32bit-condition, syscall-list-64bit-options)
15857         (syscall-list-64bit-condition): Define.
15858         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
15859         Remove.
15860         (syscall-list-variants, syscall-list-32bit-options)
15861         (syscall-list-32bit-condition, syscall-list-64bit-options)
15862         (syscall-list-64bit-condition): Define.
15863         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
15864         Remove.
15865         (syscall-list-variants, syscall-list-32bit-options)
15866         (syscall-list-32bit-condition, syscall-list-64bit-options)
15867         (syscall-list-64bit-condition): Define.
15869 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
15871         * locale/iso-639.def: Add brx entry.
15873         [BZ #13328]
15874         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
15875         Proposed by Mariusz_Cukr <marcukr@op.pl>.
15877         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
15878         __feraiseexcept_renamed.
15880 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15882         [BZ #13538]
15883         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
15884         EPOLLET with unsigned values.
15885         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
15886         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
15888         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
15889         to large cancellation.
15890         * math/s_cacoshf.c: Likewise.
15891         * math/s_cacoshl.c: Likewise.
15893 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
15895         [BZ #13305]
15896         [BZ #12786]
15897         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
15898         * math/s_cacoshf.c: Likewise.
15899         * math/s_cacoshl.c: Likewise.
15901 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
15903         [BZ #13439]
15904         * iconv/gconv.h: Define __GCONV_SWAP.
15905         * iconvdata/unicode.c: The swap bit must be stored in __flags.
15906         * iconvdata/utf-16.c: Likewise.
15907         * iconvdata/utf-32.c: Likewise.
15909 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
15911         [BZ #13524]
15912         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
15913         numerator after shifting it by one limb.
15915 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
15917         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
15918         under [__USE_EXTERN_INLINES].
15920 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15922         [BZ #13446]
15923         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
15925 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15927         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
15928         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
15929         optimized code.
15930         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
15931         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
15932         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
15933         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
15934         for strncasecmp/strncasecmp_l compilation.
15935         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
15936         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
15938 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
15940         [BZ #13484]
15941         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
15942         of __asm__.
15944 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
15946         [BZ #13506]
15947         * time/tzfile.c (__tzfile_read): Check values from file header.
15949 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
15951         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
15952         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
15953         * powerpc/powerpc32/dl-start.S: Likewise.
15954         * powerpc/powerpc32/elf/start.S: Likewise.
15955         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
15956         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
15957         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
15958         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
15959         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
15960         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
15961         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
15962         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
15963         * powerpc/powerpc32/fpu/s_round.S: Likewise.
15964         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
15965         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
15966         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
15967         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
15968         * powerpc/powerpc32/memset.S: Likewise.
15969         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
15970         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
15971         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
15972         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
15973         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
15974         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15975         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15976         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15977         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
15978         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
15979         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
15980         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
15981         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
15983 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15985         * math/libm-test.inc: Added more nearbyint tests.
15986         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
15987         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
15988         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
15989         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
15991 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
15993         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
15994         FD_CLOEXEC.
15996 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15998         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
15999         Add wcscpy-ssse3 wcscpy-c.
16000         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
16001         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
16002         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
16003         * sysdeps/x86_64/wcschr.S: New file.
16004         * sysdeps/x86_64/wcsrchr.S: New file.
16005         * string/test-strcmp.c: Remove checking of wcscmp function for
16006         wrong alignments.
16007         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
16008         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
16009         wcsrchr-sse2 wcsrchr-c.
16010         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
16011         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
16012         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
16013         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
16014         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
16015         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
16016         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
16017         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
16018         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
16019         * wcsmbc/wcschr.c (WCSCHR): New macro.
16021 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16023         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
16024         * wcsmbs/test-wcsrchr.c: New file.
16025         * string/test-strrchr.c: Add wcsrchr support.
16026         (WIDE): New macro.
16027         * wcsmbs/test-wcscpy.c: New file.
16028         * string/test-strcpy.c: Add wcscpy support.
16029         (WIDE): New macro.
16031 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
16033         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
16034         the inner loop.
16036 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
16038         [BZ #13472]
16039         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
16041 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
16043         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
16044         Minor optimizations.
16046         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
16047         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
16048         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
16050 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
16052         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
16053         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
16054         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
16055         for gcc to avoid warnings.
16056         * inet/Makefile (tests): Add tst-checks.
16057         * inet/tst-checks.c: New file.
16059         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
16060         warning.
16062         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
16063         __wmemcmp_sse2.
16065         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
16066         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
16068         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
16070 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
16072         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
16073         problem.
16075         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
16077 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
16079         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
16080         conditional on GCC version.
16081         (__arch_compare_and_exchange_val_8_acq)
16082         (__arch_compare_and_exchange_val_16_acq)
16083         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
16084         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
16085         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
16087 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
16089         * sysdeps/sh/backtrace.c: New file.
16091 2011-12-02  Andreas Schwab  <schwab@redhat.com>
16093         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
16094         parenthesis.
16096 2011-12-01  Andreas Schwab  <schwab@redhat.com>
16098         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
16099         falling back to utime.
16101 2011-11-30  Andreas Schwab  <schwab@redhat.com>
16103         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
16104         expectations for float.
16106 2011-11-29  Andreas Schwab  <schwab@redhat.com>
16108         * locale/weight.h (findidx): Add parameter len.
16109         * locale/weightwc.h (findidx): Likewise.
16110         * posix/fnmatch_loop.c (FCT): Adjust caller.
16111         * posix/regcomp.c (build_equiv_class): Likewise.
16112         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
16113         * posix/regexec.c (check_node_accept_bytes): Likewise.
16114         * string/strcoll_l.c (STRCOLL): Likewise.
16115         * string/strxfrm_l.c (STRXFRM): Likewise.
16117 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
16119         * Makefile.in: Remove CVSOPT handling.
16120         * configure.in: Remove use of AC_REVISION.
16121         * iconvdata/Makefile (distribute): No need to filter out CVS.
16122         * scripts/list-sources.sh: Remove CVS, subversion and monotone
16123         handling.
16125 2011-11-16  Andreas Schwab  <schwab@redhat.com>
16127         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
16128         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
16129         [USE_AS_STRNCASECMP_L]: Likewise.
16130         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
16131         NO_TLS_DIRECT_SEG_REFS.
16132         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
16133         Fix argument offsets for non-PIC.
16134         [USE_AS_STRNCASECMP_L]: Likewise.
16135         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
16136         NO_TLS_DIRECT_SEG_REFS.
16138 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16140         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
16141         O_CLOEXEC.
16142         * locale/loadlocale.c (_nl_load_locale): Likewise.
16144 2011-11-15  Andreas Schwab  <schwab@redhat.com>
16146         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
16147         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
16148         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
16149         (SYSCALL_GETTIME): Set errno on error.
16151         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
16152         count references to noai6ai_cached.
16154 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
16156         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
16158         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
16159         FD_CLOEXEC for /proc/self/maps.
16161         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
16162         FD_CLOEXEC for /proc/meminfo.
16164         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
16165         gai.conf.
16167         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
16168         FD_CLOEXEC for given file.
16170         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
16172         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
16173         FD_CLOEXEC for /etc/hosts.
16174         (_gethtent): Likewise.
16176         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
16178         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
16179         cancellation and set FD_CLOEXEC for /etc/netgroup.
16181         * nss/nss_files/files-key.c (search): Don't allow cancellation when
16182         reading /etc/publickey.
16184         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
16185         allow cancellation when reading /etc/group.
16187         * nss/nss_files/files-alias.c (internal_setent): Don't allow
16188         cancellation.
16189         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
16191         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
16192         when using data file.
16194         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
16196         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
16197         (write_nis_obj): Use "c" and "e" in fopen.
16199         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
16201         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
16203         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
16205         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
16207         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
16208         locale.alias.
16210         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
16212         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
16214         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
16216         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
16217         file parsing and set FD_CLOEXEC.
16219 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16221         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
16223 2011-11-14  Andreas Schwab  <schwab@redhat.com>
16225         * malloc/arena.c (arena_get2): Don't call reused_arena when
16226         _int_new_arena failed.
16228 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
16230         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
16231         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
16232         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
16233         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
16234         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16235         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
16236         to compile strcasecmp and strncasecmp.
16237         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
16238         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
16240         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
16242 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
16244         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
16245         locale-defines.sym to gen-as-const-headers.
16246         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
16247         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
16248         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
16249         to compile strcasecmp and strncasecmp.
16250         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
16251         strcasecmp_l and strncasecmp_l.
16252         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
16253         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
16254         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
16255         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
16256         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
16257         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
16258         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
16259         * sysdeps/i386/i686/multiarch/strncase.S: New file.
16260         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
16261         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
16262         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
16264 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
16266         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
16267         result of SYSDEP_GETTIME_CPU to retval.
16268         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
16269         parameter list to macro.  Remove trailing semicolon.  Adjust users.
16271         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
16272         variable.
16274         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
16275         mantissa words.
16276         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
16278         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
16279         from unused variable.
16281         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
16282         DWARF definitions.
16283         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
16284         for assembling.
16286         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
16287         over namespaces.
16289         * sunrpc/rpc_prot.c (rejected): Fix case value.
16291         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
16292         unsigned long long int to avoid warnings in shift.
16294         * posix/regex_internal.c (re_string_reconstruct): Actually use result
16295         of use of trans.
16296         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
16297         variable tmp.
16299         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
16300         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
16301         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
16303         * nis/nis_table.c (nis_list): Use variable of correct type for
16304         result of __follow_path call.
16306 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16308         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
16309         of math functions ceil, trunc, floor, round, and sqrt, when
16310         avaliable on the platform.
16311         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
16312         name clash.
16313         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
16314         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
16315         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
16317 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
16319         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
16320         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
16322 2011-11-11  Roland McGrath  <roland@hack.frob.com>
16324         * include/unistd.h: Fix __readlink return type.
16325         Reported by Chris Metcalf <cmetcalf@tilera.com>.
16327 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
16329         * stdlib/ucontext.h: Undo last change for makecontext.
16331 2011-11-11  Andreas Schwab  <schwab@redhat.com>
16333         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
16335         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
16336         * setjmp/setjmp.h: Mark functions as non-leaf.
16337         * setjmp/bits/setjmp2.h: Likewise.
16338         * stdlib/ucontext.h: Likewise.
16340 2011-11-10  Andreas Schwab  <schwab@redhat.com>
16342         * malloc/arena.c (_int_new_arena): Don't increment narenas.
16343         (reused_arena): Don't check arena limit.
16344         (arena_get2): Atomically check arena limit.
16346 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
16348         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
16349         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
16351         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
16352         instructions.
16354 2011-11-07  Andreas Schwab  <schwab@redhat.com>
16356         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
16357         handler when locking.
16359         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
16360         Fix size of allocated buffer.
16362 2011-11-04  Andreas Schwab  <schwab@redhat.com>
16364         [BZ #10103]
16365         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
16366         declarations for long double functions.
16367         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
16369         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
16371 2011-11-03  Andreas Schwab  <schwab@redhat.com>
16373         * nscd/nscd.c (main): Don't start AVC thread until credentials are
16374         installed.
16376         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
16377         is disabled.
16379 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16381         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
16383 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
16385         * include/alloca.h (stackinfo_alloca_round): Define.
16386         (extend_alloca): Use it.
16387         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
16388         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
16389         here.
16391         * scripts/check-local-headers.sh: Ignore libaudit.h.
16393         * nscd/Makefile (extra-objs): Make recursively expanded.
16395 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
16397         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
16398         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16400         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
16401         * posix/tst-rfc3484-2.c: Likewise.
16402         * posix/tst-rfc3484-3.c: Likewise.
16404         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
16405         process_vm_writev.
16406         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
16407         process_vm_writev.
16408         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
16409         process_vm_writev from libc using GLIBC_2.15 version.
16411         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
16413 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
16415         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
16416         stack usage.
16418 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
16420         [BZ #13367]
16421         * nss/getent.c (initgroups_keys): Show error message in case no group
16422         names are given.
16424         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
16425         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
16426         __bump_nl_timestamp.
16427         * nscd/connections (nscd_init): When host database is served open
16428         netlink socket and request notification about configuration changes.
16429         (main_loop_poll): Track netlink file descriptor and bump timestamp
16430         in case data becomes available.
16431         (main_loop_epoll): Likewise.
16432         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
16433         (database_pers_head): Add extra_data fileds.
16434         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
16435         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
16436         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
16437         Adjust caller.
16438         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
16439         in6ai data, call __free_in6ai.
16440         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
16441         Add -DHAVE_NETLINK.
16442         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
16443         interface information.  Reuse previous data if netlink timestamp
16444         is not changed.
16445         (__bump_nl_timestamp): New function.
16446         (__free_in6ai): New function.
16448 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
16450         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
16451         close_not_cancel_no_status here.
16452         (__check_pf): Reorganize code a bit to not call close twice if OOM.
16454 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16456         [BZ #13276]
16457         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
16458         return value.
16460         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
16461         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
16462         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
16464 2011-07-03  Andreas Jaeger  <aj@suse.de>
16466         [BZ #10709]
16467         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
16468         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
16469         * math/libm-test.inc (sin_test): Add test case.
16471 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
16473         [BZ #13337]
16474         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
16475         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16477         * elf/chroot_canon.c (chroot_canon): Cleanups.
16479         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
16481         [BZ #13335]
16482         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
16483         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
16485         * string/test-strchr.c: Make usable for strchrnul testing.
16486         * string/test-strchrnul.c: New file.
16487         * string/Makefile (strop-tests): Add strchrnul.
16489         * po/it.po: Update from translation team.
16490         * po/es.po: Likewise.
16492 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
16494         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
16495         the three constants needed as parameters.  Drop the others.
16496         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
16497         __m128i_strloadu_tolower.
16498         Create and initialize variable zero and use it in all the places
16499         where _mm_setzero_si128 was used.
16501         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
16502         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
16503         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
16504         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
16505         anymore.
16506         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
16507         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
16508         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
16509         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
16510         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
16511         __mpranred, __mptan.
16512         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
16513         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
16514         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
16515         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
16516         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
16517         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
16518         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
16519         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
16520         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
16522 2011-10-28  Andreas Schwab  <schwab@redhat.com>
16524         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
16525         redefine if SHARED.
16526         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
16528         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
16529         wide char related routines to wcsmbs subdir.
16531 2011-10-27  Andreas Schwab  <schwab@redhat.com>
16533         [BZ #13344]
16534         * misc/sys/cdefs.h (__THROWNL): Define.
16535         * posix/unistd.h: Use __THREADNL instead of __THREAD
16536         for memory synchronization functions.
16538 2011-10-26  Roland McGrath  <roland@hack.frob.com>
16540         [BZ #13349]
16541         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
16542         doesn't exist.
16543         * manual/stdio.texi (Obstack Streams): Node removed.
16545 2011-10-26  Andreas Schwab  <schwab@redhat.com>
16547         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
16548         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16549         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16551         * math/math_private.h (math_force_eval): Allow non-addressable
16552         arguments.
16553         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
16555 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16557         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
16558         file is not needed.
16560         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
16561         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
16562         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
16563         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
16564         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
16565         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
16566         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
16567         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
16568         Add AVX variants.
16569         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
16570         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
16571         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
16572         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
16573         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
16574         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
16575         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
16576         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
16577         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
16578         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
16579         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
16580         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
16581         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
16582         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
16583         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
16584         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
16585         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
16586         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
16587         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
16589         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
16590         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
16592         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
16593         place.  Use VEX encoding when compiling for AVX.
16595 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16597         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
16598         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
16600         * string/test-strchr.c (do_test): Don't generate NUL bytes.
16602 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16604         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
16605         useless if() expression.
16606         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
16607         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
16608         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
16609         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
16610         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
16611         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
16612         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
16613         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
16614         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
16615         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
16616         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
16617         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
16618         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
16619         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
16620         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
16621         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
16622         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
16623         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
16624         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
16626         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
16628 2011-10-25  Andreas Schwab  <schwab@redhat.com>
16630         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
16631         condition.
16632         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16634 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
16636         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
16637         .text section.  Avoid duplicate constants.
16638         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
16639         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16640         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
16641         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16642         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16643         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16644         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16645         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16646         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
16647         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
16648         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
16649         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
16650         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
16651         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
16652         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
16653         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
16654         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
16655         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
16656         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
16657         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16658         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
16659         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
16660         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
16661         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
16662         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
16663         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
16664         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
16665         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
16666         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
16667         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
16668         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
16669         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
16670         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
16671         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
16672         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
16673         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
16674         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
16675         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
16676         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
16677         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
16678         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
16679         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
16680         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
16681         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
16682         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
16684 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
16686         * sysdeps/x86_64/dla.h: Move to ...
16687         * sysdeps/x86_64/fpu/dla.h: ...here.
16688         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
16689         situations.  Use __builtin_fma only for gcc 4.6 and up.
16691         * config.make.in: Add have-mfma4 entry.
16692         * configure.in: Substitute libc_cv_cc_fma4.
16693         * math/Makefile (dbl-only-routines): Add sincostab.
16694         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
16695         Use __sincostab not sincos.
16696         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
16697         name is a macro.
16698         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
16699         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16700         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16701         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
16702         using __copysign.
16703         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
16704         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
16705         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
16706         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
16707         and __inv.
16708         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
16709         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
16710         __copysign.
16711         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
16712         define aliases when function name is a macro.
16713         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
16714         sysdeps/ieee754/dbl-64/sincos.tbl.
16715         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
16716         fma4-enabled routines.
16717         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
16718         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
16719         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
16720         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
16721         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
16722         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
16723         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
16724         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
16725         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
16726         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
16727         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
16728         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
16729         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
16730         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
16731         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
16732         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
16733         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
16734         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
16735         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
16736         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
16737         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
16738         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
16739         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
16740         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
16741         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
16742         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
16743         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
16744         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
16745         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
16746         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
16748         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
16749         rename.
16750         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16751         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16752         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16753         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16754         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16755         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16756         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16757         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16759 2011-10-24  Andreas Schwab  <schwab@redhat.com>
16761         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
16763 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16765         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
16767         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
16768         prediction.
16769         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
16771         * string/strnlen.c: Don't define STRNLEN, reverse logic.
16772         Remove unused variable magic_bits.
16773         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
16775         * string/strnlen.c: Define and use STRNLEN macro.
16776         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
16777         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
16778         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
16779         * wcsmbs/wcslen.c: Define and use WCSLEN.
16780         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
16781         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
16782         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
16783         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
16784         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
16785         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
16786         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
16788 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16790         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16791         strnlen-sse2-no-bsf.
16792         Rename strlen-no-bsf to strlen-sse2-no-bsf.
16793         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
16794         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
16795         Add strnlen support.
16796         (USE_AS_STRNLEN): New macro.
16797         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
16798         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
16799         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
16800         * sysdeps/x86_64/wcslen.S: New file.
16802 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
16804         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
16805         XMM-moves are used for copying on small sizes.
16807 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16809         * wcsmbs/Makefile (strop-tests): Add wcschr.
16810         * wcsmbs/test-wcschr.c: New file.
16811         * string/test-strchr.c: Update.
16812         Add wcschr support.
16813         (WIDE): New macro.
16815 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16817         * wcsmbs/Makefile (strop-tests): Add wcslen.
16818         * wcsmbs/test-wcslen.c: New file.
16819         * string/test-strlen.c: Update.
16820         Add wcslen support.
16821         (WIDE): New macro.
16823 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16825         * po/it.po: Update from translation team.
16827 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16829         * sysdeps/x86_64/wcscmp.S: Update.
16830         Fix wrong comparison semantics.
16831         wcscmp shall use signed comparison not unsigned.
16832         Don't use substraction to avoid overflow bug.
16833         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
16834         * wcsmbc/wcscmp.c: Likewise.
16835         * string/test-strcmp.c: Likewise.
16836         Add new tests to check cases with negative values.
16838 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
16840         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
16841         * sysdeps/x86_64/dla.h: ...here.  New file.
16842         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
16843         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16844         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16845         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16846         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16847         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
16848         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16849         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16850         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16852 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
16854         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
16855         __ynl_finite aliases.
16857 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16859         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16861         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
16862         define DLA_FMA.
16863         [DLA_FMA] (EMULV): Use DLA_FMA.
16864         [DLA_FMA] (MUL12): Use EMULV.
16865         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
16866         that are not needed.
16867         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
16868         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
16869         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
16870         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
16871         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
16872         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
16873         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
16875 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
16877         * math/s_nan.c: Undef __nan.
16878         * math/s_nanf.c: Undef __nanf.
16879         * math/s_nanl.c: Undef __nanl.
16880         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
16881         "math_private.h".
16883 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
16885         * math/s_catan.c: Add branch predictions.
16886         * math/s_catanf.c: Likewise.
16887         * math/s_catanh.c: Likewise.
16888         * math/s_catanhf.c: Likewise.
16889         * math/s_catanhl.c: Likewise.
16890         * math/s_catanl.c: Likewise.
16891         * math/s_cexp.c: Likewise.
16892         * math/s_cexpf.c: Likewise.
16893         * math/s_cexpl.c: Likewise.
16894         * math/s_clog.c: Likewise.
16895         * math/s_clog10.c: Likewise.
16896         * math/s_clog10f.c: Likewise.
16897         * math/s_clog10l.c: Likewise.
16898         * math/s_clogf.c: Likewise.
16899         * math/s_clogl.c: Likewise.
16900         * math/s_csqrt.c: Likewise.
16901         * math/s_csqrtf.c: Likewise.
16902         * math/s_csqrtl.c: Likewise.
16903         * math/s_ctanf.c: Likewise.
16904         * math/s_ctanh.c: Likewise.
16905         * math/s_ctanhf.c: Likewise.
16906         * math/s_ctanhl.c: Likewise.
16907         * math/s_ctanl.c: Likewise.
16909         * math/math_private.h: Define __nan, __nanf, __nanl.
16910         * math/s_cacosh.c: Include <math_private.h>.
16911         * math/s_cacoshl.c: Likewise.
16912         * math/s_casinh.c: Likewise.
16913         * math/s_casinhf.c: Likewise.
16914         * math/s_casinhl.c: Likewise.
16915         * math/s_ccos.c: Rely entire on ccosh.
16916         * math/s_ccosf.c: Rely entire on ccoshf.
16917         * math/s_ccosl.c: Rely entirely on ccoshl.
16918         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
16919         Remove tests for FE_INVALID.
16920         * math/s_ccoshf.c: Likewise.
16921         * math/s_ccoshl.c: Likewise.
16922         * math/s_csin.c: Likewise.
16923         * math/s_csinf.c: Likewise.
16924         * math/s_csinh.c Likewise.
16925         * math/s_csinhf.c: Likewise.
16926         * math/s_csinhl.c: Likewise.
16927         * math/s_csinl.c: Likewise.
16928         * math/s_ctan.c: Likewise.
16929         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
16930         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
16931         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
16933 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
16935         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
16936         compilation problems.
16938         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
16939         __builtin_expect.
16941 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
16943         * sysdeps/i386/configure.in: Test for -mfma4 option.
16944         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
16945         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
16946         COMMON_CPUID_INDEX_80000001.
16947         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
16948         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
16949         use it if FMA3 is not supported.
16950         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
16952         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
16953         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
16955 2011-10-20  Andreas Schwab  <schwab@redhat.com>
16957         [BZ #12892]
16958         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
16959         it would create a cycle with a link time dependency.
16961 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
16963         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
16964         instruction.
16965         * string/Makefile (strop-tests): Add rawmemchr.
16966         * string/test-rawmemchr.c: New file.
16968         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
16969         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
16970         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
16971         when compiling str{,n}casecmp and when AVX is available.  Hook up
16972         new optimized code in initializers.
16974 2011-10-19  Andreas Schwab  <schwab@redhat.com>
16976         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
16977         __feraiseexcept instead of feraiseexcept.
16979 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
16981         * math/math_private.h: Define defaults for libc_fetestexcept and
16982         libc_feupdateenv.
16983         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
16984         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
16985         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
16986         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
16987         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
16988         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
16989         libc_fetestexcept and libc_feupdateenv.
16991         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
16992         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
16993         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
16994         * sysdeps/x86_64/fpu/math_private.h: Define special version of
16995         libc_feholdexcept_setround.
16997         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
16998         Add s_nearbyint-c and s_nearbyintf-c.
16999         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
17000         nearbyintf inlines.
17001         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
17002         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
17003         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
17004         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
17006         * math/math_private.h: Define defaults for libc_fegetround,
17007         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
17008         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
17009         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
17010         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
17011         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
17012         standard functions.
17013         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17014         Remove comments and hacks for old compiler versions.
17015         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
17016         libc_fegetround, libc_fesetround, libc_feholdexcept, and
17017         libc_feholdexceptl.
17019 2011-10-18  Andreas Schwab  <schwab@redhat.com>
17021         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
17022         (__feraiseexcept_renamed): Add __NTH.
17023         (feraiseexcept): Add __NTH.  Rename local variables to fix
17024         namespace violations.
17026 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
17028         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
17030         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
17032         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
17033         recently added interfaces.
17034         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
17036         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
17037         about macro parameter expansion.
17039         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
17040         __NO_MATH_INLINES is defined.  Cleanups.
17042         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
17043         and __floorf is target has SSE4.1.
17044         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
17045         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
17046         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
17047         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
17049         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
17050         name.
17051         (floorf): Likewise.
17053         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
17055 2011-10-17  Andreas Schwab  <schwab@redhat.com>
17057         * misc/sys/cdefs.h: Fix last change.
17059         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
17060         database lookup.
17062 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
17064         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
17066         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
17067         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17068         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17069         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17070         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17071         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17072         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17073         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17074         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17075         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
17076         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
17077         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
17078         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
17079         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
17080         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
17081         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
17082         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
17083         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
17084         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
17085         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
17086         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
17087         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
17089         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
17090         ceil, ceilf, floor, floorf.
17092         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
17093         Perform IRELATIVE relocations last.
17095         * elf/do-rel.h: Add another parameter nrelative, replacing the
17096         local variable with the same name.  Change name of the function
17097         to end in Rel or Rela (uppercase).
17098         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
17099         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
17100         elf_dynamic_do_##reloc function.
17102 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17104         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
17105         is sufficient, at least on modern CPUs.
17107         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
17109         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
17110         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
17112         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
17113         __expl_finite.
17114         * math/bits/math-finite.h: Add entries for exp.
17115         * math/e_expl.c: Add __*_finite alias.
17116         * sysdeps/i386/fpu/e_exp.S: Likewise.
17117         * sysdeps/i386/fpu/e_expf.S: Likewise.
17118         * sysdeps/i386/fpu/e_expl.c: Likewise.
17119         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17120         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
17121         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17122         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17123         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
17124         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
17125         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
17127         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
17128         is sufficient, at least on modern CPUs.
17130         * ctype/ctype-info.c (__ctype_init): Define.
17131         * include/ctype.h (__ctype_init): Declare.
17132         (__ctype_b_loc): The variable is always initialized.
17133         (__ctype_toupper_loc): Likewise.
17134         (__ctype_tolower_loc): Likewise.
17135         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
17136         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
17138 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
17140         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
17142         * configure.in: Also look in $cxxmachine/include for C++ system
17143         headers.
17145 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17147         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
17148         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
17149         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
17150         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
17151         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
17152         (USE_AS_WMEMCMP): New macro.
17153         Fixing indents.
17154         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
17155         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
17156         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
17157         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
17158         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17159         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
17160         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
17161         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
17162         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
17163         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
17164         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
17165         (USE_AS_WMEMCMP): New macro.
17166         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
17167         * sysdeps/string/test-memcmp.c: Update.
17168         Fix simple_wmemcmp.
17169         Add new tests.
17170         * wcsmbs/wmemcmp.c: Update.
17171         (WMEMCMP): New macro.
17172         Fix overflow bug.
17174 2011-10-12  Andreas Jaeger  <aj@suse.de>
17176         [BZ #13268]
17177         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
17179 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
17181         * libio/iofwide.c (do_length): Avoid warning.
17183         * ctype/ctype.h (__isctype_f): Add missing __THROW.
17185 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
17187         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
17189         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
17190         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
17191         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
17192         * sysdeps/i386/i686/fpu/e_log.S: New file.
17193         * sysdeps/i386/i686/fpu/e_logf.S: New file.
17194         * sysdeps/i386/i686/fpu/e_logl.S: New file.
17196         * ctype/ctype.h: Add support for inlined isXXX functions when
17197         compiling C++ code.
17199 2011-10-14  Andreas Schwab  <schwab@redhat.com>
17201         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17203         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
17205 2011-10-13  Roland McGrath  <roland@hack.frob.com>
17207         [BZ #13291]
17208         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
17210 2011-10-13  Andreas Schwab  <schwab@redhat.com>
17212         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
17213         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
17214         feraiseexcept.
17216         * sysdeps/x86_64/memrchr.S: Check for zero size.
17218         * string/stratcliff.c: Add memrchr tests.
17220 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17222         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
17223         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
17224         rawmemchr-sse2 rawmemchr-sse2-bsf.
17225         * sysdeps/i386/i686/multiarch/memchr.S: New file.
17226         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
17227         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
17228         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
17229         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
17230         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
17231         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
17232         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
17233         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
17234         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
17235         * string/memrchr.c (MEMRCHR): New macro.
17237 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
17239         Add integration with gcc's -ffinite-math-only and optimize wrapper
17240         functions in libm.
17241         * Versions.def: Define GLIBC_2.15 version for libm.
17242         * math/Makefile (headers): Add bits/math-finite.h.
17243         * math/bits/math-finite.h: New file.
17244         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
17245         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
17246         * math/e_acoshl.c: Add __*_finite alias.
17247         * math/e_acosl.c: Likewise.
17248         * math/e_asinl.c: Likewise.
17249         * math/e_atan2l.c: Likewise.
17250         * math/e_atanhl.c: Likewise.
17251         * math/e_coshl.c: Likewise.
17252         * math/e_exp10.c: Likewise.
17253         * math/e_exp10f.c: Likewise.
17254         * math/e_exp10l.c: Likewise.
17255         * math/e_exp2l.c: Likewise.
17256         * math/e_fmodl.c: Likewise.
17257         * math/e_gammal_r.c: Likewise.
17258         * math/e_hypotl.c: Likewise.
17259         * math/e_j0l.c: Likewise.
17260         * math/e_j1l.c: Likewise.
17261         * math/e_jnl.c: Likewise.
17262         * math/e_lgammal_r.c: Likewise.
17263         * math/e_log10l.c: Likewise.
17264         * math/e_log2l.c: Likewise.
17265         * math/e_logl.c: Likewise.
17266         * math/e_powl.c: Likewise.
17267         * math/e_sinhl.c: Likewise.
17268         * math/e_sqrtl.c: Likewise.
17269         * math/e_scalb.c: Completely rewritten and optimized.
17270         * math/e_scalbf.c: Likewise.
17271         * math/e_scalbl.c: Likewise.
17272         * math/w_acos.c: Likewise.
17273         * math/w_acosf.c: Likewise.
17274         * math/w_acosl.c: Likewise.
17275         * math/w_acosh.c: Likewise.
17276         * math/w_acoshf.c: Likewise.
17277         * math/w_acoshl.c: Likewise.
17278         * math/w_asin.c: Likewise.
17279         * math/w_asinf.c: Likewise.
17280         * math/w_asinl.c: Likewise.
17281         * math/w_atan2.c: Likewise.
17282         * math/w_atan2f.c: Likewise.
17283         * math/w_atan2l.c: Likewise.
17284         * math/w_atanh.c: Likewise.
17285         * math/w_atanhf.c: Likewise.
17286         * math/w_atanhl.c: Likewise.
17287         * math/w_exp10.c: Likewise.
17288         * math/w_exp10f.c: Likewise.
17289         * math/w_exp10l.c: Likewise.
17290         * math/w_fmod.c: Likewise.
17291         * math/w_fmodf.c: Likewise.
17292         * math/w_fmodl.c: Likewise.
17293         * math/w_j0.c: Likewise.
17294         * math/w_j0f.c: Likewise.
17295         * math/w_j0l.c: Likewise.
17296         * math/w_j1.c: Likewise.
17297         * math/w_j1f.c: Likewise.
17298         * math/w_j1l.c: Likewise.
17299         * math/w_jn.c: Likewise.
17300         * math/w_jnf.c: Likewise.
17301         * math/w_log.c: Likewise.
17302         * math/w_logf.c: Likewise.
17303         * math/w_logl.c: Likewise.
17304         * math/w_log10.c: Likewise.
17305         * math/w_log10f.c: Likewise.
17306         * math/w_log10l.c: Likewise.
17307         * math/w_log2.c: Likewise.
17308         * math/w_log2f.c: Likewise.
17309         * math/w_log2l.c: Likewise.
17310         * math/w_pow.c: Likewise.
17311         * math/w_powf.c: Likewise.
17312         * math/w_powl.c: Likewise.
17313         * math/w_remainder.c: Likewise.
17314         * math/w_remainderf.c: Likewise.
17315         * math/w_remainderl.c: Likewise.
17316         * math/w_scalb.c: Likewise.
17317         * math/w_scalbf.c: Likewise.
17318         * math/w_scalbl.c: Likewise.
17319         * math/w_sqrt.c: Likewise.
17320         * math/w_sqrtf.c: Likewise.
17321         * math/w_sqrtl.c: Likewise.
17322         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
17323         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
17324         used.
17325         * math/math_private.h: Declare __kernel_standard_f.
17326         * math/w_cosh.c: Remove cruft and optimize a bit.
17327         * math/w_coshf.c: Likewise.
17328         * math/w_coshl.c: Likewise.
17329         * math/w_exp2.c: Likewise.
17330         * math/w_exp2f.c: Likewise.
17331         * math/w_exp2l.c: Likewise.
17332         * math/w_hypot.c: Likewise.
17333         * math/w_hypotf.c: Likewise.
17334         * math/w_hypotl.c: Likewise.
17335         * math/w_lgamma.c: Likewise.
17336         * math/w_lgamma_r.c: Likewise.
17337         * math/w_lgammaf.c: Likewise.
17338         * math/w_lgammaf_r.c: Likewise.
17339         * math/w_lgammal.c: Likewise.
17340         * math/w_lgammal_r.c: Likewise.
17341         * math/w_sinh.c: Likewise.
17342         * math/w_sinhf.c: Likewise.
17343         * math/w_sinhl.c: Likewise.
17344         * math/w_tgamma.c: Likewise.
17345         * math/w_tgammaf.c: Likewise.
17346         * math/w_tgammal.c: Likewise.
17347         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17348         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17349         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
17350         Minor optimizations.  Pretty printing.  Remove cruft.
17351         * sysdeps/i386/fpu/e_acosf.S: Likewise.
17352         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17353         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17354         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17355         * sysdeps/i386/fpu/e_acosl.c: Likewise.
17356         * sysdeps/i386/fpu/e_asin.S: Likewise.
17357         * sysdeps/i386/fpu/e_asinf.S: Likewise.
17358         * sysdeps/i386/fpu/e_atan2.S: Likewise.
17359         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
17360         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
17361         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17362         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17363         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17364         * sysdeps/i386/fpu/e_exp10.S: Likewise.
17365         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
17366         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
17367         * sysdeps/i386/fpu/e_exp2.S: Likewise.
17368         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
17369         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
17370         * sysdeps/i386/fpu/e_fmod.S: Likewise.
17371         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
17372         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
17373         * sysdeps/i386/fpu/e_hypot.S: Likewise.
17374         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
17375         * sysdeps/i386/fpu/e_log.S: Likewise.
17376         * sysdeps/i386/fpu/e_log10.S: Likewise.
17377         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17378         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17379         * sysdeps/i386/fpu/e_log2.S: Likewise.
17380         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17381         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17382         * sysdeps/i386/fpu/e_logf.S: Likewise.
17383         * sysdeps/i386/fpu/e_logl.S: Likewise.
17384         * sysdeps/i386/fpu/e_pow.S: Likewise.
17385         * sysdeps/i386/fpu/e_powf.S: Likewise.
17386         * sysdeps/i386/fpu/e_powl.S: Likewise.
17387         * sysdeps/i386/fpu/e_remainder.S: Likewise.
17388         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
17389         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
17390         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17391         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17392         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17393         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
17394         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
17395         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
17396         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17397         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17398         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17399         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17400         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
17401         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17402         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
17403         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17404         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17405         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17406         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17407         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17408         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17409         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17410         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17411         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17412         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17413         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17414         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17415         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17416         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17417         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17418         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17419         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17420         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17421         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17422         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
17423         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17424         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
17425         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17426         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17427         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17428         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17429         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17430         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17431         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17432         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17433         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17434         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17435         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17436         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17437         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17438         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17439         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17440         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17441         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17442         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17443         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17444         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17445         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
17446         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17447         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17448         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17449         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17450         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17451         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17452         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17453         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17454         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17455         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17456         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17457         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17458         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17459         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17460         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17461         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17462         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17463         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17464         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
17465         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17466         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17467         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17468         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17469         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17470         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17471         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17472         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
17473         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17474         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17475         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17476         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17477         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17478         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
17479         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17480         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17481         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17482         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17483         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17484         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17485         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17486         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17487         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17488         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17489         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
17490         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
17491         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
17492         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
17493         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
17494         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
17495         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
17496         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
17497         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
17498         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
17499         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
17500         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17501         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17502         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17503         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17504         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
17505         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17506         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
17507         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
17508         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
17509         (__isnanf): Likewise.
17510         (__isinf_ns): Likewise.
17511         (__isinf_nsf): Likewise.
17512         (__finite): Likewise.
17513         (__finitef): Likewise.
17514         (__ieee754_sqrt): Define as macro.
17515         (__ieee754_sqrtf): Define as macro.
17516         (__ieee754_sqrtl): Define as macro.
17517         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
17518         inlined copy.
17519         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
17520         __FINITE_MATH_ONLY__ consistent.
17521         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
17523 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
17525         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
17526         of rawmemchr.
17528         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
17530 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
17532         * po/ja.po: Update from translation team.
17534 2011-10-08  Roland McGrath  <roland@hack.frob.com>
17536         * locale/programs/locarchive.c (prepare_address_space): New function.
17537         (create_archive, enlarge_archive, open_archive): Use it.
17539         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
17540         inside [SHARED], where it is used.
17542         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
17544         * nss/getent.c (netgroup_keys): Remove unused variable.
17545         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17547 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
17549         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
17550         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
17551         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
17552         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
17553         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
17554         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
17555         * math/Makefile (libm-calls): Add s_isinf_ns.
17556         * math/divtc3.c: Use __isinf_nsl instead of isinf.
17557         * math/multc3.c: Likewise.
17558         * math/s_casin.c: Likewise.
17559         * math/s_casinf.c: Likewise.
17560         * math/s_casinl.c: Likewise.
17561         * math/s_ccos.c: Likewise.
17562         * math/s_ccosf.c: Likewise.
17563         * math/s_ccosl.c: Likewise.
17564         * math/s_ctan.c: Likewise.
17565         * math/s_ctanf.c: Likewise.
17566         * math/s_ctanh.c: Likewise.
17567         * math/s_ctanhf.c: Likewise.
17568         * math/s_ctanhl.c: Likewise.
17569         * math/s_ctanl.c: Likewise.
17570         * math/w_fmod.c: Likewise.
17571         * math/w_fmodf.c: Likewise.
17572         * math/w_fmodl.c: Likewise.
17573         * math/w_remainder.c: Likewise.
17574         * math/w_remainderf.c: Likewise.
17575         * math/w_remainderl.c: Likewise.
17576         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
17577         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
17578         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
17579         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
17580         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
17581         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
17582         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
17583         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
17585         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
17586         of the number.
17587         * stdio-common/printf_fphex.c: Likewise.
17588         * stdio-common/printf_size.c: Likewise.
17590         * math/e_exp10.c: Include math_private.h using <...> not "...".
17591         * math/e_exp10f.c: Likewise.
17592         * math/e_exp10l.c: Likewise.
17593         * math/e_exp2l.c: Likewise.
17594         * math/e_j0l.c: Likewise.
17595         * math/e_j1l.c: Likewise.
17596         * math/e_jnl.c: Likewise.
17597         * math/e_lgammal_r.c: Likewise.
17598         * math/e_rem_pio2l.c: Likewise.
17599         * math/e_scalb.c: Likewise.
17600         * math/e_scalbf.c: Likewise.
17601         * math/e_scalbl.c: Likewise.
17602         * math/k_cosl.c: Likewise.
17603         * math/k_sinl.c: Likewise.
17604         * math/k_tanl.c: Likewise.
17605         * math/s_cacoshf.c: Likewise.
17606         * math/s_catan.c: Likewise.
17607         * math/s_catanf.c: Likewise.
17608         * math/s_catanh.c: Likewise.
17609         * math/s_catanhf.c: Likewise.
17610         * math/s_catanhl.c: Likewise.
17611         * math/s_catanl.c: Likewise.
17612         * math/s_ccosh.c: Likewise.
17613         * math/s_ccoshf.c: Likewise.
17614         * math/s_ccoshl.c: Likewise.
17615         * math/s_cexp.c: Likewise.
17616         * math/s_cexpf.c: Likewise.
17617         * math/s_cexpl.c: Likewise.
17618         * math/s_clog.c: Likewise.
17619         * math/s_clog10.c: Likewise.
17620         * math/s_clog10f.c: Likewise.
17621         * math/s_clog10l.c: Likewise.
17622         * math/s_clogf.c: Likewise.
17623         * math/s_clogl.c: Likewise.
17624         * math/s_csin.c: Likewise.
17625         * math/s_csinf.c: Likewise.
17626         * math/s_csinh.c: Likewise.
17627         * math/s_csinhf.c: Likewise.
17628         * math/s_csinhl.c: Likewise.
17629         * math/s_csinl.c: Likewise.
17630         * math/s_csqrt.c: Likewise.
17631         * math/s_csqrtf.c: Likewise.
17632         * math/s_csqrtl.c: Likewise.
17633         * math/s_ctan.c: Likewise.
17634         * math/s_ctanf.c: Likewise.
17635         * math/s_ctanh.c: Likewise.
17636         * math/s_ctanhf.c: Likewise.
17637         * math/s_ctanhl.c: Likewise.
17638         * math/s_ctanl.c: Likewise.
17639         * math/s_ldexp.c: Likewise.
17640         * math/s_ldexpf.c: Likewise.
17641         * math/s_ldexpl.c: Likewise.
17642         * math/s_significand.c: Likewise.
17643         * math/s_significandf.c: Likewise.
17644         * math/s_significandl.c: Likewise.
17645         * math/w_acos.c: Likewise.
17646         * math/w_acosf.c: Likewise.
17647         * math/w_acosh.c: Likewise.
17648         * math/w_acoshf.c: Likewise.
17649         * math/w_acoshl.c: Likewise.
17650         * math/w_acosl.c: Likewise.
17651         * math/w_asin.c: Likewise.
17652         * math/w_asinf.c: Likewise.
17653         * math/w_asinl.c: Likewise.
17654         * math/w_atan2.c: Likewise.
17655         * math/w_atan2f.c: Likewise.
17656         * math/w_atan2l.c: Likewise.
17657         * math/w_atanh.c: Likewise.
17658         * math/w_atanhf.c: Likewise.
17659         * math/w_atanhl.c: Likewise.
17660         * math/w_cosh.c: Likewise.
17661         * math/w_coshf.c: Likewise.
17662         * math/w_coshl.c: Likewise.
17663         * math/w_dremf.c: Likewise.
17664         * math/w_exp10.c: Likewise.
17665         * math/w_exp10f.c: Likewise.
17666         * math/w_exp10l.c: Likewise.
17667         * math/w_exp2.c: Likewise.
17668         * math/w_exp2f.c: Likewise.
17669         * math/w_fmod.c: Likewise.
17670         * math/w_fmodf.c: Likewise.
17671         * math/w_fmodl.c: Likewise.
17672         * math/w_hypot.c: Likewise.
17673         * math/w_hypotf.c: Likewise.
17674         * math/w_hypotl.c: Likewise.
17675         * math/w_j0.c: Likewise.
17676         * math/w_j0f.c: Likewise.
17677         * math/w_j0l.c: Likewise.
17678         * math/w_j1.c: Likewise.
17679         * math/w_j1f.c: Likewise.
17680         * math/w_j1l.c: Likewise.
17681         * math/w_jn.c: Likewise.
17682         * math/w_jnf.c: Likewise.
17683         * math/w_jnl.c: Likewise.
17684         * math/w_lgamma.c: Likewise.
17685         * math/w_lgamma_r.c: Likewise.
17686         * math/w_lgammaf.c: Likewise.
17687         * math/w_lgammaf_r.c: Likewise.
17688         * math/w_lgammal.c: Likewise.
17689         * math/w_lgammal_r.c: Likewise.
17690         * math/w_log.c: Likewise.
17691         * math/w_log10.c: Likewise.
17692         * math/w_log10f.c: Likewise.
17693         * math/w_log10l.c: Likewise.
17694         * math/w_log2.c: Likewise.
17695         * math/w_log2f.c: Likewise.
17696         * math/w_log2l.c: Likewise.
17697         * math/w_logf.c: Likewise.
17698         * math/w_logl.c: Likewise.
17699         * math/w_pow.c: Likewise.
17700         * math/w_powf.c: Likewise.
17701         * math/w_powl.c: Likewise.
17702         * math/w_remainder.c: Likewise.
17703         * math/w_remainderf.c: Likewise.
17704         * math/w_remainderl.c: Likewise.
17705         * math/w_scalb.c: Likewise.
17706         * math/w_scalbf.c: Likewise.
17707         * math/w_scalbl.c: Likewise.
17708         * math/w_sinh.c: Likewise.
17709         * math/w_sinhf.c: Likewise.
17710         * math/w_sinhl.c: Likewise.
17711         * math/w_sqrt.c: Likewise.
17712         * math/w_sqrtf.c: Likewise.
17713         * math/w_sqrtl.c: Likewise.
17714         * math/w_tgamma.c: Likewise.
17715         * math/w_tgammaf.c: Likewise.
17716         * math/w_tgammal.c: Likewise.
17718         * po/ja.po: Update from translation team.
17720 2011-09-29  Andreas Jaeger  <aj@suse.de>
17722         [BZ #13179]
17723         * sunrpc/netname.c (netname2host): Fix logic.
17725         [BZ #6779]
17726         [BZ #6783]
17727         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
17728         correctly.
17729         * math/w_remainder.c (__remainder): Likewise.
17730         * math/w_remainderf.c (__remainderf): Likewise.
17731         * math/libm-test.inc (remainder_test): Add test cases.
17733 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17735         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
17736         sdiv_qrnnd.
17738 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17740         * string/test-memcmp.c: Avoid unncessary #defines.
17741         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
17743 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17745         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
17746         Use new sse2 version for core i3 - i7 as it's faster
17747         than sse42 version.
17748         (bit_Prefer_PMINUB_for_stringop): New.
17749         * sysdeps/x86_64/rawmemchr.S: Update.
17750         Replace with faster SSE2 version.
17751         * sysdeps/x86_64/memrchr.S: New file.
17752         * sysdeps/x86_64/memchr.S: Update.
17753         Replace with faster SSE2 version.
17755 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
17757         * elf/dl-load.c (lose): Add cast to avoid warning.
17759 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
17761         * po/ca.po: Update from translation team.
17763         * inet/getnetgrent_r.c: Hook up nscd.
17764         * nscd/Makefile (routines): Add nscd_netgroup.
17765         (nscd-modules): Add netgroupcache.
17766         (CFLAGS-netgroupcache.c): Define.
17767         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
17768         (cache_search): Add const to second parameter.
17769         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
17770         INNETGR.
17771         (dbs): Add netgrdb entry.
17772         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
17773         (verify_persistent_db): Handle netgrdb.
17774         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
17775         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
17776         GETFDNETGR.
17777         (netgroup_response_header): Define.
17778         (innetgroup_response_header): Define.
17779         (datahead): Add netgroup_response_header and innetgroup_response_header
17780         elements.
17781         * nscd/nscd.conf: Add entries for netgroup cache.
17782         * nscd/nscd.h (dbtype): Add netgrdb.
17783         (_PATH_NSCD_NETGROUP_DB): Define.
17784         (netgroup_iov_disabled): Declare.
17785         (xmalloc, xcalloc, xrealloc): Move declarations here.
17786         (cache_search): Adjust prototype.
17787         Add netgroup-related prototypes.
17788         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
17789         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
17790         (__nscd_innetgr): Declare.
17791         * nscd/selinux.c (perms): Use access_vector_t as element type and
17792         add netgroup-related initializers.
17793         * nscd/netgroupcache.c: New file.
17794         * nscd/nscd_netgroup.c: New file.
17795         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
17796         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
17797         For four parameters use innetgr.
17798         * nss/nss_files/files-init.c: Add definition and callback for netgr.
17799         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
17800         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
17801         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
17803         * nscd/connections.c (register_traced_file): Don't register file
17804         for disabled databases.
17806 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
17808         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
17810         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
17811         from tree and freeing node.
17813 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
17815         * nss/nsswitch.c (__nss_database_lookup): Handle
17816         nss_parse_service_list out of memory case.
17818 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
17820         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
17821         out of memory case.
17823 2011-10-04  Andreas Schwab  <schwab@redhat.com>
17825         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
17826         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
17827         pass it down.
17828         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
17829         elf_machine_rela, elf_machine_lazy_rel.
17830         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
17831         (ELF_DYNAMIC_DO_REL): Likewise.
17832         (ELF_DYNAMIC_DO_RELA): Likewise.
17833         (ELF_DYNAMIC_RELOCATE): Likewise.
17834         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
17835         to ELF_DYNAMIC_DO_REL.
17836         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
17837         (dl_main): In trace mode always set __RTLD_NOIFUNC.
17838         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
17839         elf_machine_rela.
17840         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
17841         skip_ifunc, don't call ifunc function if non-zero.
17842         (elf_machine_rela): Likewise.
17843         (elf_machine_lazy_rel): Likewise.
17844         (elf_machine_lazy_rela): Likewise.
17845         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
17846         (elf_machine_lazy_rel): Likewise.
17847         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
17848         Likewise.
17849         (elf_machine_lazy_rel): Likewise.
17850         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17851         Likewise.
17852         (elf_machine_lazy_rel): Likewise.
17853         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
17854         (elf_machine_lazy_rel): Likewise.
17855         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
17856         (elf_machine_lazy_rel): Likewise.
17857         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
17858         (elf_machine_lazy_rel): Likewise.
17859         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
17860         (elf_machine_lazy_rel): Likewise.
17861         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
17862         (elf_machine_lazy_rel): Likewise.
17863         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
17864         (elf_machine_lazy_rel): Likewise.
17866 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
17868         * nss/nss_files/files-init.c (_nss_files_init): Use static
17869         initialization for all the *_traced_file variables.
17871 2011-09-28  Andreas Schwab  <schwab@redhat.com>
17873         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
17875 2011-09-27  Roland McGrath  <roland@hack.frob.com>
17877         [BZ #13226]
17878         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
17880 2011-09-27  Andreas Schwab  <schwab@redhat.com>
17882         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
17883         Reread the line before reparsing it.
17885 2011-09-26  Andreas Schwab  <schwab@redhat.com>
17887         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
17889 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
17890             Maxim Kuvyrkov  <maxim@codesourcery.com>
17891             Joseph Myers  <joseph@codesourcery.com>
17893         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
17894         if needed for __stack_chk_guard.
17896 2011-09-19  Roland McGrath  <roland@hack.frob.com>
17898         * sysdeps/posix/spawni.c (script_execute): Always define it.
17899         It will be optimized away if unused.
17900         (maybe_script_execute): New function.
17901         (__spawni): Call it.
17903         * Makerules: Don't include tls.make.
17904         (config-tls): Always set to thread.
17905         * tls.make.c: File removed.
17907 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
17909         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
17910         * config.make.in (CPPFLAGS-config): New substituted variable.
17912 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17914         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
17916         [BZ #13192]
17917         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
17918         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
17920 2011-09-15  Roland McGrath  <roland@hack.frob.com>
17922         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
17923         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
17924         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
17925         (CALL_FAIL): Likewise.
17926         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
17927         (CALL_FAIL): Macro removed.
17928         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
17930 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
17932         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
17933         for __FINITE_MATH_ONLY__ == 1.
17935 2011-09-15  Andreas Schwab  <schwab@redhat.com>
17937         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
17938         __ieee754_sqrt instead of sqrt.
17939         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
17940         __ieee754_sqrtf instead of sqrtf.
17941         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
17942         __floorf instead of floorf.
17943         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
17944         __floorf, __truncf instead of floorf, truncf.
17946 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
17948         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
17950         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
17951         __extern_always_inline.
17952         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
17953         32-bit.
17955 2011-09-14  Andreas Schwab  <schwab@redhat.com>
17957         * elf/rtld.c (dl_main): Also relocate in dependency order when
17958         doing symbol dependency testing.
17960 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
17962         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
17963         Always define `refsym'.
17965 2011-09-13  Andreas Schwab  <schwab@redhat.com>
17967         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
17968         (__FD_ELT): Renamed from __FDELT.
17969         * misc/bits/select2.h (__FD_ELT): Likewise.
17970         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
17971         __FD_MASK instead of __FDELT, __FDMASK.
17972         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17973         Likewise.
17974         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
17975         Likewise.
17977         * elf/Makefile (gen-ldd): Fix pattern.
17979         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
17980         (init_tls): Likewise.
17982 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
17984         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
17986 2011-09-12  Andreas Schwab  <schwab@redhat.com>
17988         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
17989         `struct cmsghdr *' instead of `void *'.
17990         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
17991         Likewise.
17993 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
17995         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
17996         if non-absolute.
17997         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
17998         ldd_rewrite_script.
18000 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
18002         * configure.in: Remove --with-tls option.
18003         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
18004         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
18005         out in case it is missing.
18006         * sysdeps/ia64/elf/configure.in: Likewise.
18007         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
18008         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
18009         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
18010         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
18011         * sysdeps/sh/elf/configure.in: Likewise.
18012         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
18013         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
18014         * sysdeps/x86_64/elf/configure.in: Likewise.
18015         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
18016         * sysdeps/mach/hurd/tls.h: Likewise.
18018         [BZ #13067]
18019         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
18021         [BZ #13090]
18022         * configure.in: Fix use of AC_INIT.
18024         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
18026 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
18028         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
18029         __set_errno.
18030         * malloc/hooks.c: Likewise.
18032         [BZ #11929]
18033         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
18034         variables statically.
18035         (narenas): Initialize.
18036         (list_lock): Initialize.
18037         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
18038         initializtion of main_arena and list_lock.  Small cleanups.
18039         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
18040         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
18041         Add initializers to main_arena and mp_.
18042         (malloc_state): Remove pagesize member.  Change all users to use
18043         GLRO(dl_pagesize).
18045         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
18046         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
18047         is always initialized.
18049         * malloc/malloc.c: Removed unused configurations and dead code.
18050         * malloc/arena.c: Likewise.
18051         * malloc/hooks.c: Likewise.
18052         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
18054         * include/tls.h: Removed.  USE___THREAD must always be defined.
18055         * bits/libc-tsd.h: Don't handle !USE___THREAD.
18056         * elf/dl-libc.c: Likewise.
18057         * elf/dl-tsd.c: Likewise.
18058         * include/errno.h: Likewise.
18059         * include/netdb.h: Likewise.
18060         * include/resolv.h: Likewise.
18061         * inet/herrno-loc.c: Likewise.
18062         * inet/herrno.c: Likewise.
18063         * malloc/arena.c: Likewise.
18064         * malloc/hooks.c: Likewise.
18065         * malloc/malloc.c: Likewise.
18066         * resolv/res-state.c: Likewise.
18067         * resolv/res_libc.c: Likewise.
18068         * sysdeps/i386/dl-machine.h: Likewise.
18069         * sysdeps/ia64/dl-machine.h: Likewise.
18070         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
18071         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
18072         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
18073         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
18074         * sysdeps/sh/dl-machine.h: Likewise.
18075         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18076         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18077         * sysdeps/unix/i386/sysdep.S: Likewise.
18078         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
18079         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
18080         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
18081         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
18082         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
18083         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
18084         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
18085         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18086         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18087         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
18088         * sysdeps/unix/x86_64/sysdep.S: Likewise.
18089         * sysdeps/x86_64/dl-machine.h: Likewise.
18090         * tls.make.c: Likewise.
18092         * configure.in: Remove --with-__thread option.  Make tests for
18093         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
18094         tls_model attribute fail if no support is available.  Remove
18095         USE_IN_LIBIO.
18096         * Makeconfig: Adjust for dropped configure option.  All features are
18097         now mandatory.
18098         * Makerules: Likewise.
18099         * Versions.def: Likewise.
18100         * argp/argp-fmtstream.c: Likewise.
18101         * argp/argp-fmtstream.h: Likewise.
18102         * argp/argp-help.c: Likewise.
18103         * assert/assert.c: Likewise.
18104         * config.h.in: Likewise.
18105         * config.make.in: Likewise.
18106         * configure: Likewise.
18107         * configure.in: Likewise.
18108         * csu/Versions: Likewise.
18109         * csu/init.c: Likewise.
18110         * elf/tst-audit2.c: Likewise.
18111         * elf/tst-tls10.c: Likewise.
18112         * elf/tst-tls10.h: Likewise.
18113         * elf/tst-tls11.c: Likewise.
18114         * elf/tst-tls12.c: Likewise.
18115         * elf/tst-tls14.c: Likewise.
18116         * elf/tst-tlsmod11.c: Likewise.
18117         * elf/tst-tlsmod12.c: Likewise.
18118         * elf/tst-tlsmod13.c: Likewise.
18119         * elf/tst-tlsmod13a.c: Likewise.
18120         * elf/tst-tlsmod14a.c: Likewise.
18121         * elf/tst-tlsmod15b.c: Likewise.
18122         * elf/tst-tlsmod16a.c: Likewise.
18123         * elf/tst-tlsmod16b.c: Likewise.
18124         * elf/tst-tlsmod7.c: Likewise.
18125         * elf/tst-tlsmod8.c: Likewise.
18126         * elf/tst-tlsmod9.c: Likewise.
18127         * gmon/gmon.c: Likewise.
18128         * grp/fgetgrent_r.c: Likewise.
18129         * grp/putgrent.c: Likewise.
18130         * hurd/fopenport.c: Likewise.
18131         * include/libc-symbols.h: Likewise.
18132         * include/tls.h: Likewise.
18133         * intl/gettextP.h: Likewise.
18134         * intl/loadinfo.h: Likewise.
18135         * locale/global-locale.c: Likewise.
18136         * locale/localeinfo.h: Likewise.
18137         * mach/devstream.c: Likewise.
18138         * malloc/arena.c: Likewise.
18139         * malloc/set-freeres.c: Likewise.
18140         * misc/err.c: Likewise.
18141         * misc/getttyent.c: Likewise.
18142         * misc/mntent_r.c: Likewise.
18143         * posix/getopt.c: Likewise.
18144         * posix/wordexp.c: Likewise.
18145         * pwd/fgetpwent_r.c: Likewise.
18146         * resolv/Versions: Likewise.
18147         * resolv/res_hconf.c: Likewise.
18148         * shadow/fgetspent_r.c: Likewise.
18149         * shadow/putspent.c: Likewise.
18150         * stdio-common/printf_fphex.c: Likewise.
18151         * stdio-common/tmpfile.c: Likewise.
18152         * stdlib/abort.c: Likewise.
18153         * stdlib/fmtmsg.c: Likewise.
18154         * sunrpc/auth_unix.c: Likewise.
18155         * sunrpc/clnt_perr.c: Likewise.
18156         * sunrpc/clnt_tcp.c: Likewise.
18157         * sunrpc/clnt_udp.c: Likewise.
18158         * sunrpc/clnt_unix.c: Likewise.
18159         * sunrpc/openchild.c: Likewise.
18160         * sunrpc/svc_simple.c: Likewise.
18161         * sunrpc/svc_tcp.c: Likewise.
18162         * sunrpc/svc_udp.c: Likewise.
18163         * sunrpc/svc_unix.c: Likewise.
18164         * sunrpc/xdr.c: Likewise.
18165         * sunrpc/xdr_array.c: Likewise.
18166         * sunrpc/xdr_rec.c: Likewise.
18167         * sunrpc/xdr_ref.c: Likewise.
18168         * sunrpc/xdr_stdio.c: Likewise.
18170 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18172         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18174 2011-07-03  Andreas Jaeger  <aj@suse.de>
18176         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
18177         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
18178         regenerate with gen-libm-tests.pl.
18180 2010-05-12  Petr Baudis  <pasky@suse.cz>
18182         [BZ #11589]
18183         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
18184         around j0() zero points by switching to j1().
18185         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
18186         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
18187         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
18188         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
18190 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18192         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
18193         instead of 0.
18194         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
18195         instead of 0.                              .
18196         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18197         Patch in part by Pavel Roskin <proski@gnu.org>.
18199         [BZ #13138]
18200         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
18201         realloc.
18202         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
18203         Free memory block if necessary.
18205         [BZ #12847]
18206         * libio/genops.c (INTDEF): For string streams the _lock pointer can
18207         be NULL.  Don't lock in this case.
18209 2011-09-09  Roland McGrath  <roland@hack.frob.com>
18211         * elf/elf.h (ELFOSABI_GNU): New macro.
18212         (ELFOSABI_LINUX): Define to that.
18214 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
18216         * string/strncat.c (strncat): Undef the symbol in case it has been
18217         defined in bits/string.h.
18219 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
18221         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
18223         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
18224         link map.
18226 2011-08-17  Andreas Jaeger  <aj@suse.de>
18228         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
18230 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18231             Ian Lance Taylor  <iant@google.com>
18233         * math/libm-test.inc (lround_test): New testcase.
18234         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
18236 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
18238         * Makefile: Remove support for automatic cvs check-ins.
18239         * Makerules: Likewise.
18240         * config.make.in: Likewise.
18241         * configure.in: Likewise.
18242         * intl/Makefile: Likewise.
18243         * locale/Makefile: Likewise.
18244         * po/Makefile: Likewise.
18245         * posix/Makefile: Likewise.
18246         * sysdeps/gnu/Makefile: Likewise.
18247         * sysdeps/mach/hurd/Makefile: Likewise.
18248         * sysdeps/sparc/sparc32/Makefile: Likewise.
18250         [BZ #13118]
18251         * posix/Makefile (bug-regex32-ENV): Define.
18252         Patch by John Stanley <jpsinthemix@verizon.net>.
18254         * misc/Makefile (headers): Add bits/select2.h.
18255         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
18256         * misc/bits/select2.h: New file.
18257         * include/bits/select2.h: New file.
18258         * debug/Makefile (routines): Add fdelt_chk.
18259         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
18260         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
18261         FD_ISSET.
18262         * debug/fdelt_chk.c: New file.
18264         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
18265         * wcsmbs/test-wmemcmp.c: Likewise.
18266         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
18267         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
18269 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18271         * string/Makefile (strop-tests): Add memcmp.
18272         * string/test-wmemcmp.c: New file.
18273         * string/test-memcmp.c: Add wmemcmp support.
18275 2011-09-08  Roland McGrath  <roland@hack.frob.com>
18277         [BZ #13153]
18278         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
18279         2011-07-19 change.
18281         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
18282         garbage value in a __mach_port_mod_refs call in the cases of the
18283         task-self and thread-self ports.
18285 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18287         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
18289 2011-09-08  Andreas Schwab  <schwab@redhat.com>
18291         * elf/dl-load.c (lose): Check for non-null L.
18293 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18295         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
18297         * elf/dl-libc.c (dlerror_run): Pass back error code from
18298         dl_catch_error.
18300         [BZ #13123]
18301         * elf/dl-load.c (lose): Free l_origin if it is valid.
18303         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
18304         names.
18305         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
18306         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18307         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18308         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18309         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
18310         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
18312 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18314         * sysdeps/powerpc/fpu/e_hypot.c: New file.
18315         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
18316         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
18317         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
18318         * sysdeps/powerpc/fpu/k_cosf.c: New file.
18319         * sysdeps/powerpc/fpu/k_sinf.c: New file.
18320         * sysdeps/powerpc/fpu/s_cosf.c: New file.
18321         * sysdeps/powerpc/fpu/s_sinf.c: New file.
18322         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
18323         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
18325 2011-08-15  Alan Modra  <amodra@gmail.com>
18327         [BZ #13092]
18328         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
18329         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
18330         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
18331         ppc_mcount to static-only-routines.
18332         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
18333         __mcount_internal.
18334         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
18335         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
18337 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
18339         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
18340         for finite and infinity parameters.
18342 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
18344         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
18345         and add nop instructions for throughput optimization.
18346         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
18348 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
18350         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
18351         aligned copy for power7 with vector-scalar instructions.
18352         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
18354 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
18356         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
18357         AVX check.
18359 2011-09-07  Andreas Schwab  <schwab@redhat.com>
18361         [BZ #13144]
18362         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
18363         last change.
18365 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
18367         * sysdeps/unix/sysv/linux/x86_64/init-first.c
18368         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
18369         syscall wrapper around clock_gettime in __vdso_clock_gettime.
18370         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
18371         clock_gettime.
18373 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18375         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
18376         Forgot to demangle the pointer.
18378         * sysdeps/i386/sysdep.h: Define atom_text_section.
18379         * sysdeps/x86_64/sysdep.h: Likewise.
18380         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
18381         section with atom_text_section.
18382         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
18383         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
18384         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
18385         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
18386         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
18388         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
18389         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
18390         already be defined.  Change to take two parameters and don't assign
18391         result to variable.  Adjust all users.
18392         Define INTERNAL_GETTIME if not already defined.
18393         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
18394         call.
18395         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
18396         HAVE_CLOCK_GETTIME_VSYSCALL.
18397         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
18399         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
18400         gettimeofday vsyscall, just use time.
18402 2011-09-06  Andreas Schwab  <schwab@redhat.com>
18404         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
18405         <errno.h>.
18407 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
18409         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
18410         syscall on x86-64.
18411         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
18412         syscall.
18413         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
18414         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
18415         syscall if possible.
18417 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18419         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
18420         e_ident.  Don't pass to find_mapsXX.
18421         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
18423 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18425         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18426         strchr-sse2-no-bsf strrchr-sse2-no-bsf
18427         * sysdeps/x86_64/multiarch/strchr.S: Update.
18428         Check bit_slow_BSF bit.
18429         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
18430         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
18431         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
18433 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18435         [BZ #13134]
18436         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
18437         before glibc 2.15.
18438         (tryshell): Define.
18439         (__spawni): Change last parameter to be flag.  Test
18440         SPAWN_XFLAGS_USE_PATH flag to use path or not.
18441         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
18442         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
18443         * posix/spawni.c: Likewise.
18444         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
18445         * posix/spawnp.c: Likewise.  Change normal version to use
18446         SPAWN_XFLAGS_USE_PATH.
18447         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
18448         SPAWN_XFLAGS_TRY_SHELL.
18450         [BZ #13150]
18451         * posix/glob.h: Remove gcc 1.x support.
18453         [BZ #13068]
18454         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
18456 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18458         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18459         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
18460         strrchr-sse2-bsf
18461         * sysdeps/i386/i686/multiarch/strchr.S: New file.
18462         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
18463         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
18464         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
18465         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
18466         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
18468 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18470         * sysdeps/x86_64/wcscmp.S: New file.
18472         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
18473         wcscmp-c wcscmp-sse2
18474         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
18475         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
18476         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
18477         * wcsmbs/wcscmp.c: Allow renaming.
18479 2011-09-05  David S. Miller  <davem@davemloft.net>
18481         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
18482         stack slot, rather than the struct return pointer slot.
18483         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
18484         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
18485         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
18486         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
18488 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
18490         * po/ja.po: Update from translation team.
18492         [BZ #13144]
18493         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
18494         kernel in 64-bit binaries.
18496 2011-09-01  David S. Miller  <davem@davemloft.net>
18498         * elf/elf.h (HWCAP_SPARC_*): Move to..
18499         * sysdeps/sparc/sysdep.h: this new file and add new values.
18500         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
18501         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
18502         _DL_HWCAP_COUNT to 24.
18503         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
18504         entries.
18505         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
18506         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
18507         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
18508         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
18509         instead of magic constants.
18510         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18512 2011-08-31  David S. Miller  <davem@davemloft.net>
18514         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
18515         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
18516         Reimplement to do errno handling inline.
18517         (SYSCALL_ERROR_HANDLER): New macro.
18518         (__SYSCALL_STRING): Do not do errno handling in asm.
18519         (__CLONE_SYSCALL_STRING): Delete.
18520         (__INTERNAL_SYSCALL_STRING): Delete.
18521         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
18522         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
18523         (PSEUDO): Reimplement to do errno handling inline.
18524         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
18525         (SYSCALL_ERROR_HANDLER): New macro.
18526         (__SYSCALL_STRING): Do not do errno handling in asm.
18527         (__CLONE_SYSCALL_STRING): Delete.
18528         (__INTERNAL_SYSCALL_STRING): Delete.
18529         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
18530         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
18531         i386.
18532         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
18533         (inline_syscall*): Add 'err' argument.
18534         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
18535         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
18536         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
18537         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
18539         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
18540         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
18542 2011-08-30  Andreas Schwab  <schwab@redhat.com>
18544         * elf/rtld.c (dl_main): Relocate objects in dependency order.
18546 2011-08-29  Jiri Olsa <jolsa@redhat.com>
18548         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
18549         directive.
18551 2011-08-24  David S. Miller  <davem@davemloft.net>
18553         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
18555 2011-08-24  Andreas Schwab  <schwab@redhat.com>
18557         * elf/Makefile: Add rules to build and run unload8 test.
18558         * elf/unload8.c: New file.
18559         * elf/unload8mod1.c: New file.
18560         * elf/unload8mod1x.c: New file.
18561         * elf/unload8mod2.c: New file.
18562         * elf/unload8mod3.c: New file.
18564         * elf/dl-close.c (_dl_close_worker): Reset private search list if
18565         it wasn't used.
18567 2011-08-23  David S. Miller  <davem@davemloft.net>
18569         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
18570         subtract stack bias.
18571         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
18572         %sp not %fp in calculations.
18573         (_JMPBUF_UNWINDS_ADJ): Likewise.
18575         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
18576         (aio_suspend): Call it to force an exception region around the
18577         AIO_MISC_WAIT() invocation.
18579 2011-08-23  Andreas Schwab  <schwab@redhat.com>
18581         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
18582         backslash.
18584 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
18586         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
18587         protection macro.
18588         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
18589         and <dl-machine.h>.
18590         (Elf64_FuncDesc): Remove.
18592 2011-08-22  David S. Miller  <davem@davemloft.net>
18594         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
18595         sigaltstack check, add missing cfi directives.
18596         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
18597         missing cfi directives, and sigaltstack handling.
18599 2011-08-16  Andreas Schwab  <schwab@redhat.com>
18601         [BZ #11724]
18602         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
18603         object is seen twice.
18604         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18606         * elf/Makefile (distribute): Add tst-initorder2.c.
18607         (tests): Add tst-initorder2.
18608         (modules-names): Add tst-initorder2a tst-initorder2b
18609         tst-initorder2c tst-initorder2d.  Add rules to build them.
18610         ($(objpfx)tst-initorder2.out): New rule.
18611         * elf/tst-initorder2.c: New file.
18612         * elf/tst-initorder2.exp: New file.
18614 2011-08-22  Andreas Schwab  <schwab@redhat.com>
18616         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
18618         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
18619         dependencies back to end of function.
18621         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18622         $(elfobjdir)/ld.so.
18624 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
18626         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
18627         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
18628         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
18629         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
18630         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
18631         of __vdso_gettimeofday.
18632         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
18633         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
18634         attribute_hidden.
18635         (_libc_vdso_platform_setup): Remove initialization of
18636         __vdso_gettimeofday and __vdso_time.
18638 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18640         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
18641         and fgetc_unlocked.
18642         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
18643         getc_unlocked.
18645         * elf/dl-open.c (add_to_global): Report additions to the global scope
18646         for LD_DEBUG=scopes.
18647         (dl_open_worker): Also print scope of newly loaded dependencies.
18648         (_dl_show_scope): Indicate if there is no scope.
18650         [BZ #13114]
18651         * stdio-common/Makefile (tests): Add bug24.
18652         * stdio-common/bug24.c: New file.
18654 2011-08-19  Andreas Jaeger  <aj@suse.de>
18656         [BZ #13114]
18657         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
18658         non-existant file when using close-on-exec mode.
18660 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
18662         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
18663         the very first instruction.
18665         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
18666         the CFI state in the end.
18667         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
18668         inclusion of dl-trampoline.h.
18669         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
18671 2011-08-19  Andreas Schwab  <schwab@redhat.com>
18673         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
18674         expectations for long double.
18676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
18677         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
18679 2011-08-14  David S. Miller  <davem@davemloft.net>
18681         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
18682         artificual limit depends upon the system page size.
18684 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18686         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
18687         * resolv/Makefile: Define CFLAGS-libresolv.
18689 2011-08-17  Andreas Schwab  <schwab@redhat.com>
18691         * nss/makedb.c (compute_tables): Make variables used in nested
18692         function static.
18694 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
18696         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
18697         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
18698         if buffer was too small.
18700         * elf/pldd.c (main): Attach to all threads in the process.
18701         Rewrite /proc handling to use *at functions.
18703 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
18705         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
18706         specifies first scope to show.
18707         (dl_open_worker): Update callers.  Move printing scope of new
18708         object to before the relocation.
18709         * elf/rtld.c (dl_main): Update _dl_show_scope call.
18710         * sysdeps/generic/ldsodefs.h: Update declaration.
18712         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
18713         string for the scope number.
18715 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
18717         * nscd/servicescache.c (cache_addserv): Make sure written is always
18718         initialized.
18720 2011-08-14  Roland McGrath  <roland@hack.frob.com>
18722         * sysdeps/i386/i486/bits/atomic.h
18723         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
18724         statement expression, so as to suppress "set but not used" warning.
18725         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
18727         * string/strncat.c (STRNCAT): Use prototype definition.
18729         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
18730         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
18731         -Iprograms here.
18732         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
18733         (localedef-modules): Add localedef.
18734         (locale-modules): Add locale.
18736         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
18737         * elf/rtld.c (dl_main): Invert order of assignment in last change,
18738         to avoid a warning.
18740 2011-08-14  David S. Miller  <davem@davemloft.net>
18742         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
18743         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
18745 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
18747         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
18748         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
18749         * elf/rtld.c (dl_main): Set l_name of vDSO.
18750         Call _dl_show_scope when DL_DEBUG_SCOPES.
18751         (process_dl_debug): Recognize scopes flag and also set it for all.
18752         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
18753         Declare _dl_show_scope.
18755         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
18756         (do_dlopen): Pass caller_dlopen to dl_open.
18757         (__libc_dlopen_mode): Initialize caller_dlopen.
18759         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
18760         of libc.  Make tolower call locale-independent.  Optimize a bit by
18761         using isdigit instead of isalnum.
18762         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
18764 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
18766         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
18767         was a dependency or dynamically loaded.
18769 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
18771         * intl/l10nflist.c: Allow architecture-specific pop function.
18772         * sysdeps/x86_64/l10nflist.c: New file.
18774         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
18775         classification.
18777 2011-08-10  Andreas Schwab  <schwab@redhat.com>
18779         * include/dirent.h: Add libc_hidden_proto for scandirat and
18780         scandirat64.  Don't declare __scandirat64.
18781         * dirent/scandirat.c: Add libc_hidden_def.
18782         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
18783         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
18785 2011-08-10  David S. Miller  <davem@davemloft.net>
18787         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
18788         enum.
18789         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18790         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18791         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18793 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
18795         * Versions.def [libc]: Add GLIBC_2.15.
18796         * dirent/Makefile (routines): Add scandirat and scandirat64.
18797         * dirent/Versions [libc]: Export scandirat and scandirat64 for
18798         GLIBC_2.15.
18799         * dirent/dirent.h: Declare scandirat and scandirat64.
18800         * dirent/scandirat.c: New file.
18801         * dirent/scandirat64.c: New file.
18802         * sysdeps/wordsize-64/scandirat.c: New file.
18803         * sysdeps/wordsize-64/scandirat64.c: New file.
18804         * dirent/opendir.c: Define opendirat.
18805         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
18806         using scandirat.
18807         * dirent/scandir64.c: Adjust for scandir.c change.
18808         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
18809         __scandirat64, and __scandir_cancel_handler.
18810         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
18811         additional parameter and use openat instead of open (outside of ld.so).
18812         Add new __opendir as wrapper around __opendirat.
18813         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
18814         here without requiring old scandirat implementation.
18816 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
18818         * dirent/scandir.c (cancel_handler): Renamed to
18819         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
18820         defined.  Adjust users.
18821         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
18822         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
18824 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
18826         * string/test-string.h (IMPL): Use __STRING to expand name and then
18827         stringify it.
18829         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
18830         of cleanups.
18832 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18834         * string/Makefile: Update.
18835         (strop-tests): Append strncat.
18836         * string/test-wcscmp.c: New file.
18837         New comprehensive test for wcscmp.
18838         * string/test-strcmp.c: Update.
18839         (WIDE): New define.
18841 2011-07-22  Andreas Schwab  <schwab@redhat.com>
18843         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
18844         line.
18846 2011-07-26  Andreas Schwab  <schwab@redhat.com>
18848         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
18849         encoding to ACE if AI_IDN.
18851 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
18853         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
18854         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
18856 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18858         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
18859         Fix overflow bug in strncat.
18860         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
18862         * string/test-strncat.c: Update.
18863         Add new tests for checking overflow bugs.
18865 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
18867         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18868         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
18869         * sysdeps/i386/i686/multiarch/strcat.S: New file.
18870         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
18871         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
18872         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
18873         * sysdeps/i386/i686/multiarch/strncat.S: New file.
18874         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
18875         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
18877         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
18878         (USE_AS_STRCAT): Define.
18879         Add strcat and strncat support.
18880         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
18882 2011-07-25  Andreas Schwab  <schwab@redhat.com>
18884         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
18885         __n bigger than INT_MAX+1.
18886         (__strncmp_g): Likewise.
18888 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
18890         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
18891         * libio/stido.h: Likewise.
18893         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
18894         (AF_NFC): Define.
18895         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
18896         (AF_NFC): Define.
18898         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
18899         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
18900         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
18901         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
18902         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
18904         [BZ #13021]
18905         * scripts/test-installation.pl: Don't expect libnss_test1 to be
18906         installed.
18908         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
18909         typo.
18910         (_dl_x86_64_save_sse): Likewise.
18912 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
18914         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
18915         OSXSAVE.
18916         (_dl_x86_64_save_sse): Likewise.
18918         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
18920         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
18922 2011-07-21  Andreas Schwab  <schwab@redhat.com>
18924         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
18925         change.
18926         (_dl_x86_64_save_sse): Use correct AVX check.
18928 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18930         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
18931         bug in strncpy/strncat.
18932         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
18934 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
18936         * string/tester.c (test_strcat): Add tests for different alignments
18937         of source and destination.
18938         (test_strncat): Likewise.
18940 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18942         [BZ #12852]
18943         * posix/glob.c (glob): Check passed in values before using them in
18944         expressions to avoid some overflows.
18945         (glob_in_dir): Likewise.
18947         [BZ #13007]
18948         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
18949         check for AVX enablement so that we don't crash with old kernels and
18950         new hardware.
18951         * elf/tst-audit4.c: Add same checks here.
18952         * elf/tst-audit6.c: Likewise.
18954         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
18956 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
18958         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
18960 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
18962         * po/cs.po: Update from translation team.
18963         * po/bg.po: Likewise.
18965 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
18967         * misc/sys/cdefs.h: Add support for const attribute.
18968         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
18969         to gnu_dev_{major,minor,makedev} functions.
18971 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
18973         * intl/dcigettext.c (get_output_charset): Add missing bracket.
18975 2011-07-20  Andreas Schwab  <schwab@redhat.com>
18977         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
18978         strlen results.
18980 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18982         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
18983         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
18984         register in order to avoid conflicts with the soft frame pointer
18985         being held in r11 when necessary.
18986         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
18987         (INTERNAL_VSYSCALL_NCS): Likewise.
18989 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
18991         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
18992         * elf/dl-fini.c (_dl_fini): Adjust caller.
18993         * elf/dl-close.c (_dl_close_worker): Likewise.
18994         * sysdeps/generic/ldsodefs.h: Adjust declaration.
18996 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
18998         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
18999         "aux_cache->nlibs < 0".
19001         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
19002         in the reload-count case.
19004 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
19006         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19007         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
19008         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
19009         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
19010         * sysdeps/x86_64/multiarch/strcat.S: New file.
19011         * sysdeps/x86_64/multiarch/strncat.S: New file.
19012         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
19013         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
19014         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
19015         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
19016         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
19017         (USE_AS_STRCAT): Define.
19018         Add strcat and strncat support.
19019         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
19020         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
19021         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
19022         * string/strncat.c: Update.
19023         (USE_AS_STRNCAT): Define.
19024         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19025         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
19026         and i7.
19027         * sysdeps/x86_64/multiarch/init-arch.h
19028         (bit_Prefer_PMINUB_for_stringop): New.
19029         (index_Prefer_PMINUB_for_stringop): Likewise.
19030         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
19031         bit_Prefer_PMINUB_for_stringop.
19033 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19035         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
19036         buffer64.
19037         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
19038         of casting of buffer.
19039         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
19040         buffer32 and buffer64.
19041         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
19042         writes instead of casting of buffer.
19043         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
19044         buffer32.
19045         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
19046         casting of buffer.
19048 2011-07-19  Andreas Schwab  <schwab@redhat.com>
19050         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
19052 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
19054         * nscd/nscd.c (termination_handler): Don't do anything for a database
19055         if it has not yet been initialized.
19057 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19059         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19061 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
19063         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
19065 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
19067         * po/nl.po: Update from translation team.
19068         * po/sv.po: Likewise.
19070 2011-07-16  Roland McGrath  <roland@hack.frob.com>
19072         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
19073         now disallowed by GCC.
19075         * configure.in (use-default-link): Default to yes if a test -shared
19076         link meets our qualifications.
19077         * configure: Regenerated.
19079         * config.make.in (output-format): New variable.
19080         * configure.in: Check for ld --print-output-format support.
19081         * configure: Regenerated.
19082         * Makerules ($(common-objpfx)format.lds)
19083         [$(output-format) != unknown]: Just use $(output-format),
19084         instead of the linker-script munging.
19086 2011-07-14  Roland McGrath  <roland@hack.frob.com>
19088         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
19089         of $(common-objpfx)shlib.lds.
19090         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
19092         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
19093         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
19095         * configure.in (-z relro check): Adjust test code to add a large
19096         writable data section after it.
19097         * configure: Regenerated.
19099 2011-07-11  Roland McGrath  <roland@hack.frob.com>
19101         * configure.in (-z relro check): Fix test code to make the variable
19102         truly const.
19103         * configure: Regenerated.
19105 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
19107         * nscd/nscd.h (struct traced_file): Define.
19108         (struct database_dyn): Remove inotify_descr, reset_res, and filename
19109         elements.  Add traced_files.
19110         (inotify_fd): Declare.
19111         (register_traced_file): Declare.
19112         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
19113         (inotify_fd): Export.
19114         (resolv_conf_descr): Remove.
19115         (nscd_init): Move inotify descriptor creation to main.
19116         Don't register files for notification here.
19117         (register_traced_file): New function.
19118         (invalidate_cache): Don't use reset_res to determine whether to call
19119         res_init, go through the list of registered files.
19120         (main_loop_poll): The inotify descriptors are now stored in the
19121         structures for the traced files.
19122         (main_loop_epoll): Likewise
19123         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
19124         to __nss_disable_nscd.
19125         * nscd/cache.c (prune_cache): There is no single inotify descriptor
19126         for a database anymore.  Check the records for all the registered
19127         files instead.
19128         * nss/Makefile (libnss_files-routines): Add files-init.
19129         (libnss_db-routines): Add db-init.
19130         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
19131         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
19132         * nss/nss_db/db-init.c: New file.
19133         * nss/nss_files/files-init.c: New file.
19134         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
19135         __nss_lookup_function.
19136         (__nss_lookup_function): Call nss_load_library.
19137         (nss_load_all_libraries): New function.
19138         (__nss_disable_nscd): Take parameter with callback function for files
19139         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
19140         used for the cached services.
19141         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
19142         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
19143         options for features to all the files in nscd.
19145         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
19147 2011-07-10  Roland McGrath  <roland@hack.frob.com>
19149         * csu/elf-init.c (__libc_csu_init): Comment typo.
19151 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
19153         * po/pl.po: Update from translation team.
19154         * po/ja.po: Likewise.
19155         * po/ru.po: Likewise.
19156         * po/ko.po: Likewise.
19157         * po/fr.po: Likewise.
19159 2011-07-09  Roland McGrath  <roland@hack.frob.com>
19161         * configure.in (.ctors/.dtors header and trailer check):
19162         Use an empirical test on a built program.
19163         * configure: Regenerated.
19165         * configure.in (-z relro check): Use an empirical test on a built DSO.
19166         Detect, but do not require, on ia64.
19167         * configure: Regenerated.
19169         * configure.in (READELF): Find it with AC_CHECK_TOOL.
19170         Update tests that use readelf to use $READELF instead.
19171         * configure: Regenerated.
19173 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
19175         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
19176         if the result is not used.
19178 2011-07-05  Andreas Jaeger  <aj@suse.de>
19180         [BZ#9696]
19181         * stdlib/tst-strtod.c: Add testcase.
19183 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
19185         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
19186         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
19187         The latter has a higher limit.  Take additional parameter to pass to
19188         the new function.
19189         (__pathconf): Pass file to __statfs_link_max.
19190         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
19191         __statfs_link_max.
19192         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
19193         __statfs_link_max.
19195         [BZ #12868]
19196         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
19197         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
19198         Handle Lustre.
19199         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
19200         (__statfs_filesize_max): Likewise.
19201         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
19203 2011-07-05  Andreas Jaeger  <aj@suse.de>
19205         * resolv/res_comp.c (dn_skipname): Remove unused variable.
19207 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
19209         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
19210         `status' variable.
19211         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
19212         Likewise.
19214 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
19216         * Makefile (strop-tests): Add strncat.
19217         * string/test-strncat.c: New file.
19219 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
19221         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
19223 2011-06-21  Andreas Jaeger  <aj@suse.de>
19225         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
19226         Copy rule from iconvdata/Makefile.
19228 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19230         [BZ #12922]
19231         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
19232         but no long options are defined, just return 'W'.
19234 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
19236         [BZ #9696]
19237         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
19239 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
19241         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
19242         netgroups to read.
19243         (innetgr): Likewise.
19245 2011-07-05  Roland McGrath  <roland@hack.frob.com>
19247         * config.make.in (install_root): Default to $(DESTDIR).
19249 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
19251         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
19253 2011-07-02  Roland McGrath  <roland@hack.frob.com>
19255         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
19257         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
19258         containing directory rather than embedding absolute directory names.
19260         * scripts/check-local-headers.sh: Rewritten using awk.
19261         Match by word, not by line.  Print error messages for matches.
19262         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
19264         * Makerules [shlib-lds-flags empty]:
19265         ($(common-objpfx)libc_pic.opts): New target.
19266         ($(common-objpfx)libc_pic.os.clean): New target.
19267         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
19269         * config.make.in (OBJCOPY): New variable.
19270         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
19271         * configure: Regenerated.
19273         * config.make.in (use-default-link): New variable.
19274         * configure.in (use_default_link): Grok --with-default-link to set it.
19275         * configure: Regenerated.
19276         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
19277         (shlib-lds, shlib-lds-flags): Define to empty.
19279         * Makerules (shlib-lds): New variable.
19280         (shlib-lds-flags): New variable.
19281         (build-shlib, build-moduile, build-module-asneeded): Use it.
19282         ($(common-objpfx)libc.so): Use $(shlib-lds).
19283         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
19284         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
19286         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
19287         DT_FLAGS/DT_FLAGS_1 with zero flags.
19289         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
19290         linker script munging.
19292 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
19294         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
19295         as 128-bit value.
19296         * crypt/sha512.c (sha512_process_block): Perform total addition using
19297         128-bit if possible.
19298         (__sha512_finish_ctx): Likewise.
19299         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
19300         as 64-bit value.
19301         * crypt/sha256.c (SWAP64): Define.
19302         (sha256_process_block): Perform total addition using 64-bit if
19303         possible.
19304         (__sha256_finish_ctx): Likewise.
19306 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
19308         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
19309         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19310         * nscd/hstcache.c (cache_addhst): Likewise.
19311         * nscd/grpcache.c (cache_addgr): Likewise.
19312         * nscd/aicache.c (addhstaiX): Likewise
19313         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
19315 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
19317         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
19318         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19319         * nscd/hstcache.c (cache_addhst): Likewise.
19320         * nscd/grpcache.c (cache_addgr): Likewise.
19321         * nscd/aicache.c (addhstaiX): Likewise
19323 2011-07-01  Andreas Schwab  <schwab@redhat.com>
19325         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
19326         domain only when needed.
19328 2011-06-30  Andreas Schwab  <schwab@redhat.com>
19330         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
19331         is always restored.
19333 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
19335         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
19336         are re-adding the entry.
19337         * nscd/servicescache.c (cache_addserv): Likewise.
19339 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
19341         * sysdeps/generic/dl-irel.h: fix protection against multiple
19342         inclusions.
19343         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
19345 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
19347         [BZ #12935]
19348         * malloc/memusage.sh: Fix quoting in message.
19349         * debug/xtrace.sh: Likewise.
19351         * configure.in: Remove support for --experimental-malloc option, make
19352         it the default.
19353         * config.make.in: Likewise.
19354         * malloc/Makefile: Likewise.
19356 2011-06-27  Andreas Schwab  <schwab@redhat.com>
19358         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
19359         two-byte characters.
19361 2011-06-27  Roland McGrath  <roland@hack.frob.com>
19363         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
19364         AC_CACHE_CHECK invocation.
19365         * configure: Regenerated.
19367         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
19369 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
19371         [BZ #12350]
19372         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
19373         bit from old_res_options.
19375         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
19377         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
19378         value type for setfct.
19380 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
19382         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19383         __gettimeofday instead of gettimeofday.
19385 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
19387         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
19389 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
19391         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
19393         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
19394         info.
19396 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19398         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19399         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19400         strcpy-sse2-unaligned strncpy-sse2-unaligned
19401         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
19402         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
19403         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
19404         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
19405         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
19406         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
19407         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
19408         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
19409         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
19410         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
19411         (STRCPY): Support SSE2 and SSSE3 versions.
19413 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
19415         [BZ #12874]
19416         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
19417         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
19418         kernels which artificially limit size of requests.
19420 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
19422         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
19423         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
19424         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
19425         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
19426         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
19427         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
19428         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
19429         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
19430         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
19431         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
19432         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
19433         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
19434         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
19435         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
19436         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
19437         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19438         Enable unaligned load optimization for Intel Core i3, i5 and i7
19439         processors.
19440         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
19441         Define.
19442         (index_Fast_Unaligned_Load): Define.
19443         (HAS_FAST_UNALIGNED_LOAD): Define.
19445 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
19447         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
19449 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19451         [BZ #12907]
19452         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
19453         until it is clear that the information is realy needed.
19454         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
19456 2011-06-22  Andreas Schwab  <schwab@redhat.com>
19458         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
19460 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
19462         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
19463         /sys/devices/system/cpu/online if it is usable.
19465         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
19466         reading the information from the /proc filesystem to once a second.
19468 2011-06-21  Andreas Jaeger  <aj@suse.de>
19470         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
19471         NULL after inclusion of kernel headers.
19473 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
19475         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
19476         calls to internal_setent.
19478         [BZ #12885]
19479         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
19480         addresses using gethostbyname4_r ignore IPv4 addresses.
19482         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
19483         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
19485         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
19487 2011-06-20  David S. Miller  <davem@davemloft.net>
19489         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
19490         inclusions.
19491         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
19493         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
19494         (elf_irel): Use it.
19495         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
19496         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
19497         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
19498         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
19499         * sysdeps/x86_64/dl-irel.h: Likewise.
19501         * elf/dl-runtime.c: Use elf_ifunc_invoke.
19502         * elf/dl-sym.c: Likewise.
19504 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19506         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
19507         need to dereference resplen2.
19509 2011-06-14  Andreas Schwab  <schwab@redhat.com>
19511         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
19513 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
19515         * Makeconfig: Define vardbdir and inst_vardbdir.
19516         * nss/Makefile: Add rules to install db-Makefile.
19518         * nss/nss_db/db-XXX.c: Cleanup.
19520         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
19521         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
19522         GLIBC_PRIVATE.
19523         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
19524         * nss/makedb.c: Implement -g option to specify that value strings
19525         are generated and should not be added to table iterated over for
19526         get*ent calls.
19527         * nss/nss_db/db-initgroups.c: New file.
19529         * nss/getent.c: Add support for initgroups lookups through getgrouplist
19530         interface.
19532         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
19533         (internal_getgrouplist): Adjust to name change.
19534         Update use_initgroups_entry if this is not the first call.
19535         * nss/databases.def: Add initgroups entry.
19537         * nss/makedb.c (compute_tables): Check result of multiple hash table
19538         sizes to minimize maximum chain length.
19540 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
19542         * Versions.def: Add entry for libnss_db.
19543         * shlib-versions: Likewise.
19544         * nss/Makefile: Add rules to build libnss_db.
19545         * nss/Versions: Add libnss_db information.  Organize libnss_files
19546         entries better.
19547         * nss/db-Makefile: Add gshadow support.  Change rules for the new
19548         makedb progra.  Some minor improvements to generate smaller files.
19549         * nss/nss_db/nss_db.h: Move NSS database header data structures to
19550         here from...
19551         * nss/makedb.c: ...here.
19552         Improve database format to be smaller and require less memory at
19553         runtime.
19554         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
19555         db anymore.
19556         * nss/nss_db/db-netgrp.c: Likewise.
19557         * nss/nss_db/db-open.c: Likewise.
19558         * nss/nss_files/flies-XXX.x: Adjust comments.
19559         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
19560         * nss/nss_files/files-grp.c: Likewise.
19561         * nss/nss_files/files-hosts.c: Likewise.
19562         * nss/nss_files/files-network.c: Likewise.
19563         * nss/nss_files/files-proto.c: Likewise.
19564         * nss/nss_files/files-pwd.c: Likewise.
19565         * nss/nss_files/files-rpc.c: Likewise.
19566         * nss/nss_files/files-service.c: Likewise.
19567         * nss/nss_files/files-sgrp.c: Likewise.
19568         * nss/nss_files/files-spwd.c: Likewise.
19569         * nss/nss_db/db-alias.c: Removed.
19570         * nss/nss_db/dummy-db.h: Removed.
19572 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
19574         * nss/makedb.c: Rewritten to not use database library.
19575         * nss/Makefile: Update to build new makedb program.
19577 2011-06-14  Andreas Jaeger  <aj@suse.de>
19579         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
19580         memset declaration.
19582 2011-06-10  Andreas Schwab  <schwab@redhat.com>
19584         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
19585         tmpbuf.
19587 2011-06-10  Roland McGrath  <roland@hack.frob.com>
19589         * Makerules (shlib.lds): Fail if the linker script comes out empty.
19590         * elf/Makefile ($(objpfx)ld.so): Likewise.
19592         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
19593         Don't list ld.so twice in dependencies.
19595         * posix/bug-regex31.c: Include <stdlib.h>.
19597         * nscd/hstcache.c (cache_addhst): Remove unused variable.
19599         * nis/nss_compat/compat-spwd.c
19600         (getspent_next_nss_netgr): Remove unused variable.
19601         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
19603         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
19604         nonmembers" output to use the right array.
19606         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
19608         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
19610         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
19611         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
19612         * catgets/gencat.c (read_input_file): Likewise.
19613         * locale/programs/locarchive.c (enlarge_archive): Likewise.
19615         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
19616         variable definition inside #if's controlling its use.
19618         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
19620         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
19622         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
19624         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
19625         unreachable code.
19627         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
19629         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
19630         * configure: Regenerated.
19632         * Makerules: Revert last change.
19633         * elf/Makefile: Likewise.
19635 2011-06-09  Roland McGrath  <roland@hack.frob.com>
19637         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
19638         * elf/Makefile ($(objpfx)librtld.os): Likewise.
19639         (reloc-link): Likewise.
19641 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
19643         * elf/Makefile: Add rules to build pldd.
19644         * elf/pldd.c: New file.
19645         * elf/pldd-xx.c: New file.
19647 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
19649         * version.h: Update for 2.15 development version.
19651 2011-06-07  David S. Miller  <davem@davemloft.net>
19653         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
19654         ifuncs.
19655         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
19656         elf_machine_lazy_rel): Likewise.
19657         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
19658         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
19659         elf_machine_lazy_rel): Likewise.
19660         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
19661         dl_hwcap via passed in argument.
19662         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
19663         Likewise.
19665 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19667         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
19669 2011-06-06  Roland McGrath  <roland@hack.frob.com>
19671         [BZ #12849]
19672         * manual/fdl-1.1.texi: New file, verbatim from:
19673         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
19674         * manual/lgpl-2.1.texi: New file, verbatim from:
19675         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
19676         * manual/Makefile (licenses): New variable, list those new file names.
19677         (texis): Use it.
19678         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
19680         * manual/fdl.texi: File removed.
19681         * manual/lesser.texi: File removed.
19682         * manual/libc.texinfo (Copying, Documentation License):
19683         Use new @include file names, put @appendix directive before @include.
19685 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
19687         [BZ #12841]
19688         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
19689         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
19690         (mq_open): Add __NTH.
19692 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
19694         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19695         Assume Intel Core i3/i5/i7 processor if AVX is available.
19697 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19699         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
19700         typo.
19702 2011-05-31  Andreas Schwab  <schwab@redhat.com>
19704         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
19705         memory.  Use alloca_account.  Fix memory leak when retrying.
19707 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
19709         * version.h (RELEASE): Bump for 2.14 release.
19710         * include/features.h (__GLIBC_MINOR__): Bump to 14.
19712         * config.make.in (RANLIB): Remove entry.
19714 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
19716         * po/Makefile (po-sed-cmd): Add ksh to extensions.
19717         (libc.pot): Work around missing support for .ksh extension in xgettext.
19719         [BZ #12684]
19720         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
19721         if both request failed.
19722         (send_dg): In case of server errors clear resplen or *resplen2.
19724         [BZ #12454]
19725         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
19726         when there are multiple maps.
19727         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
19728         (_dl_fini): Remove test here.
19730         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
19732 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
19734         [BZ #12350]
19735         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
19736         bit from old_res_options.
19737         (gaih_inet): Likewise.
19739         [BZ #11099]
19740         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
19741         as signed.
19743         * resolv/res_init.c (res_setoptions): Make the code more compact.
19745         [BZ #11558]
19746         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
19747         set RES_USEVC.
19749         [BZ #11634]
19750         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
19752         * malloc/malloc.h: Mark malloc hook variables as deprecated.
19754         [BZ #11781]
19755         * malloc/malloc.h: Declare malloc hook variables as volatile.
19757         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
19758         in last patch.
19760         [BZ #11799]
19761         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
19762         raise in the comment.
19763         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
19764         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
19765         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
19767 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
19769         [BZ #12811]
19770         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
19771         grow the buffers more if it already has to be sufficient.
19772         (build_wcs_upper_buffer): Likewise.
19773         * posix/regexec.c (check_matching): Likewise.
19774         (clean_state_log_if_needed): Likewise.
19775         (extend_buffers): Don't enlarge buffers beyond size of the input
19776         buffer.
19777         Patches mostly by Emil Wojak <emil@wojak.eu>.
19778         * posix/bug-regex32.c: New file.
19779         * posix/Makefile (tests): Add bug-regex32.
19781         * locale/findlocale.c (_nl_find_locale): Return right away if
19782         _nl_explode_name failed.
19783         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
19785         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
19787         * debug/xtrace.sh: Unify messages.
19788         * malloc/memusage.sh: Likewise.
19790         [BZ #12813]
19791         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
19792         time symbol from vDSO.  Substitute with vsyscall if not available.
19793         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
19794         __vdso_time.
19796         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
19797         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
19798         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
19799         Add sendmmsg and internal_sendmmsg.
19800         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
19801         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
19802         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
19804         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
19805         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
19806         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
19808 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
19810         [BZ #12813]
19811         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
19812         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
19813         available.
19814         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
19815         __vdso_getcpu.
19817         [BZ #12814]
19818         * iconvdata/Makefile (tests): Add bug-iconv9.
19819         * iconvdata/bug-iconv9.c: New file.
19821 2011-05-27  Andreas Schwab  <schwab@redhat.com>
19823         [BZ #12814]
19824         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
19826 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
19828         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19829         (struct user_regs_struct): Change intcs field back to cs.
19831 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
19833         * po/ja.po: Update from translation team.
19835 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
19837         [BZ #12795]
19838         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
19839         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
19841 2011-05-20  Andreas Schwab  <schwab@redhat.com>
19843         * stdlib/longlong.h: Update from GCC.
19845 2011-05-23  Andreas Schwab  <schwab@redhat.com>
19847         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
19848         parameter name.
19849         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
19850         Add parameter name.
19851         (__sysconf): Pass it down.
19853 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
19855         [BZ #12671]
19856         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
19857         some situations.
19858         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
19859         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
19860         add in in __libc_use_alloca calls.  Adjust callers.
19861         (glob): Use malloc in some situations.
19863         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
19864         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
19865         pltexit.
19867 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
19869         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
19870         and CLOCK_BOOTTIME_ALARM.
19872         [BZ #12782]
19873         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
19874         is returned.
19876         * string/_strerror.c (__strerror_r): Print negative errors as signed
19877         numbers.
19879         [BZ #12777]
19880         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
19881         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
19882         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
19884         * configure.in: Fix typo in redirection and correct removal of test
19885         files in two cases.
19887         [BZ #12788]
19888         * locale/setlocale.c (new_composite_name): Fix test to check for
19889         identical name of all categories.
19891         [BZ #12792]
19892         * libio/filedoalloc.c (local_isatty): New function.
19893         (_IO_file_doallocate): Use local_isatty.
19894         * stdio-common/perror.c (perror): In case a new stream is used
19895         forward the stream error.
19896         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
19897         error flag.
19899 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
19901         [BZ #11869]
19902         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
19903         alloca.
19904         * include/alloca.h (extend_alloca_account): Define.
19906         [BZ #11857]
19907         * posix/regex.h: Fix comments with documentation of user-accessible
19908         fields after compilation and describe correct free'ing of pattern
19909         after re_compile_pattern.
19910         Patch by Reuben Thomas <rrt@sc3d.org>.
19912 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
19914         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
19915         and -mno-altivec to prevent the compiler from using Altivec and/or
19916         VSX instructions when the corresponding registers are not available.
19918 2011-05-19  Andreas Schwab  <schwab@redhat.com>
19920         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
19922 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
19924         * libio/freopen.c (freopen): Use __dup2, not dup2.
19925         * libio/freopen64.c (freopen64): Likewise.
19927 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
19929         [BZ #12775]
19930         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
19931         * math/Makefile (tests): Add test-powl.
19932         (CFLAGS-test-powl.c): Define.
19933         * math/test-powl.c: New file.
19935 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
19937         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
19939 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
19941         [BZ #11837]
19942         * iconvdata/gb18030.c: Update to GB18020-2005.
19944 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
19946         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
19947         RE_SYNTAX_POSIX_AWK): Update to match recent development.
19948         Patch by Aharon Robbins <arnold@skeeve.com>.
19950         [BZ #11892]
19951         * stdlib/putenv.c (putenv): Don't always create copy of the variable
19952         on the stack.
19954         [BZ #11895]
19955         * misc/pselect.c (__pselect): Handle timeout value errors hidden
19956         through underflows.
19958         [BZ #12766]
19959         * misc/error.c (error_at_line): Ensure file_name and old_file_name
19960         point to strings before performing equality test for error_one_per_line
19961         mode.
19963         [BZ #11697]
19964         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
19966         [BZ #11820]
19967         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
19968         (struct user_fpregs_struct): Avoid __uint*_t types.
19970         [BZ #6420]
19971         * malloc/mtrace.c (tr_where): Add additional parameter to point to
19972         symbol info.  Use it instead of calling _dl_addr locally.
19973         (lock_and_info): New function.
19974         (tr_freehook): Call lock_and_info and pass symbol info as additional
19975         parameter to tr_where.
19976         (tr_mallochook): Likewise.
19977         (tr_reallochook): Likewise.
19978         (tr_memalignhook): Likewise.
19980         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
19981         used and couldn't be at all thread-safe.
19983 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
19985         * libio/freopen.c (freopen): Don't close old file descriptor
19986         before the new one is opened.  Instead dup the new file descriptor
19987         to the old one after the new stream is created.
19988         * libio/freopen64.c (freopen64): Likewise.
19989         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
19990         * libio/fileops.c (_IO_new_file_close_it): Handle new
19991         _IO_FLAGS2_NOCLOSE flag.
19992         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
19993         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
19994         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
19995         _IO_FLAGS2_NOCLOSE flag.
19996         * include/unistd.h: Add hidden_proto for dup3.
19997         Define __have_dup3.
19998         * io/dup3.c: Define hidden symbol.
19999         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
20001         [BZ #7101]
20002         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
20003         when an incomplete long option is used.
20004         * posix/tst-getopt_long1.c: New file.
20005         * posix/Makefile (tests): Add tst-getopt_long1.
20007         [BZ #10138]
20008         * scripts/config.guess: Update from autoconf-2.68.
20009         * scripts/config.sub: Likewise.
20011         [BZ #10157]
20012         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
20013         tests into ...
20014         (has_cpuclock): ...this.  New function.
20015         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
20016         macro here based on has_cpuclock code.
20018         [BZ #10149]
20019         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20020         First byte (not low byte) is now always NUL.
20021         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
20023         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
20024         Use non-cancelable interfaces.
20026         [BZ #9809]
20027         * locale/iso-639.def: Add entry for Sorani.
20029         [BZ #11901]
20030         * include/stdlib.h: Move include protection to the right place.
20031         Define abort_msg_s.  Declare __abort_msg with it.
20032         * stdlib/abort.c (__abort_msg): Adjust type.
20033         * assert/assert.c (__assert_fail_base): New function.  Majority
20034         of code from __assert_fail.  Allocate memory for __abort_msg with
20035         mmap.
20036         (__assert_fail): Now call __assert_fail_base.
20037         * assert/assert-perr.c: Remove bulk of implementation.  Use
20038         __assert_fail_base.
20039         * include/assert.hL Declare __assert_fail_base.
20040         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
20041         mmap.
20042         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
20044 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
20046         [BZ #11952]
20047         [BZ #12453]
20048         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
20049         until all modules are registered in the DTV.
20050         * elf/Makefile: Add rules to build and run tst-tls19.
20051         * elf/tst-tls19.c: New file.
20052         * elf/tst-tls19mod1.c: New file.
20053         * elf/tst-tls19mod2.c: New file.
20054         * elf/tst-tls19mod3.c: New file.
20055         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
20057         [BZ #12083]
20058         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
20059         correctly.
20061         [BZ #12601]
20062         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
20063         two-byte sequence errors.
20064         * iconvdata/Makefile (tests): Add bug-iconv8.
20065         * iconvdata/bug-iconv8.c: New file.
20067         [BZ #12626]
20068         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
20069         buf2 definition.
20071         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
20073         [BZ #12432]
20074         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
20075         (dummy_getcfa): New function.
20076         (init): Get _Unwind_GetCFA address, use dummy if not found.
20077         (backtrace_helper): In recursion check, also check whether CFA changes.
20078         (__backtrace): Completely initialize arg.
20080         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
20081         storing incomplete byte sequence in state object.  Avoid testing for
20082         guaranteed too small input if we know there is enough data available.
20084 2011-05-11  Andreas Schwab  <schwab@redhat.com>
20086         * Makeconfig (+link-pie): Indent.
20087         * Rules (binaries-pie): Define if $(have-fpie) and
20088         $(build-shared).
20089         (binaries-shared): Also filter out $(binaries-pie).
20090         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
20091         * nscd/Makefile (others-pie): Add nscd.
20092         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
20093         ($(objpfx)nscd): Remove command override.
20094         * login/Makefile (others-pie): Add pt_chown.
20095         ($(objpfx)pt_chown): Remove command override.
20096         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
20097         remove command overrides.
20099 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
20101         * libio/tst_putwc.c: Fix error messages.
20103         [BZ #12724]
20104         * libio/fileops.c (_IO_new_file_close_it): Always flush when
20105         currently writing and seek to current position when not.
20106         * libio/Makefile (tests): Add bug-fclose1.
20107         * libio/bug-fclose1.c: New file.
20109 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
20111         [BZ #12511]
20112         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
20113         don't set DF_1_NODELETE here.
20114         (do_lookup_x): When entering new entry test for copy relocation
20115         and if necessary set DF_1_NODELETE flag.
20116         * elf/tst-unique4.cc: New file.
20117         * elf/tst-unique4.h: New file.
20118         * elf/tst-unique4lib.cc: New file.
20119         * elf/Makefile: Add rules to build and run tst-unique4.
20120         Patch by Piotr Bury <pbury@goahead.com>.
20122 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20124         [BZ #12052]
20125         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
20127         [BZ #12625]
20128         * misc/mntent_r.c (addmntent): Flush the stream after the output
20130         [BZ #12393]
20131         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
20132         (is_trusted_path_normalize): Skip initial colon.  Append slash
20133         to empty buffer.  Duplicate is_trusted_path code but allow
20134         constructed patch to be prefix.
20135         (is_dst): Allow $ORIGIN followed by /.
20136         (_dl_dst_substitute): Correct clearing of check_for_trusted.
20137         Correct testing of result of is_trusted_path_normalize
20138         (decompose_rpath): Fix warning.
20140 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
20142         [BZ #11257]
20143         * grp/initgroups.c (internal_getgrouplist): When we found the service
20144         list through the initgroups entry in nsswitch.conf do not always
20145         continue on a successful lookup.  Don't always use the
20146         __nss_group_database value if it is set.
20147         * nss/nsswitch.conf (initgroups): Change action for successful db
20148         lookup to continue for compatibility.
20150 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
20152         [BZ #11532]
20153         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
20154         and CP774 modules.
20155         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
20156         and CP774 modules.
20157         * iconvdata/tst-tables.sh: Likewise.
20158         * iconvdata/cp770.c: New file.
20159         * iconvdata/cp771.c: New file.
20160         * iconvdata/cp772.c: New file.
20161         * iconvdata/cp773.c: New file.
20162         * iconvdata/cp774.c: New file.
20163         * iconvdata/testdata/CP770: New file.
20164         * iconvdata/testdata/CP770..UTF8: New file.
20165         * iconvdata/testdata/CP771: New file.
20166         * iconvdata/testdata/CP771..UTF8: New file.
20167         * iconvdata/testdata/CP772: New file.
20168         * iconvdata/testdata/CP772..UTF8: New file.
20169         * iconvdata/testdata/CP773: New file.
20170         * iconvdata/testdata/CP773..UTF8: New file.
20171         * iconvdata/testdata/CP774: New file.
20172         * iconvdata/testdata/CP774..UTF8: New file.
20174         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
20175         END CHARMAP line.
20176         * iconvdata/gen-8bit-gap.sh: Likewise.
20177         * iconvdata/gen-8bit.sh: Likewise.
20179         * locale/iso-639.def: Add ary entry.
20181         [BZ #11258]
20182         * locale/C-translit.h.in: Add U20A1 transliteration.
20184         [BZ #12178]
20185         * locale/iso-639.def: Add wae entry.
20186         Patch by Kevin Bortis <bortis@translate-wae.ch>.
20188         [BZ #12545]
20189         * locale/programs/localedef.c (construct_output_path): Use ssize_t
20190         for n.
20192         [BZ #12711]
20193         * locale/C-translit.h.in: Add entry for U20B9.
20194         Patch by pravin.d.s@gmail.com.
20196 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
20198         [BZ #12713]
20199         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
20200         ENAMETOOLONG use generic getcwd.
20201         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
20202         in rtld.  Use *stat64.
20203         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
20204         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
20205         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
20206         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
20207         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
20208         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
20209         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
20210         __fstatat64 macros.
20211         * include/dirent.h: Add libc_hidden_proto for rewinddir.
20212         * dirent/rewinddir.c: Add libc_hidden_def.
20213         * sysdeps/mach/hurd/rewinddir.c: Likewise.
20214         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
20216         * include/dirent.h (__alloc_dir): Add flags parameter.
20217         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
20218         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
20219         __alloc_dir.
20220         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
20221         from fdopendir if O_CLOEXEC is already set.
20223 2011-03-15  Alan Modra  <amodra@gmail.com>
20225         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
20226         l_tls_firstbyte_offset non-zero.  Save padding offset in
20227         l_tls_firstbyte_offset for later use.
20228         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
20229         freeing static tls block.
20231 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
20233         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
20234         where #ifdef was intended.  The intent is to prevent ARG_MAX from
20235         being defined by the kernel headers.
20237 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
20239         [BZ #12734]
20240         * resolv/resolv.h: Define RES_NOTLDQUERY.
20241         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
20242         no-tld-query and set RES_NOTLDQUERY.
20243         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
20244         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
20245         modern BIND to search name as TLD unless forbidden.
20247 2011-05-07  Petr Baudis  <pasky@suse.cz>
20248             Ulrich Drepper  <drepper@gmail.com>
20250         [BZ #12393]
20251         * elf/dl-load.c (fillin_rpath): Move trusted path check...
20252         (is_trusted_path): ...to here.
20253         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
20254         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
20255         using is_trusted_path_normalize() in setuid scripts.
20257 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20259         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
20260         __BEGIN/__END_DECLS.
20262 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
20264         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
20265         NSS_STATUS_NOTFOUND if no record was found.
20267 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20269         * sunrpc/Makefile (headers): Add rpc/netdb.h.
20270         (headers-not-in-tirpc): Remove rpc/netdb.h
20271         * resolv/netdb.h: Revert last change.
20273 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
20275         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
20276         circular dependency between libgcc.a and libc.a.
20278 2011-05-05  Andreas Schwab  <schwab@redhat.com>
20280         * resolv/netdb.h: Don't include <rpc/netdb.h>.
20281         * nis/Makefile: Don't install rpcsvc/*.
20282         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
20283         instead of <rpc/types.h>.
20284         (MAXHOSTNAMELEN): Define.
20286 2011-05-03  Andreas Schwab  <schwab@redhat.com>
20288         * elf/ldconfig.c (add_dir): Don't crash on empty path.
20290 2011-04-28  Maciej Babinski  <mbabinski@google.com>
20292         [BZ #12714]
20293         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
20294         gethostbyname4_r when IPv6 results are possible.
20296 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
20298         [BZ #12723]
20299         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
20300         _PC_PIPE_BUF handling.
20302 2011-04-30  Bruno Haible  <bruno@clisp.org>
20304         [BZ #12717]
20305         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
20306         * resolv/netdb.h (getnameinfo): Change type of flags parameter
20307         to 'int'.
20308         * inet/getnameinfo.c (getnameinfo): Likewise.
20310 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
20312         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
20313         to groups setting in database lookup.
20314         * nss/nsswitch.conf: Add initgroups entry.
20316 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
20318         [BZ #12685]
20319         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
20320         mode string.
20321         Patch by Eric Blake <eblake@redhat.com>.
20323 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
20325         * sunrpc/Makefile (need-export-routines): Add svc_run.
20326         (routines): Remove svc_run.
20327         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
20328         * sunrpc/clnt_perr.c (clnt_perrno): Export.
20329         * sunrpc/svc_run.c (svc_run): Likewise.
20330         * sunrpc/svc_udp.c (svcudp_create): Likewise.
20332 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
20334         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
20335         problem in reallocation in last patch.
20337 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
20339         * sunrpc/Makefile: Move inclusion of Rules.
20341 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20343         * nss/nss_files/files-initgroups.c: New file.
20344         * nss/Makefile (libnss_files-routines): Add files-initgroups.
20345         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
20346         _nss_files_initgroups_dyn.
20348 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
20350         * elf/elf.h (R_ARM_IRELATIVE): Define.
20352 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
20354         * po/ru.po: Update from translation team.
20356 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20358         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
20359         dependencies.
20361 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
20363         [BZ #12653]
20364         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
20365         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
20366         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
20367         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20368         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20370 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
20372         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
20373         differing bytes.
20374         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20375         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20376         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20378 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
20380         [BZ #12420]
20381         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
20382         storing it.
20383         * stdlib/bug-getcontext.c: New file.
20384         * stdlib/Makefile: Add rules to build and run bug-getcontext.
20386 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20388         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
20389         instructions into .machine "z9-109".
20390         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
20391         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
20393 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20395         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
20396         between environment variables and auxiliary vector.
20398 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
20400         * Makefile: Add rules to build linkobj/libc.so.
20401         * include/libc-symbols.h: Define libc_hidden_nolink.
20402         * include/rpc/auth.h: Mark functions which are to be hidden.
20403         * include/rpc/auth_des.h: Likewise.
20404         * include/rpc/auth_unix.h: Likewise.
20405         * include/rpc/clnt.h: Likewise.
20406         * include/rpc/des_crypt.h: Likewise.
20407         * include/rpc/key_prot.h: Likewise.
20408         * include/rpc/pmap_clnt.h: Likewise.
20409         * include/rpc/pmap_prot.h: Likewise.
20410         * include/rpc/pmap_rmt.h: Likewise.
20411         * include/rpc/rpc_msg.h: Likewise.
20412         * include/rpc/svc.h: Likewise.
20413         * include/rpc/svc_auth.h: Likewise.
20414         * include/rpc/xdr.h: Likewise.
20415         * nis/Makefile: Link all DSOs against linkobj/libc.so.
20416         * nss/Makefile: Likewise.
20417         * sunrpc/Makefile: Don't install headers.  Build library with normal
20418         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
20419         * sunrpc/auth_des.c: Hide exported symbols by default, export some
20420         for the compat linking library.  Remove use of INTDEF/INTUSE.
20421         * sunrpc/auth_none.c: Likewise.
20422         * sunrpc/auth_unix.c: Likewise.
20423         * sunrpc/authdes_prot.c: Likewise.
20424         * sunrpc/authuxprot.c: Likewise.
20425         * sunrpc/clnt_gen.c: Likewise.
20426         * sunrpc/clnt_perr.c: Likewise.
20427         * sunrpc/clnt_raw.c: Likewise.
20428         * sunrpc/clnt_simp.c: Likewise.
20429         * sunrpc/clnt_tcp.c: Likewise.
20430         * sunrpc/clnt_udp.c: Likewise.
20431         * sunrpc/clnt_unix.c: Likewise.
20432         * sunrpc/des_crypt.c: Likewise.
20433         * sunrpc/des_soft.c: Likewise.
20434         * sunrpc/get_myaddr.c: Likewise.
20435         * sunrpc/key_call.c: Likewise.
20436         * sunrpc/key_prot.c: Likewise.
20437         * sunrpc/netname.c: Likewise.
20438         * sunrpc/pm_getmaps.c: Likewise.
20439         * sunrpc/pm_getport.c: Likewise.
20440         * sunrpc/pmap_clnt.c: Likewise.
20441         * sunrpc/pmap_prot.c: Likewise.
20442         * sunrpc/pmap_prot2.c: Likewise.
20443         * sunrpc/pmap_rmt.c: Likewise.
20444         * sunrpc/publickey.c: Likewise.
20445         * sunrpc/rpc_cmsg.c: Likewise.
20446         * sunrpc/rpc_common.c: Likewise.
20447         * sunrpc/rpc_dtable.c: Likewise.
20448         * sunrpc/rpc_prot.c: Likewise.
20449         * sunrpc/rpc_thread.c: Likewise.
20450         * sunrpc/rtime.c: Likewise.
20451         * sunrpc/svc.c: Likewise.
20452         * sunrpc/svc_auth.c: Likewise.
20453         * sunrpc/svc_authux.c: Likewise.
20454         * sunrpc/svc_raw.c: Likewise.
20455         * sunrpc/svc_run.c: Likewise.
20456         * sunrpc/svc_simple.c: Likewise.
20457         * sunrpc/svc_tcp.c: Likewise.
20458         * sunrpc/svc_udp.c: Likewise.
20459         * sunrpc/svc_unix.c: Likewise.
20460         * sunrpc/svcauth_des.c: Likewise.
20461         * sunrpc/xcrypt.c: Likewise.
20462         * sunrpc/xdr.c: Likewise.
20463         * sunrpc/xdr_array.c: Likewise.
20464         * sunrpc/xdr_float.c: Likewise.
20465         * sunrpc/xdr_intXX_t.c: Likewise.
20466         * sunrpc/xdr_mem.c: Likewise.
20467         * sunrpc/xdr_rec.c: Likewise.
20468         * sunrpc/xdr_ref.c: Likewise.
20469         * sunrpc/xdr_sizeof.c: Likewise.
20470         * sunrpc/xdr_stdio.c: Likewise.
20472 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
20474         [BZ #12650]
20475         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
20476         * sysdeps/ia64/dl-tls.h: Likewise.
20477         * sysdeps/powerpc/dl-tls.h: Likewise.
20478         * sysdeps/s390/dl-tls.h: Likewise.
20479         * sysdeps/sh/dl-tls.h: Likewise.
20480         * sysdeps/sparc/dl-tls.h: Likewise.
20481         * sysdeps/x86_64/dl-tls.h: Likewise.
20482         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
20484 2011-03-14  Andreas Schwab  <schwab@redhat.com>
20486         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
20487         rpath element also skip the following colon.
20488         (expand_dynamic_string_token): Add is_path parameter and pass
20489         down to DL_DST_REQUIRED and _dl_dst_substitute.
20490         (decompose_rpath): Call expand_dynamic_string_token with
20491         non-zero is_path.  Ignore empty rpaths.
20492         (_dl_map_object_from_fd): Call expand_dynamic_string_token
20493         with zero is_path.
20495 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
20497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
20498         Make cancelable.
20500 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
20502         [BZ #12655]
20503         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
20504         Patch by Filipe David Manana <fdmanana@apache.org>.
20506 2011-04-07  Andreas Schwab  <schwab@redhat.com>
20508         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
20509         Maintain aligned stack.
20510         (CHECK_RSP): Remove unused macro.
20512 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
20514         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
20515         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
20517 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
20519         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
20521         * include/features.h: Mention __USE_XOPEN2K8 in comment.
20523 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
20525         [BZ #12518]
20526         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
20527         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
20528         * sysdeps/x86_64/memmove.c: New file.
20529         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
20530         (memcpy): Renamed to ...
20531         (__new_memcpy): This.
20532         (memcpy): Provide GLIBC_2_14 memcpy.
20533         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
20534         (memcpy): Provide GLIBC_2_2_5 memcpy.
20536 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20538         [BZ #12631]
20539         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
20541 2011-03-30  Andreas Schwab  <schwab@redhat.com>
20543         * misc/syncfs.c: New file.
20544         * misc/Makefile (routines): Add syncfs.
20545         * posix/unistd.h: Declare syncfs.
20546         * sysdeps/unix/syscalls.list: Add syncfs.
20548 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20550         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
20551         open_by_handle_at.
20552         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
20553         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20554         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20555         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20556         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20557         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
20558         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20560 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20562         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
20563         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20564         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
20565         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20566         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20567         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20568         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20570         * io/Makefile: Compile fallocate.c, fallocate64.c, and
20571         sync_file_range.c with -fexceptions.
20572         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
20573         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
20574         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
20575         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
20576         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
20577         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
20578         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
20579         sync_file_range as cancellation point
20580         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
20581         now a wrapper around __call_sync_file_range with cancellation handling.
20582         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
20583         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
20584         function name to __call_sync_file_range.
20585         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
20586         Add call_sync_file_range.
20588 2011-04-01  Andreas Schwab  <schwab@redhat.com>
20590         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
20591         bits/timex.h.
20593 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
20595         * iconv/iconv.h: Fix typo in comment.
20596         * io/fcntl.h: Likewise.
20597         * libio/stdio.h: Likewise.
20598         * posix/spawn.h: Likewise.
20599         * posix/unistd.h: Likewise.
20600         * stdlib/stdlib.h: Likewise.
20601         * time/time.h: Likewise.
20602         * wcsmbs/wchar.h: Likewise.
20604         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
20605         open_by_handle): Add.
20606         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
20607         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
20608         Augment a few comments.
20609         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
20610         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
20611         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
20612         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
20613         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
20614         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
20615         open_by_handle.
20617         * io/fcntl.h (AT_EMPTY_PATH): Define.
20619 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
20621         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
20622         * sysdeps/unix/sysv/linux/bits/time.h: New file.
20623         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
20624         to...
20625         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
20626         * Versions.def: Add GLIBC_2.14.
20627         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
20628         Export.
20630 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
20632         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
20633         round counter.
20634         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20636 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
20638         [BZ #12597]
20639         * string/test-strncmp.c (do_page_test): New function.
20640         (check2): Likewise.
20641         (test_main): Call check2.
20642         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
20644 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
20646         [BZ #12587]
20647         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
20648         Handle cache information in CPU leaf 4.
20649         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
20651 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
20653         [BZ #12583]
20654         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
20655         character representation.
20656         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
20658 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
20660         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
20661         END(__isnan) to END(__isnanf) to match function entry point/label
20662         EALIGN(__isnanf,...).
20664 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20666         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
20668 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
20670         [BZ #12510]
20671         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
20672         copy from the symbol referenced in the relocation to initialize the
20673         used variable.
20674         Patch by Piotr Bury <pbury@goahead.com>.
20675         * elf/Makefile: Add rules to build and tst-unique3.
20676         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
20677         * elf/tst-unique3.cc: New file.
20678         * elf/tst-unique3.h: New file.
20679         * elf/tst-unique3lib.cc: New file.
20680         * elf/tst-unique3lib2.cc: New file.
20682         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
20684 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
20686         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
20687         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
20688         to _start.
20690 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
20692         * elf/dl-load.c (_dl_map_object): If we are looking for the first
20693         to-be-loaded object along a path to loader is ld.so.
20695 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20696             Ulrich Drepper  <drepper@gmail.com>
20698         * sysdeps/x86_64/memset.S: After aligning destination, code
20699         branches to different locations depending on the value of
20700         misalignment, when multiarch is enabled. Fix this.
20702 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
20704         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
20705         Set _x86_64_preferred_memory_instruction for AMD processsors.
20706         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20707         Set bit_Prefer_SSE_for_memop for AMD processors.
20709 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
20711         * libio/fmemopen.c (fmemopen): Optimize a bit.
20713 2011-03-03  Andreas Schwab  <schwab@redhat.com>
20715         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
20717 2011-03-03  Roland McGrath  <roland@redhat.com>
20719         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
20721 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
20723         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
20724         __bzero_ultra1 instead of __memset_ultra1.
20726 2011-02-23  Andreas Schwab  <schwab@redhat.com>
20727             Ulrich Drepper  <drepper@gmail.com>
20729         [BZ #12509]
20730         * include/link.h (struct link_map): Add l_orig_initfini.
20731         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
20732         returning unsuccessfully.
20733         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
20734         close of a file loaded at startup, restore the original l_initfini
20735         list.
20736         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
20737         list, store the pointer.
20738         * elf/Makefile ($(objpfx)noload-mem): New rule.
20739         (noload-ENV): Define.
20740         (tests): Add $(objpfx)noload-mem.
20741         * elf/noload.c: Include <memcheck.h>.
20742         (main): Call mtrace.  Close all opened handles.
20744 2011-02-17  Andreas Schwab  <schwab@redhat.com>
20746         [BZ #12454]
20747         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
20748         dependencies are missing.
20750 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20752         Fix __if_freereq crash: Unlike the generic version which uses free,
20753         Hurd needs munmap.
20754         * sysdeps/mach/hurd/ifreq.h: New file.
20756 2011-01-27  Petr Baudis  <pasky@suse.cz>
20757             Ulrich Drepper  <drepper@gmail.com>
20759         [BZ 12445]#
20760         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
20761         to extend_alloca().
20762         * stdio-common/bug23.c: New file.
20763         * stdio-common/Makefile (tests): Add bug23.
20765 2010-09-28  Andreas Schwab  <schwab@redhat.com>
20766             Ulrich Drepper  <drepper@gmail.com>
20768         [BZ #12489]
20769         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
20770         before performing relro protection.  At old place add assertion
20771         to make sure nothing changed.
20773 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
20774             Glauber de Oliveira Costa  <glommer@gmail.com>
20776         * elf/elf.h: Add new ARM TLS relocs.
20778 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
20780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
20781         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
20782         cast from r3.
20783         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
20784         'tests' variable.
20785         * sysdeps/wordsize-64/tst-writev.c: New file.
20787 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
20789         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
20790         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
20791         insns in _dl_start to prevent a TOC reference before relocs are
20792         resolved.
20794 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
20796         [BZ #12469]
20797         * Makeconfig: Remove RANLIB definition.
20798         * Makerules: Don't use RANLIB.
20799         * aclocal.m4: Remove ranlib test.
20800         * configure.in: No need to check for ranlib.
20801         * elf/rtld-Rules: Don't use RANLIB.
20803 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20805         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
20806         protection macro.
20807         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
20808         inclusion protection macro.
20810         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
20811         SIGRTMIN and SIGRTMAX and print information in that case only when
20812         SIGRTMIN is defined.
20814 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
20816         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
20817         arginfo fn returning -1.
20819         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
20820         and thousands string is zero terminated.
20822 2011-02-03  Andreas Schwab  <schwab@redhat.com>
20824         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
20825         sysdeps/unix/sysv/linux/bits/socket.h.
20827 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20829         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
20830         (__CPU_COUNT): Remove old macros.
20831         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
20832         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
20833         (__CPU_ALLOC, __CPU_FREE): Add macros.
20834         (__sched_cpualloc, __sched_cpufree): Add declarations.
20836 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
20838         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
20839         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
20840         * nscd/aicache.c (addhstaiX): Return timeout of added value.
20841         (readdhstai): Return value of addhstaiX call.
20842         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
20843         (addgrbyX): Return value returned by cache_addgr.
20844         (readdgrbyname): Return value returned by addgrbyX.
20845         (readdgrbygid): Likewise.
20846         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
20847         (addpwbyX): Return value returned by cache_addpw.
20848         (readdpwbyname): Return value returned by addhstbyX.
20849         (readdpwbyuid): Likewise.
20850         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
20851         (addservbyX): Return value returned by cache_addserv.
20852         (readdservbyname): Return value returned by addservbyX:
20853         (readdservbyport): Likewise.
20854         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
20855         (addhstbyX): Return value returned by cache_addhst.
20856         (readdhstbyname): Return value returned by addhstbyX.
20857         (readdhstbyaddr): Likewise.
20858         (readdhstbynamev6): Likewise.
20859         (readdhstbyaddrv6): Likewise.
20860         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
20861         (readdinitgroups): Return value returned by addinitgroupsX.
20862         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
20863         (prune_cache): Keep track of timeout value of re-added entries.
20864         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
20865         * nscd/nscd.h: Adjust prototypes of readd* functions.
20867 2011-02-04  Roland McGrath  <roland@redhat.com>
20869         * nis/nis_server.c (nis_servstate): Use the right name for 0.
20870         (nis_stats): Likewise.
20871         * nis/nis_modify.c (nis_modify): Likewise.
20872         * nis/nis_remove.c (nis_remove): Likewise.
20873         * nis/nis_add.c (nis_add): Likewise.
20875         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
20877         * posix/fnmatch_loop.c: Add some consts.
20879         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
20881 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
20883         [BZ #12460]
20884         * config.make.in (config-cflags-novzeroupper): Define.
20885         * configure.in: Substitute libc_cv_cc_novzeroupper.
20886         * elf/Makefile (AVX-CFLAGS): Define.
20887         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
20888         (CFLAGS-tst-auditmod4a.c): Likewise.
20889         (CFLAGS-tst-auditmod4b.c): Likewise.
20890         (CFLAGS-tst-auditmod6b.c): Likewise.
20891         (CFLAGS-tst-auditmod6c.c): Likewise.
20892         (CFLAGS-tst-auditmod7b.c): Likewise.
20893         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
20895 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
20897         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
20898         function to the callback.
20899         Patch partly by Jiri Olsa <jolsa@redhat.com>.
20901 2011-02-02  Andreas Schwab  <schwab@redhat.com>
20903         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
20904         of errno.
20906 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
20908         [BZ #11724]
20909         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
20910         of constructors.
20911         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
20912         of destructors.
20913         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
20915         [BZ #11724]
20916         * elf/Makefile: Add rules to build and run new test.
20917         * elf/tst-initorder.c: New file.
20918         * elf/tst-initorder.exp: New file.
20919         * elf/tst-initordera1.c: New file.
20920         * elf/tst-initordera2.c: New file.
20921         * elf/tst-initordera3.c: New file.
20922         * elf/tst-initordera4.c: New file.
20923         * elf/tst-initorderb1.c: New file.
20924         * elf/tst-initorderb2.c: New file.
20925         * elf/tst-order-a1.c: New file.
20926         * elf/tst-order-a2.c: New file.
20927         * elf/tst-order-a3.c: New file.
20928         * elf/tst-order-a4.c: New file.
20929         * elf/tst-order-b1.c: New file.
20930         * elf/tst-order-b2.c: New file.
20931         * elf/tst-order-main.c: New file.
20932         New test case by George Gensure <werkt0@gmail.com>.
20934 2010-10-01  Andreas Schwab  <schwab@redhat.com>
20936         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
20937         decoding ACE if AI_CANONIDN.
20939 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
20941         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
20943 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
20945         * version.h (RELEASE): Bump for 2.13 release.
20946         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
20948         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
20950         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
20951         MADV_NOHUGEPAGE.
20952         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
20953         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
20954         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
20955         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20956         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
20957         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
20959         * posix/getconf.c: Update copyright year.
20960         * catgets/gencat.c: Likewise.
20961         * csu/version.c: Likewise.
20962         * debug/catchsegv.sh: Likewise.
20963         * debug/xtrace.sh: Likewise.
20964         * elf/ldconfig.c: Likewise.
20965         * elf/ldd.bash.in: Likewise.
20966         * elf/sprof.c (print_version): Likewise.
20967         * iconv/iconv_prog.c: Likewise.
20968         * iconv/iconvconfig.c: Likewise.
20969         * locale/programs/locale.c: Likewise.
20970         * locale/programs/localedef.c: Likewise.
20971         * malloc/memusage.sh: Likewise.
20972         * malloc/mtrace.pl: Likewise.
20973         * nscd/nscd.c (print_version): Likewise.
20974         * nss/getent.c: Likewise.
20976         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
20977         PF_CAIF, and PF_ALG.
20978         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
20980 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
20982         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
20983         (modules-names): Use them.
20984         (ifunc-test-modules, ifunc-pie-tests): Define.
20985         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
20986         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
20987         (test-extras): Likewise.
20988         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
20989         $(compile-command.c).
20990         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
20991         (all-built-dso): Define.
20992         (check-textrel.out, check-execstack.out): Depend on it.
20994         * configure.in: Don't override --enable-multi-arch.
20996 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
20998         [BZ #6812]
20999         * nscd/hstcache.c (tryagain): Define.
21000         (cache_addhst): Return tryagain not notfound for temporary errors.
21001         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
21002         failed.
21004 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
21006         [BZ #10563]
21007         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
21008         to make the syscall.
21009         * sysdeps/unix/sysv/linux/setgroups.c: New file.
21011         [BZ #12378]
21012         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
21013         and fall back to matching as normal character if the string ends before
21014         the matching ']' is found.  This is what POSIX requires.
21015         * posix/testfnm.c: Adjust test result.
21016         * posix/globtest.sh: Adjust test result.  Add new test.
21017         * posix/tst-fnmatch.input: Likewise.
21018         * posix/tst-fnmatch2.c: Add new test.
21020 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
21022         * elf/Makefile (check-execstack): Revert last change.  Depend on
21023         check-execstack.h.
21024         (check-execstack.h): New target.
21025         (generated): Add check-execstack.h.
21026         * elf/check-execstack.c: Include "check-execstack.h".
21027         (main): Revert last change.
21028         (handle_file): Return zero if GNU_STACK is absent and
21029         DEFAULT_STACK_PERMS doesn't include PF_X.
21031 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
21033         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
21034         in child fails because the descriptor is already closed.
21035         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
21036         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
21037         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
21039         [BZ #12397]
21040         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
21041         syscall.
21043         [BZ #10484]
21044         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
21045         temporary buffer used to handle multi lookups locally.
21046         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
21048 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21050         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
21051         loader is ld.so.
21053 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
21055         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
21056         alignment for SSE2.
21058 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
21060         [BZ #12394]
21061         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
21062         characters.  When rounding increased number of integer digits recompute
21063         number of groups.
21064         * stdio-common/tst-grouping.c: New file.
21065         * stdio-common/Makefile: Add rules to build and run tst-grouping.
21067 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
21069         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
21070         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
21072         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
21073         void.
21074         * bits/select.h: Likewise.
21076 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
21078         * po/ja.po: Update from translation team.
21080 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
21082         [BZ #11155]
21083         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
21084         implementation just like for lxstat, fxstatat, et al.
21086 2010-12-27  Jim Meyering  <meyering@redhat.com>
21088         [BZ #12348]
21089         * posix/regexec.c (build_trtable): Return failure indication upon
21090         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21092 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
21094         [BZ #12201]
21095         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
21096         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
21097         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
21098         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
21100         [BZ #12207]
21101         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
21103         [BZ #12204]
21104         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
21105         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
21107 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
21109         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
21110         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
21111         script has SORT_BY_INIT_PRIORITY.
21112         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
21113         NO_CTORS_DTORS_SECTIONS is defined.
21114         * elf/soinit.c: Likewise.
21115         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
21116         NO_CTORS_DTORS_SECTIONS is defined.
21117         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
21118         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
21119         * sysdeps/sh/init-first.c: Likewise.
21120         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
21122 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
21124         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
21125         always use the slow path.
21127 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
21129         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
21130         similar rule which adds the sysdep directories to the header search in
21131         order to pick up the correct platform stackinfo.h.
21132         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
21133         perform test if it is, otherwise return successfully without testing.
21134         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
21135         DEFAULT_STACK_PERMS define in stackinfo.h.
21136         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
21137         defined in stackinfo.h.
21138         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
21139         DEFAULT_STACK_PERMS defined in stackinfo.h.
21140         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
21141         * sysdeps/ia64/stackinfo.h: Likewise.
21142         * sysdeps/s390/stackinfo.h: Likewise.
21143         * sysdeps/sh/stackinfo.h: Likewise.
21144         * sysdeps/sparc/stackinfo.h: Likewise.
21145         * sysdeps/x86_64/stackinfo.h: Likewise.
21146         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
21147         PF_X for powerpc64.  Retain PF_X for powerpc32.
21149 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
21151         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
21152         accurately.
21153         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
21154         GETDENTS_64BIT_ALIGNED.
21156 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
21158         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
21160 2010-12-10  Andreas Schwab  <schwab@redhat.com>
21162         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
21163         _GNU_SOURCE.
21165         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
21166         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
21167         Remove __restrict.
21168         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
21169         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
21171 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
21173         [BZ #11655]
21174         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
21175         are initialized.
21177 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
21179         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
21181 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
21183         * po/it.po: Update from translation team.
21185 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
21187         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
21188         unused codes.
21190 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
21192         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
21194 2010-11-24  Andreas Schwab  <schwab@redhat.com>
21196         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
21197         specially.
21198         (gaih_getanswer_slice): Likewise.
21200 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
21202         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
21204 2010-05-31  Petr Baudis  <pasky@suse.cz>
21206         [BZ #11149]
21207         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
21208         silently even in the chroot mode.
21210 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
21212         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
21213         last patch a bit.  Pretty printing
21215 2010-05-31  Petr Baudis <pasky@suse.cz>
21217         [BZ #10085]
21218         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
21219         initialization of skip_initgroups_dyn.
21221 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
21223         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
21224         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
21226 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
21228         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
21230 2010-11-11  Andreas Schwab  <schwab@redhat.com>
21232         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
21233         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
21234         (tst-fnmatch-ENV): Set MALLOC_TRACE.
21235         ($(objpfx)tst-fnmatch-mem): New rule.
21236         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
21237         * posix/tst-fnmatch.c (main): Call mtrace.
21239 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
21241         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21242         Support Intel processor model 6 and model 0x2c.
21244 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
21246         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
21247           signed comparison.
21249 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
21251         [BZ #12205]
21252         * string/test-strncasecmp.c (check_result): New function.
21253         (do_one_test): Use it.
21254         (check1): New function.
21255         (test_main): Use it.
21256         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
21257         Support strcasecmp and strncasecmp.
21259 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
21261         [BZ #12194]
21262         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
21263         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21265 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
21267         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
21268         IFUNC support.
21269         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21270         memset-x86-64.
21271         * sysdeps/x86_64/multiarch/bzero.S: New file.
21272         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
21273         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
21274         * sysdeps/x86_64/multiarch/memset.S: New file.
21275         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
21276         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21277         Set bit_Prefer_SSE_for_memop for Intel processors.
21278         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
21279         Define.
21280         (index_Prefer_SSE_for_memop): Define.
21281         (HAS_PREFER_SSE_FOR_MEMOP): Define.
21283 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
21285         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
21286         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
21288 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
21290         [BZ #12191]
21291         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21292         (__x86_64_raw_data_cache_size_half): Likewise.
21293         (__x86_64_raw_shared_cache_size): Likewise.
21294         (__x86_64_raw_shared_cache_size_half): Likewise.
21296         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
21297         (__x86_64_raw_data_cache_size_half): Likewise.
21298         (__x86_64_raw_shared_cache_size): Likewise.
21299         (__x86_64_raw_shared_cache_size_half): Likewise.
21300         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
21301         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
21302         and __x86_64_raw_shared_cache_size_half.  Round
21303         __x86_64_data_cache_size_half, __x86_64_data_cache_size
21304         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
21305         to multiple of 256 bytes.
21307 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
21309         [BZ #12167]
21310         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
21311         of inacessible symlinks.  Verify result of symlink before returning it.
21312         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
21313         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
21315 2010-10-28  Erich Ritz  <erichritz@gmail.com>
21317         * math/math.h (isinf): Fix typo in comment.
21319 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
21321         * po/da.po: Update from translation team.
21323 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
21325         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
21326         is added to the list.
21328 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21329             Ulrich Drepper  <drepper@gmail.com>
21331         * elf/dl-object.c (_dl_new_object): Don't append the new object to
21332         the global list here.  Move code to...
21333         (_dl_add_to_namespace_list): ...here.  New function.
21334         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
21335         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
21336         * elf/dl-load.c (lose): Don't remove the element from the list.
21337         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
21338         (_dl_map_object): Likewise.
21340 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
21342         [BZ #12159]
21343         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
21344         into all bytes of SSE register.
21345         Patch by Richard Li <richardpku@gmail.com>.
21347 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
21349         [BZ #12140]
21350         * malloc/malloc.c (_int_free): Fill correct number of bytes when
21351         perturbing.
21353 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
21355         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
21356         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
21357         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
21358         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
21359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
21360         submachine.
21361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
21363 2010-10-22  Andreas Schwab  <schwab@redhat.com>
21365         * include/dlfcn.h (__RTLD_SECURE): Define.
21366         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
21367         mode & __RTLD_SECURE instead.
21368         (open_path): Rename preloaded parameter to secure.
21369         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
21370         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
21371         * elf/dl-deps.c (openaux): Likewise.
21372         * elf/rtld.c (struct map_args): Remove is_preloaded.
21373         (map_doit): Don't use it.
21374         (dl_main): Likewise.
21375         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
21376         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
21378 2010-09-09  Andreas Schwab  <schwab@redhat.com>
21380         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
21381         (sysd-rules-targets): Remove duplicates.
21382         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
21383         rtld-%.$o dependency.
21385 2010-10-18  Andreas Schwab  <schwab@redhat.com>
21387         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
21388         _dl_map_object do it.
21390 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
21392         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
21393         fast fma builtins, define the macros in the C99 standard.
21394         (FP_FAST_FMAF): Likewise.
21395         (FP_FAST_FMAL): Likewise.
21396         * sysdeps/x86_64/bits/mathdef.h: Likewise.
21398         * bits/mathdef.h: Update copyright year.
21399         * sysdeps/powerpc/bits/mathdef.h: Likewise.
21401 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
21403         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
21404         builtins, define the macros in the C99 standard.
21405         (FP_FAST_FMAF): Likewise.
21406         (FP_FAST_FMAL): Likewise.
21407         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
21408         multiply/add.
21409         (FP_FAST_FMAF): Likewise.
21411 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
21413         [BZ #3268]
21414         * math/libm-test.inc (fma_test): Some new testcases.
21415         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
21416         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
21417         y and infinite z.  Do multiplication by C already in long double.
21418         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
21419         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
21420         y and infinite z.  Do bitwise or of inexact bit into u.d.
21421         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
21422         * sysdeps/i386/fpu/s_fmaf.S: Removed.
21423         * sysdeps/i386/fpu/s_fma.S: Removed.
21424         * sysdeps/i386/fpu/s_fmal.S: Removed.
21426 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
21428         [BZ #3268]
21429         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
21430         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
21431         computation is not scheduled after fetestexcept.  Fix value
21432         of minimum denormal long double.
21434 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
21436         [BZ #3268]
21437         * math/libm-test.inc (fma_test): Add some more tests.
21438         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
21439         correctly.
21441 2010-10-15  Andreas Schwab  <schwab@redhat.com>
21443         * scripts/data/localplt-s390-linux-gnu.data: New file.
21444         * scripts/data/localplt-s390x-linux-gnu.data: New file.
21446 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
21448         [BZ #3268]
21449         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
21450         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
21451         instead of dbl-64.
21452         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
21453         inlines.
21454         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
21455         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
21456         if one of x and y is very large and the other is subnormal.
21457         * sysdeps/s390/fpu/s_fmaf.c: New file.
21458         * sysdeps/s390/fpu/s_fma.c: New file.
21459         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
21460         * sysdeps/powerpc/fpu/s_fma.S: New file.
21461         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
21462         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
21463         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
21465 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
21467         [BZ #3268]
21468         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
21469         fma tests.
21470         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
21471         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
21472         * sysdeps/i386/i686/multiarch/s_fma.c: Include
21473         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
21474         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
21475         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
21476         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
21478 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
21480         [BZ #12078]
21481         * posix/regcomp.c (parse_branch): One more memory leak plugged.
21482         * posix/bug-regex31.input: Add test case.
21484 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21486         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
21487         * posix/bug-regex31.input: New file.
21489         [BZ #12078]
21490         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
21491         (parse_sub_exp): Fix last change, use postorder.
21493         * posix/bug-regex31.c: New file.
21494         * posix/Makefile: Add rules to build and run bug-regex31.
21496         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
21498         [BZ #12078]
21499         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
21501         [BZ #12108]
21502         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
21503         to have entries in sys_siglist.
21505         [BZ #12093]
21506         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
21507         be NULL.
21509 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
21511         [BZ #3268]
21512         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
21513         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
21514         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
21515         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
21516         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21517         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
21518         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
21519         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
21520         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
21521         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
21522         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
21523         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
21524         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
21525         * math/ftestexcept.c (fetestexcept): Likewise.
21526         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
21527         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
21528         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
21529         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
21530         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
21531         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
21532         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
21534 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
21536         [BZ #12107]
21537         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
21538         newline.
21540 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
21542         * string/bug-strstr1.c: New file.
21543         * string/Makefile: Add rules to build and run bug-strstr1.
21545 2010-10-05  Eric Blake  <eblake@redhat.com>
21547         [BZ #12092]
21548         * string/str-two-way.h (two_way_long_needle): Always clear memory
21549         when skipping input due to the shift table.
21551 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
21553         [BZ #12005]
21554         * malloc/mcheck.c: Handle large requests.
21556         [BZ #12077]
21557         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
21558         for strncmp and strncasecmp.
21559         * string/stratcliff.c: Add tests for strcmp and strncmp.
21560         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
21562 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21564         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
21565         __set_fpscr.
21567 2010-09-30  Andreas Jaeger  <aj@suse.de>
21569         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
21570         (CGROUP_SUPER_MAGIC): Define.
21571         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21572         Handle btrfs and cgroup file systems.
21573         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21574         Likewise.
21576 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
21578         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
21579         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
21581 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21583         [BZ #12067]
21584         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
21585         trying to locate the ELF header.
21587 2010-09-27  Andreas Schwab  <schwab@redhat.com>
21589         [BZ #11611]
21590         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
21591         Mask out sign-bit copies when constructing f_fsid.
21593 2010-09-24  Petr Baudis <pasky@suse.cz>
21595         * debug/stack_chk_fail_local.c: Add missing licence exception.
21596         * debug/warning-nop.c: Likewise.
21598 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
21600         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
21601         implementing getdents64 using getdents syscall, set d_type if
21602         __ASSUME_GETDENTS32_D_TYPE.
21604 2010-09-16  Andreas Schwab  <schwab@redhat.com>
21606         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
21607         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
21609 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
21611         [BZ #12037]
21612         * posix/unistd.h: Undo change of feature selection for ftruncate from
21613         2010-01-11.
21615 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
21617         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
21618         detection.
21620 2010-09-20  Andreas Schwab  <schwab@redhat.com>
21622         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
21623         fanotify_mark.
21624         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
21626 2010-09-14  Andreas Schwab  <schwab@redhat.com>
21628         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
21629         variables after CHECK_SP call.
21630         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
21632 2010-09-13  Andreas Schwab  <schwab@redhat.com>
21633             Ulrich Drepper  <drepper@redhat.com>
21635         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
21636         re-relocationg ld.so.
21637         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
21638         _dl_init_paths call.
21639         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
21640         here anymore.
21642 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
21644         * resolv/res_init.c (__res_vinit): Count the default server we added.
21646 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
21647             Ulrich Drepper  <drepper@redhat.com>
21649         [BZ #11968]
21650         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
21651         (____longjmp_chk): Use %ebx for saving value across system call.
21652         Add unwind info.
21654 2010-09-06  Andreas Schwab  <schwab@redhat.com>
21656         * manual/Makefile: Don't mix pattern rules with normal rules.
21658 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
21660         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
21661         operation.
21662         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
21663         * libio/iofopncook.c (_IO_cookie_init): Likewise.
21664         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
21665         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
21666         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
21667         Likewise.
21669 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
21671         [BZ #11979]
21672         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
21673         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
21675 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
21677         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
21678         * sysdeps/x86_64/addmul_1.S: Likewise.
21679         * sysdeps/x86_64/lshift.S: Likewise.
21680         * sysdeps/x86_64/mul_1.S: Likewise.
21681         * sysdeps/x86_64/rshift.S: Likewise.
21682         * sysdeps/x86_64/sub_n.S: Likewise.
21683         * sysdeps/x86_64/submul_1.S: Likewise.
21685 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21687         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
21688         Define __sched_param instead of SCHED_* and sched_param when
21689         <bits/sched.h> is included with __need_schedparam defined.
21690         * bits/sched.h [__need_schedparam]
21691         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
21692         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
21693         (__defined_schedparam): Define to 1.
21694         (__sched_param): New structure, identical to sched_param.
21695         (__need_schedparam): Undefine.
21697 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
21699         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
21700         (epoll_create1): Declare.
21702         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
21704 2010-08-31  Andreas Schwab  <schwab@redhat.com>
21706         [BZ #7066]
21707         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
21708         shifting retval into place.
21710 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
21712         * nis/rpcsvc/nis.h: Update copyright notice.
21713         * nis/rpcsvc/nis.x: Likewise.
21714         * nis/rpcsvc/nis_callback.h: Likewise.
21715         * nis/rpcsvc/nis_callback.x: Likewise.
21716         * nis/rpcsvc/nis_object.x: Likewise.
21717         * nis/rpcsvc/nis_tags.h: Likewise.
21718         * nis/rpcsvc/yp.h: Likewise.
21719         * nis/rpcsvc/yp.x: Likewise.
21720         * nis/rpcsvc/ypupd.h: Likewise.
21721         * nis/yp_xdr.c: Likewise.
21722         * nis/ypupdate_xdr.c: Likewise.
21724         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
21725         mainly the body of pmap_getport.  Add parameters to specify timeouts.
21726         (pmap_getport): Use __libc_rpc_getport.
21727         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
21728         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
21729         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
21731 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
21733         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
21734         fanotify_mark.
21736 2010-08-27  Roland McGrath  <roland@redhat.com>
21738         * sysdeps/i386/i686/multiarch/Makefile
21739         (CFLAGS-varshift.c): New variable.
21741 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
21743         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
21744         * sysdeps/i386/i686/multiarch/varshift.c: New file.
21746         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
21748         * sysdeps/x86_64/strlen.S: Minimal code improvement.
21750 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
21752         * sysdeps/x86_64/strlen.S: Unroll the loop.
21753         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21754         strlen-sse2 strlen-sse2-bsf.
21755         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
21756         __strlen_no_bsf if bit_Slow_BSF is set.
21757         (__strlen_sse42): Removed.
21758         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
21759         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
21761 2010-08-25  Roland McGrath  <roland@redhat.com>
21763         * sysdeps/x86_64/multiarch/varshift.S: File removed.
21764         * sysdeps/x86_64/multiarch/varshift.c: New file.
21765         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
21766         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
21767         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
21768         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
21770 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
21772         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21773         strlen-sse2 strlen-sse2-bsf.
21774         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
21775         __strlen_sse2_bsf if bit_Slow_BSF is unset.
21776         (__strlen_sse2): Removed.
21777         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
21778         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
21779         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
21780         bit_Slow_BSF for Atom.
21781         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
21782         (index_Slow_BSF): Define.
21783         (HAS_SLOW_BSF): Define.
21785 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
21787         [BZ #10851]
21788         * resolv/res_init.c (__res_vinit): When no server address at all
21789         is given default to loopback.
21791 2010-08-24  Roland McGrath  <roland@redhat.com>
21793         * configure.in: Remove config-name.h generation.
21794         * configure: Regenerated.
21795         * config-name.in: File removed.
21796         * scripts/config-uname.sh: New file.
21797         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
21798         ($(objdir)config-name.h): New target.
21800         * sunrpc/rpc_parse.h: Avoid nested comment.
21802 2010-08-24  Richard Henderson  <rth@redhat.com>
21803             Ulrich Drepper  <drepper@redhat.com>
21804             H.J. Lu  <hongjiu.lu@intel.com>
21806         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
21807         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
21808         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
21809         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
21810         _mm_alignr_epi8 with _mm_loadu_si128.
21811         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
21812         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
21813         (__m128i_shift_right): Removed.
21814         * sysdeps/i386/i686/multiarch/varshift.h: New file.
21815         * sysdeps/i386/i686/multiarch/varshift.S: New file.
21816         * sysdeps/x86_64/multiarch/varshift.h: New file.
21817         * sysdeps/x86_64/multiarch/varshift.S: New file.
21819 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
21821         * configure.in: Move assembler checks to before sysdep dir checking.
21823 2010-08-20  Petr Baudis  <pasky@suse.cz>
21825         * LICENSES: Sync the sunrpc license.
21827 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
21829         * sunrpc/auth_des.c: Update copyright notice once again.
21830         * sunrpc/auth_none.c: Likewise.
21831         * sunrpc/auth_unix.c: Likewise.
21832         * sunrpc/authdes_prot.c: Likewise.
21833         * sunrpc/authuxprot.c: Likewise.
21834         * sunrpc/bindrsvprt.c: Likewise.
21835         * sunrpc/clnt_gen.c: Likewise.
21836         * sunrpc/clnt_perr.c: Likewise.
21837         * sunrpc/clnt_raw.c: Likewise.
21838         * sunrpc/clnt_simp.c: Likewise.
21839         * sunrpc/clnt_tcp.c: Likewise.
21840         * sunrpc/clnt_udp.c: Likewise.
21841         * sunrpc/clnt_unix.c: Likewise.
21842         * sunrpc/des_crypt.c: Likewise.
21843         * sunrpc/des_soft.c: Likewise.
21844         * sunrpc/get_myaddr.c: Likewise.
21845         * sunrpc/getrpcport.c: Likewise.
21846         * sunrpc/key_call.c: Likewise.
21847         * sunrpc/key_prot.c: Likewise.
21848         * sunrpc/openchild.c: Likewise.
21849         * sunrpc/pm_getmaps.c: Likewise.
21850         * sunrpc/pm_getport.c: Likewise.
21851         * sunrpc/pmap_clnt.c: Likewise.
21852         * sunrpc/pmap_prot.c: Likewise.
21853         * sunrpc/pmap_prot2.c: Likewise.
21854         * sunrpc/pmap_rmt.c: Likewise.
21855         * sunrpc/rpc/auth.h: Likewise.
21856         * sunrpc/rpc/auth_unix.h: Likewise.
21857         * sunrpc/rpc/clnt.h: Likewise.
21858         * sunrpc/rpc/des_crypt.h: Likewise.
21859         * sunrpc/rpc/key_prot.h: Likewise.
21860         * sunrpc/rpc/netdb.h: Likewise.
21861         * sunrpc/rpc/pmap_clnt.h: Likewise.
21862         * sunrpc/rpc/pmap_prot.h: Likewise.
21863         * sunrpc/rpc/pmap_rmt.h: Likewise.
21864         * sunrpc/rpc/rpc.h: Likewise.
21865         * sunrpc/rpc/rpc_des.h: Likewise.
21866         * sunrpc/rpc/rpc_msg.h: Likewise.
21867         * sunrpc/rpc/svc.h: Likewise.
21868         * sunrpc/rpc/svc_auth.h: Likewise.
21869         * sunrpc/rpc/types.h: Likewise.
21870         * sunrpc/rpc/xdr.h: Likewise.
21871         * sunrpc/rpc_clntout.c: Likewise.
21872         * sunrpc/rpc_cmsg.c: Likewise.
21873         * sunrpc/rpc_common.c: Likewise.
21874         * sunrpc/rpc_cout.c: Likewise.
21875         * sunrpc/rpc_dtable.c: Likewise.
21876         * sunrpc/rpc_hout.c: Likewise.
21877         * sunrpc/rpc_main.c: Likewise.
21878         * sunrpc/rpc_parse.c: Likewise.
21879         * sunrpc/rpc_parse.h: Likewise.
21880         * sunrpc/rpc_prot.c: Likewise.
21881         * sunrpc/rpc_sample.c: Likewise.
21882         * sunrpc/rpc_scan.c: Likewise.
21883         * sunrpc/rpc_scan.h: Likewise.
21884         * sunrpc/rpc_svcout.c: Likewise.
21885         * sunrpc/rpc_tblout.c: Likewise.
21886         * sunrpc/rpc_util.c: Likewise.
21887         * sunrpc/rpc_util.h: Likewise.
21888         * sunrpc/rpcinfo.c: Likewise.
21889         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
21890         * sunrpc/rpcsvc/key_prot.x: Likewise.
21891         * sunrpc/rpcsvc/klm_prot.x: Likewise.
21892         * sunrpc/rpcsvc/mount.x: Likewise.
21893         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
21894         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
21895         * sunrpc/rpcsvc/rex.x: Likewise.
21896         * sunrpc/rpcsvc/rstat.x: Likewise.
21897         * sunrpc/rpcsvc/rusers.x: Likewise.
21898         * sunrpc/rpcsvc/sm_inter.x: Likewise.
21899         * sunrpc/rpcsvc/spray.x: Likewise.
21900         * sunrpc/rpcsvc/yppasswd.x: Likewise.
21901         * sunrpc/rtime.c: Likewise.
21902         * sunrpc/svc.c: Likewise.
21903         * sunrpc/svc_auth.c: Likewise.
21904         * sunrpc/svc_authux.c: Likewise.
21905         * sunrpc/svc_raw.c: Likewise.
21906         * sunrpc/svc_run.c: Likewise.
21907         * sunrpc/svc_simple.c: Likewise.
21908         * sunrpc/svc_tcp.c: Likewise.
21909         * sunrpc/svc_udp.c: Likewise.
21910         * sunrpc/svc_unix.c: Likewise.
21911         * sunrpc/svcauth_des.c: Likewise.
21912         * sunrpc/xcrypt.c: Likewise.
21913         * sunrpc/xdr.c: Likewise.
21914         * sunrpc/xdr_array.c: Likewise.
21915         * sunrpc/xdr_float.c: Likewise.
21916         * sunrpc/xdr_mem.c: Likewise.
21917         * sunrpc/xdr_rec.c: Likewise.
21918         * sunrpc/xdr_ref.c: Likewise.
21919         * sunrpc/xdr_sizeof.c: Likewise.
21920         * sunrpc/xdr_stdio.c: Likewise.
21922         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
21923         handling.
21925 2010-08-19  Andreas Schwab  <schwab@redhat.com>
21927         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
21929 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
21931         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
21932         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
21933         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
21934         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
21935         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
21936         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
21937         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
21938         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
21939         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
21940         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
21941         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
21942         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
21943         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
21944         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
21946 2010-07-26  Anton Blanchard  <anton@samba.org>
21948         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
21949         * malloc/arena.c (heap_trim): Likewise.
21951 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
21953         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
21954         here.  Not...
21955         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
21956         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
21958 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
21960         * sysdeps/i386/elf/Makefile: New file.
21962 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21964         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
21965         from fanotify_init.
21966         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
21967         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
21969 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
21971         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
21972         of strncasecmp_l.
21973         * sysdeps/multiarch/strcmp.S: Likewise.
21975 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
21977         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
21978         strncase_l-nonascii.
21979         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
21980         Add strncase_l-ssse3.
21981         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
21982         * sysdeps/x86_64/strcmp.S: Likewise.
21983         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
21984         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
21985         * sysdeps/x86_64/strncase.S: New file.
21986         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
21987         * sysdeps/x86_64/strncase_l.S: New file.
21988         * string/Makefile (strop-tests): Add strncasecmp.
21989         * string/test-strncasecmp.c: New file.
21991         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
21992         warning.
21994         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
21995         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
21997 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
21999         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
22001 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
22003         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
22004         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
22005         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
22007 2010-05-01  Alan Modra  <amodra@gmail.com>
22009         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
22010         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
22011         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
22012         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
22013         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
22014         tidying.  Don't tail-call __sigjmp_save for static lib.
22015         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
22016         save location.
22017         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
22018         (CALL_MCOUNT): Add eh info, and nop after bl.
22019         (TAIL_CALL_SYSCALL_ERROR): New macro.
22020         (PSEUDO_RET): Use it.
22021         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
22022         Correct save location of integer regs and cr.
22023         (_dl_profile_resolve): Correct cr save location.  Delete nops
22024         after bl when SHARED.  Reduce cfi size a little by better
22025         placement of cfi directives.
22026         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
22027         make a stack frame.  Instead use parm save area as a temp.
22028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
22029         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
22030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
22031         Don't make a stack frame for parent, use parm save area.
22032         Increase child stack frame to 112 bytes.  Don't save unused reg,
22033         and adjust reg usage.  Set up cfi on error recovery and
22034         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
22035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
22036         (__makecontext): Add dummy nop after jump to exit.
22037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
22038         Use correct parm save area and cr save, reduce stack frame.
22039         Correct cfi for possible PSEUDO_RET frame setup.
22040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
22041         Branch to local label emitted by PSEUDO_RET rather than
22042         __syscall_error.
22044 2010-08-12  Andreas Schwab  <schwab@redhat.com>
22046         [BZ #11904]
22047         * locale/programs/locale.c (print_assignment): New function.
22048         (show_locale_vars): Use it.
22050 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
22052         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
22053         field.
22054         (struct statfs64): Likewise.
22055         (_STATFS_F_FLAGS): Define.
22056         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
22057         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
22058         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
22059         (ST_VALID): Define locally.
22060         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
22061         __statvfs_getflags, use the provided value.
22062         * sysdeps/unix/sysv/linux/kernel-features.h: Define
22063         __ASSUME_STATFS_F_FLAGS.
22065         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
22067         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
22068         Add sys/fanotify.h.
22069         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
22070         fanotify_mask for GLIBC_2.13.
22071         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
22072         fanotify_init and fanotify_mark.
22073         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
22074         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
22076         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
22077         Add prlimit.
22078         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
22079         prlimit64 for GLIBC_2.13.
22080         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
22081         prlimit64.
22082         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
22083         syscall.
22084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
22085         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
22086         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
22087         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
22088         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
22089         add prlimit alias.
22090         * sysdeps/unix/sysv/linux/prlimit.c: New file.
22092         [BZ #11903]
22093         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
22094         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
22096         * nss/Makefile: Add rules to build and run tst-nss-test1.
22097         * shlib-versions: Add entry for libnss_test1.
22098         * nss/nss_test1.c: New file.
22099         * nss/tst-nss-test1.c: New file.
22101         * nss/nsswitch.c (__nss_database_custom): Define new variable.
22102         (__nss_configure_lookup): Set appropriate entry in
22103         __nss_configure_lookup to true.
22104         * nss/nsswitch.h: Define enum with indeces of databases in
22105         databases and __nss_database_custom arrays.  Declare
22106         __nss_database_custom.
22107         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
22108         to avoid using nscd when custom rules are installed.
22109         * nss/getXXbyYY_r.c: Likewise.
22110         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
22112         * nss/nss_files/files-parse.c: Whitespace fixes.
22114 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
22116         [BZ #11883]
22117         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
22118         * posix/fnmatch_loop.c: Likewise.
22120 2010-07-17  Andi Kleen  <ak@linux.intel.com>
22122         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
22123         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
22124         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
22125         * Versions.def [GLIBC_2.13]: Add.
22127 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
22129         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22130         Also fail if tpwd after pwuid call is NULL.
22132 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22134         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
22135         when converting to ms.
22137 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22139         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
22140         EOPNOTSUPP errors with ENOTTY.
22141         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
22142         EOPNOTSUPP errors with ENOTTY.
22144 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
22146         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
22147         Add strcasecmp_l-ssse3.
22148         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
22149         strcasecmp.
22150         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
22151         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
22152         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
22154 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
22156         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
22158         * string/Makefile (strop-tests): Add strcasecmp.
22159         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
22160         strcasecmp_l-nonascii.
22161         (gen-as-const-headers): Add locale-defines.sym.
22162         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
22163         * sysdeps/x86_64/strcasecmp.S: New file.
22164         * sysdeps/x86_64/strcasecmp_l.S: New file.
22165         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
22166         * sysdeps/x86_64/locale-defines.sym: New file.
22167         * string/test-strcasecmp.c: New file.
22169         * string/test-strcasestr.c: Test both ends of the range of characters.
22170         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
22172 2010-07-29  Roland McGrath  <roland@redhat.com>
22174         [BZ #11856]
22175         * manual/locale.texi (Yes-or-No Questions): Fix example code.
22177 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
22179         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
22180         for ld.so.
22182 2010-07-27  Andreas Schwab  <schwab@redhat.com>
22184         * manual/memory.texi (Malloc Tunable Parameters): Document
22185         M_PERTURB.
22187 2010-07-26  Roland McGrath  <roland@redhat.com>
22189         [BZ #11840]
22190         * configure.in (-fgnu89-inline check): Set and substitute
22191         gnu89_inline, not libc_cv_gnu89_inline.
22192         * configure: Regenerated.
22193         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
22195 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
22197         * string/test-strnlen.c: New file.
22198         * string/Makefile (strop-tests): Add strnlen.
22199         * string/tester.c (test_strnlen): Add a few more test cases.
22200         * string/tst-strlen.c: Better error reporting.
22202         * sysdeps/x86_64/strnlen.S: New file.
22204 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
22206         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
22207         lower-latency instructions.
22209 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
22211         * string/test-strcasestr.c: New file.
22212         * string/test-strstr.c: New file.
22213         * string/Makefile (strop-tests): Add strstr and strcasestr.
22214         * string/str-two-way.h: Don't undefine MAX.
22215         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
22217 2010-07-21  Andreas Schwab  <schwab@redhat.com>
22219         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22220         strcasestr-nonascii.
22221         (CFLAGS-strcasestr-nonascii.c): Define.
22222         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
22223         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
22224         Remove unused attribute.
22226 2010-07-20  Roland McGrath  <roland@redhat.com>
22228         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
22229         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
22230         ld.so.cache was broken.  With it, there is no way to disable dsocaps
22231         like LD_HWCAP_MASK can disable hwcaps.
22233 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22235         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
22237 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
22239         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
22240         call in strcasestr.
22241         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
22242         __strcasestr_sse42_nonascii.
22243         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
22244         strcasestr-nonascii.c.
22245         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
22247 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
22249         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
22250         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
22251         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
22252         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
22254 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
22256         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
22257         fcntl.
22259 2010-07-06  Andreas Schwab  <schwab@redhat.com>
22261         [BZ #11577]
22262         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
22263         dl_signal_cerror.
22265 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
22267         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
22268         _PC_PIPE_BUF using F_GETPIPE_SZ.
22270 2010-07-05  Roland McGrath  <roland@redhat.com>
22272         * manual/arith.texi (Rounding Functions): Fix rint description
22273         implicit in round description.
22275 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
22277         * elf/Makefile: Fix linking for a few tests to make recent linker
22278         happy.
22280 2010-06-30  Andreas Schwab  <schwab@redhat.com>
22282         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22283         $(common-objpfx)libc_nonshared.a.
22285 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
22287         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
22288         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
22289         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22290         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22291         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
22292         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
22293         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22294         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
22296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
22297         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
22298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
22299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
22300         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
22301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
22302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
22303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
22304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
22305         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
22306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
22307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
22308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
22309         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
22310         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
22311         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
22312         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
22313         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
22314         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
22315         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
22316         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
22317         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
22318         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
22319         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
22320         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
22321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
22322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
22323         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
22324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
22325         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
22326         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
22327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
22328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
22329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
22330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
22331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
22332         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
22333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
22334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
22336 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
22338         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
22339         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
22340         * string/memmove.c (memmove): Renamed to ...
22341         (MEMMOVE): ...this.  Default to memmove.
22342         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
22343         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
22344         (END_CHK): Define.
22345         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22346         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
22347         mempcpy-ssse3-back memmove-ssse3-back.
22348         * sysdeps/x86_64/multiarch/bcopy.S: New file .
22349         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
22350         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
22351         * sysdeps/x86_64/multiarch/memcpy.S: New file.
22352         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
22353         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
22354         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
22355         * sysdeps/x86_64/multiarch/memmove.c: New file.
22356         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
22357         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
22358         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
22359         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
22360         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
22361         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
22362         Define.
22363         (index_Fast_Copy_Backward): Define.
22364         (HAS_ARCH_FEATURE): Define.
22365         (HAS_FAST_REP_STRING): Define.
22366         (HAS_FAST_COPY_BACKWARD): Define.
22368 2010-06-21  Andreas Schwab  <schwab@redhat.com>
22370         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
22371         Restore proper fallback handling.
22373 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
22375         [BZ #11701]
22376         * posix/group_member.c (__group_member): Correct checking loop.
22378         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
22379         OOM in getpwuid_r correctly.  Return error number when the caller
22380         should return, otherwise -1.
22381         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
22382         call returning > 0 value.
22383         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
22385 2010-06-07  Andreas Schwab  <schwab@redhat.com>
22387         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
22388         libc_nonshared.a from targets in modules-names.
22390 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
22392         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
22393         requires it.
22395 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
22397         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
22398         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
22399         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
22400         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
22402 2010-06-02  Andreas Schwab  <schwab@redhat.com>
22404         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
22406 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
22408         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
22409         and F_GETPIPE_SZ.
22410         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
22411         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
22412         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
22413         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
22414         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
22415         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
22417 2010-06-14  Roland McGrath  <roland@redhat.com>
22419         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
22421 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
22423         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
22424         __REDIRECT followed by __THROW.
22425         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
22426         * posix/getopt.h (getopt): Likewise.
22428 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
22430         * hurd/lookup-at.c (__file_name_lookup_at): Accept
22431         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
22432         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
22433         in AT_FLAGS.
22434         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
22435         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
22437 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
22439         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
22441 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
22443         [BZ #11640]
22444         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22445         Properly check family and model.
22447 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
22449         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
22451 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
22453         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
22455 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
22457         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
22458         symbol reference.
22460 2010-05-19  Andreas Schwab  <schwab@redhat.com>
22462         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
22463         symbol reference.
22465 2010-05-21  Andreas Schwab  <schwab@redhat.com>
22467         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
22468         and internal_recvmmsg.
22469         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
22470         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
22471         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
22472         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
22474         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
22475         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
22476         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
22478 2010-05-20  Andreas Schwab  <schwab@redhat.com>
22480         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
22482 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
22484         POWER7 optimizations.
22485         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
22486         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
22488 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
22490         * version.h: Update for 2.13 development version.
22492 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
22494         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
22495         exceptions.  Return 0.
22497 2010-05-07  Roland McGrath  <roland@redhat.com>
22499         * elf/ldconfig.c (main): Add a const.
22501 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
22503         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
22504         (args_options): Add no-idn option.
22505         (ahosts_keys_int): Add idn_flags to ai_flags.
22506         (parse_option): Handle 'i' option to clear idn_flags.
22508         * malloc/malloc.c (_int_free): Possible race in the most recently
22509         added check.  Only act on the data if no current modification
22510         happened.
22512 See ChangeLog.17 for earlier changes.