Commit Graph

24574 Commits

Author SHA1 Message Date
Siddhesh Poyarekar c78ab09473 Cleanup code duplication in malloc on fallback to use another arena
Break the fallback code to try another arena into a separate function
for readability.
2012-09-07 14:40:58 +05:30
John Tobey 01f49f59ce Fix description of carg branch cut (bug 13542) 2012-09-07 12:52:20 +10:00
Joseph Myers 1d3c857210 Use www.gnu.org as example hostname in manual (bug 10014). 2012-09-07 00:25:42 +00:00
Joseph Myers 4c23fed5d5 Fix pointers between nodes in manual (bug 10038). 2012-09-07 00:06:07 +00:00
H.J. Lu 04570aaa8a Restore GL(dl_initial_dtv) 2012-09-06 16:29:10 -07:00
H.J. Lu b80af2f406 Remove _dl_initial_dtv
* csu/libc-tls.c (static_dtv): Renamed to ...
	(_dl_static_dtv): This.  Make it global.
	(_dl_initial_dtv): Removed.
	(__libc_setup_tls): Updated.
	* elf/dl-tls.c (DL_INITIAL_DTV): New macro.
	(_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
	DL_INITIAL_DTV.
2012-09-06 16:03:32 -07:00
Petr Machata 2abe9f1507 Synchronize with linux/elf.h.
Add new ARM and s390 note constants e.g. NT_*.
2012-09-06 12:41:14 -07:00
H.J. Lu 5385d052d6 Mention BZ #14545 in NEWS 2012-09-06 12:20:16 -07:00
H.J. Lu 0948c3af9d Always check dtv before freeing dtv[-1] 2012-09-06 11:51:52 -07:00
H.J. Lu f5fce0629a Add tst-cancel21-static.c 2012-09-06 11:50:21 -07:00
H.J. Lu a5055ad15a Use crtbeginT.o to statically link programs 2012-09-06 11:43:43 -07:00
Chris Metcalf 48bac3debb tile: fix type of prfpregset_t in <sys/procfs.h>
The previous dummy definition (as type int) was fine in general, since
tile doesn't have floating-point registers, but it confused gdb's
configure, leading to later compile errors.  This change also makes
prfpregset_t parallel to prgregset_t, which seems like generally the
right thing regardless of the non-existence of the actual registers :-)
2012-09-06 11:43:56 -04:00
Chris Metcalf 9207320187 tile: Add BZ to Changelog and update NEWS 2012-09-06 11:37:07 -04:00
Joseph Myers ed8c2ecd21 Fix strtod test for values above maximum for IBM long double. 2012-09-06 15:33:06 +00:00
Chris Metcalf 053406fa70 tile: BZ#14237: fix __tls_get_addr bug initializing new modules
We were missing a check for TLS_DTV_UNALLOCATED; if set, we need
to go to the slow path.
2012-09-06 11:25:04 -04:00
Andreas Krebbel 14c996c83b S/390: Fix optimized mem* running on 31 bit kernels. 2012-09-06 10:28:52 +02:00
Jeff Law 1415687eac Fix botched NEWS 2012-09-05 22:45:10 -06:00
Jeff Law a0bbdad364 [BZ#14510]
* locales/es_DO: Fix LC_NUMERIC decimal_point and thousands_sep.
        * locales/es_GT: Likewise.
        * locales/es_HN: Likewise.
        * locales/es_MX: Likewise.
        * locales/es_NI: Likewise.
        * locales/es_PA: Likewise.
        * locales/es_PR: Likewise.
        * locales/es_SV: Likewise.
2012-09-05 22:14:32 -06:00
David S. Miller ff04dda46d Recognize new sparc hwcap bits.
* sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
	HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
	* sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
	* sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
	entries.
2012-09-05 17:59:16 -07:00
David S. Miller 430d6ce62a Update sparc ULPs for recently added math tests.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-09-05 17:54:52 -07:00
Alexandre Oliva 24d4e01b22 * malloc/arena.c: Fold copyright years.
* malloc/mcheck.c, malloc/memusage.c: Likewise.
2012-09-05 20:47:16 -03:00
Alexandre Oliva 61d5817416 * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation. 2012-09-05 20:37:37 -03:00
Alexandre Oliva 20196a5e5e * manual/contrib.texi (Contributors): Fix typo. Complete entry. 2012-09-05 16:20:45 -03:00
Alexandre Oliva 5c44738353 Don't change no_dyn_threshold on mallopt failure
* malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
	change internal state upon failure.
2012-09-05 15:43:04 -03:00
Alexandre Oliva fad64255f4 Fix typos in malloc/.
* malloc/mcheck.c (mcheck_check_all): Fix typo.
	* malloc/memusage.c (mmap): Likewise.
	(mmap64, mremap): Likewise.  Adjust name in comment.
2012-09-05 15:19:44 -03:00
Siddhesh Poyarekar 1ffb8c9001 Fix typos in comments
* libio/fileops.c: Fix typos in comments.
        * libio/oldfileops.c: Likewise.
        * libio/wfileops.c: Likewise.
2012-09-05 22:04:57 +05:30
Siddhesh Poyarekar b9dafc562e Fixed minor typo in ChangeLog 2012-09-05 21:54:24 +05:30
Siddhesh Poyarekar 6ef9cc37f0 Return requested size for malloc_usable_size when MALLOC_CHECK_ > 0
[BZ #1349]

malloc_usable_size returns the usable size in an allocated chunk,
which may be >= the requested size. In the case of MALLOC_CHECK_ being
exported to > 0 however, only the requested size is usable, since a
magic value is written at the end of the request size to trap writes
beyond request bounds. Hence, when MALLOC_CHECK_ is exported to > 0,
malloc_usable_size() should return the request size.
2012-09-05 21:49:30 +05:30
Andreas Schwab 4d038ae316 Increase timeout for stdlib/tst-strtod-overflow 2012-09-05 18:13:21 +02:00
Allan McRae c4e85184d2 Improve C++ header location detection (bug 13966) 2012-09-06 00:16:24 +10:00
Andreas Schwab a0070b7e70 Use LDBL_MIN_EXP to distinguish Intel and Motorola extended float format 2012-09-05 13:53:43 +02:00
Andreas Schwab e1343020fb Correctly handle Motorola extended float format in tst-strtod-round 2012-09-05 12:40:45 +02:00
David S. Miller 0a9f1987ad Use sparcv8 GMP routines when building 32-bit sparcv9.
* sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
	* sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
2012-09-04 19:20:03 -07:00
Florian Weimer edb3cb8831 stdlib/tst-secure-getenv.c: whitespace-only changes in comments 2012-09-04 15:01:18 +02:00
Florian Weimer 292378045c stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID failures 2012-09-04 14:36:56 +02:00
Joseph Myers 60160d83a0 Fix iogetdelim.c (latent) integer overflow (bug 9914). 2012-09-04 11:24:43 +00:00
Andreas Jaeger bcd6c8dc64 Update libm-test-ulps 2012-09-03 15:43:56 +02:00
Liubov Dmitrieva 4ffffbd272 Add optimized sinf and cosf routines for x86 and x86-64
* sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
	Add s_sinf-sse2, s_conf-sse2.

	* sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
	* sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
	* sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
	* sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.

	* sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
	for using routine as __sinf_ia32.
	Use macro for function declaration and weak_alias.
	* sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
	for using routine as __cosf_ia32.
	Use macro for function declaration and weak_alias.

	* sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
	* sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.

	* sysdeps/x86_64/fpu/s_sinf.S: New file.
	* sysdeps/x86_64/fpu/s_cosf.S: New file.
	* sysdeps/x86_64/fpu/libm-test-ulps: Update.

	* math/libm-test.inc (cos_test): Add more test cases.
	(sin_test): Likewise.
	(sincos_test): Likewise.
2012-09-03 15:32:13 +02:00
Andreas Krebbel 511fa2864a S/390: Make IFUNC optimized mem* functions hidden. 2012-09-03 14:08:52 +02:00
H.J. Lu 5f30cfec00 Use the first element of GOT for ld.so addresses
[BZ #14538]
	* sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
	first element of the GOT.
	(elf_machine_load_address): Return the difference between
	the runtime address of _DYNAMIC and elf_machine_dynamic ().
2012-09-02 05:22:24 -07:00
Allan McRae 0786794f3a Check for gawk >= 3.0 (bug 13412) 2012-09-02 09:30:18 +10:00
Joseph Myers 26889eacc2 Remove __ASSUME_POSIX_CPU_TIMERS. 2012-09-01 21:32:04 +00:00
Joseph Myers 033d54a2d4 Fix sem_post race (bug 14532). 2012-08-31 19:49:31 +00:00
H.J. Lu d22e28b070 Use LD_SO to set $ld_so_name/$ld_so_version 2012-08-29 06:45:37 -07:00
Siddhesh Poyarekar 050af9c4e8 Don't make ttyname* fail if proc filesystem is not available
The ttyname and ttyname_r functions on Linux now fall back to
searching for the tty file descriptor in /dev/pts or /dev if /proc is
not available.  This allows creation of chroots without the procfs
mounted on /proc.

Fixes BZ #14516.
2012-08-29 10:04:23 +05:30
Joseph Myers ad845c0be9 Remove __ASSUME_STAT64_SYSCALL. 2012-08-27 19:36:04 +00:00
Mike Frysinger 5dbf56af7e update NEWS 2012-08-27 13:30:49 -04:00
Guido Guenther 89570c6269 mips: clear condition bit 23 in fpu too
We've been carrying this in Gentoo for quite a long time to fix some test
failures that people hit.

Original message:
	> make[4]: *** [/glibc/glibc-package-2.3/mips-linux/obj/math/test-fpucw.out] Error 1
	This test fails since the read back fpu control word is 0x80000 instead
	of 0x0. I wonder if this patch is correct:
	...
	which additionally masks out the condition bit 23 - note that the other
	condition bits (25-31) are masked out too?

URL: http://sourceware.org/ml/libc-alpha/2002-10/msg00392.html
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-08-27 12:41:28 -04:00
Mike Frysinger 563c840564 alpha: add conditional fdatasync support
While most arches have had the fdatasync syscall for a long time, the
alpha port didn't add it until the 2.6.22 release.

This is heavily based on Aurelien Jarno's initial work.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-08-27 12:16:28 -04:00
Joseph Myers 7efb4737dd Fix sign of zero on strtod underflow (bug 14519). 2012-08-27 16:04:19 +00:00