Roland McGrath [Tue, 9 Oct 2012 22:48:55 +0000 (15:48 -0700)]
Automatically disable libidn add-on under --disable-shared.
Roland McGrath [Tue, 9 Oct 2012 22:41:30 +0000 (15:41 -0700)]
Add missing magic to GLIBC_PROVIDES.
Roland McGrath [Tue, 9 Oct 2012 22:22:16 +0000 (15:22 -0700)]
Free errstring if _dl_addr doesn't returns 0
Joseph Myers [Tue, 9 Oct 2012 15:09:32 +0000 (15:09 +0000)]
Remove _G_off64_t and _G_stat64 from _G_config.h.
Maxim Kuvyrkov [Tue, 9 Oct 2012 03:52:53 +0000 (20:52 -0700)]
Fix BZ #14602: strstr and strcasestr return wrong result.
Joseph Myers [Mon, 8 Oct 2012 22:22:23 +0000 (22:22 +0000)]
Improve libm test coverage of classification macros / functions.
Jonathan Nieder [Mon, 8 Oct 2012 21:17:02 +0000 (14:17 -0700)]
Add bugs 14660, 14661 to NEWS
Jonathan Nieder [Mon, 8 Oct 2012 21:04:23 +0000 (14:04 -0700)]
nptl_db/Makefile: force C locale when running readelf
db-symbols.awk relies on English-language readelf output to find the
beginning of the symbol table, so force the locale.
Without this change, "make check" fails in non-English locales:
| diff -p -U 0 ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist [...]/nptl_db/libthread_db.symlist
| readelf -W -s [...]/nptl/libpthread.so | gawk -f [...]/nptl_db/db-symbols.v.i > [...]/nptl_db/db-symbols.out
| make[2]: *** [[...]/nptl_db/db-symbols.out] Erreur 1
Jonathan Nieder [Mon, 8 Oct 2012 21:04:15 +0000 (14:04 -0700)]
Makerules (check-abi-%): force C locale when running objdump
abilist.awk relies on English-language output to find the "file
format" header line in "objdump --dynamic-syms" output, so force the
locale.
Without this change, "make check" fails in non-English locales:
| diff -p -U 0 ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist [...]/locale/libBrokenLocale.symlist
| --- ../sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist 2012-10-02 18:33:50.
761863147 -0700
| +++ [...]/locale/libBrokenLocale.symlist 2012-10-03 00:11:22.
877234252 -0700
| @@ -0,0 +1 @@
| +Don't grok this line: [...]/locale/libBrokenLocale.so: format de fichier elf64-x86-64
| make[2]: *** [check-abi-libBrokenLocale] Erreur 1
Andreas Schwab [Mon, 8 Oct 2012 09:41:11 +0000 (11:41 +0200)]
Fix missing include in sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c
David S. Miller [Sun, 7 Oct 2012 01:36:40 +0000 (18:36 -0700)]
Fix Niagara-4 memcpy bug on 32-bit.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
upper 32-bits of the length value in %o2 since we use branch-on-register
tests which consider the entire 64-bit register.
H.J. Lu [Sat, 6 Oct 2012 23:04:56 +0000 (16:04 -0700)]
Add a strstr test for page boundary
David S. Miller [Sat, 6 Oct 2012 04:22:41 +0000 (21:22 -0700)]
Correct libthreadb register access for 64-bit sparc.
[BZ #14568]
* sysdeps/sparc/tls.h (DB_THREAD_SELF_INCLUDE): Delete.
(DB_THREAD_SELF): Use constants for the register offsets. Correct
the case of a 64-bit debugger with a 32-bit inferior.
David S. Miller [Fri, 5 Oct 2012 21:46:47 +0000 (14:46 -0700)]
Add Niagara-4 optimized memset/bzero implementation.
* sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
file.
* sysdeps/sparc/sparc64/multiarch/Makefile: Add to
sysdep_routines.
* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
* sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
and bzero when HWCAP_SPARC_CRYPTO is present.
H.J. Lu [Fri, 5 Oct 2012 20:30:02 +0000 (13:30 -0700)]
Add a testase for BZ #14602
H.J. Lu [Fri, 5 Oct 2012 20:32:07 +0000 (13:32 -0700)]
Test strcasestr/strchr/strstr under all implementations
Roland McGrath [Fri, 5 Oct 2012 16:39:23 +0000 (09:39 -0700)]
Clean up R_ARM_PC24 handling.
H.J. Lu [Fri, 5 Oct 2012 17:26:29 +0000 (10:26 -0700)]
Move _dl_important_hwcaps to dl-hwcaps.c
H.J. Lu [Fri, 5 Oct 2012 17:23:58 +0000 (10:23 -0700)]
Add test cases for BZ #14557
H.J. Lu [Fri, 5 Oct 2012 17:22:14 +0000 (10:22 -0700)]
Set GL(dl_nns) to 1 for vDSO in libc.a
H.J. Lu [Fri, 5 Oct 2012 17:20:39 +0000 (10:20 -0700)]
Set up the data structures for vDSO in libc.a
Joseph Myers [Fri, 5 Oct 2012 17:06:23 +0000 (17:06 +0000)]
Improve libm-test.inc comment.
Joseph Myers [Fri, 5 Oct 2012 16:00:07 +0000 (16:00 +0000)]
Update config.guess and config.sub.
Siddhesh Poyarekar [Fri, 5 Oct 2012 13:22:35 +0000 (18:52 +0530)]
Unlock mutex before going back to waiting for PI mutexes
[BZ #14417]
A futex call with FUTEX_WAIT_REQUEUE_PI returns with the mutex locked
on success. If such a successful thread is pipped to the cond_lock by
another spuriously woken waiter, it could be sent back to wait on the
futex with the mutex lock held, thus causing a deadlock. So it is
necessary that the thread relinquishes the mutex before going back to
sleep.
Khem Raj [Sun, 9 Sep 2012 04:29:10 +0000 (21:29 -0700)]
powerpc: add name_to_handle_at, open_by_handle etc. to bits/fcntl.h
Fixes BZ #14251.
Roland McGrath [Thu, 4 Oct 2012 23:31:43 +0000 (16:31 -0700)]
Name space hygeine for madvise.
Roland McGrath [Wed, 3 Oct 2012 23:13:14 +0000 (16:13 -0700)]
Clean up conditionalize of ld.so.cache support.
Steve Ellcey [Wed, 3 Oct 2012 21:32:26 +0000 (14:32 -0700)]
2012-10-03 Steve Ellcey <sellcey@mips.com>
* sysdeps/mips/ieee754.h: Move to...
* sysdeps/mips/ieee754/ieee754.h: Here.
* sysdeps/mips/mips32/Implies: Add mips/ieee754.
* sysdeps/mips/mips64/Implies: Ditto.
* sysdeps/mips/mips64/n32/Implies: Ditto.
* sysdeps/mips/mips64/n64/Implies: Ditto.
Steve Ellcey [Wed, 3 Oct 2012 21:31:00 +0000 (14:31 -0700)]
2012-10-03 Steve Ellcey <sellcey@mips.com>
* sysdeps/mips/ieee754.h: Move to...
* sysdeps/mips/ieee754/ieee754.h: Here.
* sysdeps/mips/mips32/Implies: Add mips/ieee754.
* sysdeps/mips/mips64/Implies: Ditto.
* sysdeps/mips/mips64/n32/Implies: Ditto.
* sysdeps/mips/mips64/n64/Implies: Ditto.
Pino Toscano [Wed, 3 Oct 2012 20:57:38 +0000 (22:57 +0200)]
sysconf/posix: handle _SC_LEVEL4_CACHE_LINESIZE
Roland McGrath [Wed, 3 Oct 2012 20:43:58 +0000 (13:43 -0700)]
Remove sysdeps/unix/bsd/confstr.h file.
Alexandre Oliva [Wed, 3 Oct 2012 02:40:52 +0000 (23:40 -0300)]
* scripts/check-local-headers.sh: Exclude sys/sdt.h and
sys/sdt-config.h.
H.J. Lu [Tue, 2 Oct 2012 23:50:47 +0000 (16:50 -0700)]
Update copyright years
Roland McGrath [Tue, 2 Oct 2012 22:56:15 +0000 (15:56 -0700)]
Use ElfW(Off) rather than off_t for offsets within ELF files.
Dmitry V. Levin [Thu, 23 Aug 2012 14:29:43 +0000 (14:29 +0000)]
nscd: fix compilation flags
Commit
61653dfb81b776bb72ce4304175b861d77c357a8 added support for
compilers predefining _FORTIFY_SOURCE by adding -U_FORTIFY_SOURCE to
CPPFLAGS for these compilers, but that change doesn't work quite well in
case of nscd: its Makefile sets _FORTIFY_SOURCE using CFLAGS instead of
CPPFLAGS and, thanks to compilation rules defined in Makerules, CPPFLAGS
are passed to compiler after CFLAGS, resulting to a build with
_FORTIFY_SOURCE turned off.
This change implements a more safe method of passing preprocessor and
compiler flags so that no nscd modules could be accidentally forgotten.
Dmitry V. Levin [Sun, 13 Sep 2009 19:45:27 +0000 (19:45 +0000)]
Clarify memory allocation error diagnostics to avoid confusion
H.J. Lu [Tue, 2 Oct 2012 12:05:17 +0000 (05:05 -0700)]
Define HAS_FMA with bit_FMA_Usable
Siddhesh Poyarekar [Tue, 2 Oct 2012 03:55:42 +0000 (09:25 +0530)]
Split my last ChangeLog entry into respective arch-specific files
Siddhesh Poyarekar [Tue, 2 Oct 2012 03:22:55 +0000 (08:52 +0530)]
Fix clone flag name in comment to CLONE_CHILD_CLEARTID.
Roland McGrath [Mon, 1 Oct 2012 21:39:29 +0000 (14:39 -0700)]
Get rid of unused __swblk_t type.
Jeff Law [Mon, 1 Oct 2012 21:32:39 +0000 (15:32 -0600)]
2012-10-01 Patsy Franklin <pfrankli@redhat.com>
Honza Horak <hhorak@redhat.com>
* nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
(xdr_mapname): Use YPMAXMAP as maxsize.
(xdr_peername): Use YPMAXPEER as maxsize.
(xdr_keydat): Use YPAXRECORD as maxsize.
(xdr_valdat): Use YPMAXRECORD as maxsize.
Roland McGrath [Mon, 1 Oct 2012 20:07:58 +0000 (13:07 -0700)]
Define __have_atfcts global in stub openat implementation.
Roland McGrath [Mon, 1 Oct 2012 19:55:34 +0000 (12:55 -0700)]
Clean up init-first.c files.
Siddhesh Poyarekar [Mon, 1 Oct 2012 17:50:42 +0000 (23:20 +0530)]
Fix exception table for i386 pthread_cond_wait
[BZ #14477]
Add an additional entry in the exception table to jump to
__condvar_w_cleanup2 instead of __condvar_w_cleanup for PI mutexes
when %ebx contains the address of the futex instead of the condition
variable.
Joseph Myers [Mon, 1 Oct 2012 08:30:06 +0000 (08:30 +0000)]
Fix sign of inexact zero return from fma (bug 14645).
Joseph Myers [Sat, 29 Sep 2012 18:31:54 +0000 (18:31 +0000)]
Fix sign of exact zero return from fma (bug 14638).
David S. Miller [Fri, 28 Sep 2012 23:36:35 +0000 (16:36 -0700)]
Uncorrupt Sparc ULPS file.
* sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
Roland McGrath [Fri, 28 Sep 2012 23:22:51 +0000 (16:22 -0700)]
Implement POSIX-generic sleep via nanosleep rather than SIGARLM.
H.J. Lu [Fri, 28 Sep 2012 23:14:32 +0000 (16:14 -0700)]
Fix the ChangeLog entry
Roland McGrath [Fri, 28 Sep 2012 22:45:07 +0000 (15:45 -0700)]
Move _G_config.h with Linuxism to linux/ directory.
Roland McGrath [Fri, 28 Sep 2012 22:04:26 +0000 (15:04 -0700)]
Fix stub open.c to define __libc_open.
Roland McGrath [Fri, 28 Sep 2012 21:48:17 +0000 (14:48 -0700)]
Add a missing $(make-target-directory).
Roland McGrath [Fri, 28 Sep 2012 21:33:40 +0000 (14:33 -0700)]
Quiet make warning under --disable-shared.
Roland McGrath [Fri, 28 Sep 2012 21:29:14 +0000 (14:29 -0700)]
Conditionalize elf/dl-sysdep.c contents on [SHARED].
Roland McGrath [Fri, 28 Sep 2012 20:58:55 +0000 (13:58 -0700)]
Clean up *objdir variables.
Roland McGrath [Fri, 28 Sep 2012 20:48:14 +0000 (13:48 -0700)]
Avoid more warnings in nsswitch.c
David S. Miller [Fri, 28 Sep 2012 20:19:13 +0000 (13:19 -0700)]
Revert "Add missed ildouble case in yesterday's sparc ULPs update for clog/clog10."
This reverts commit
084b8fabd28ab541efbe5ce7ef6008107a4b86ea.
Sorry something put garbage into the string, will debug this.
Roland McGrath [Fri, 28 Sep 2012 20:21:08 +0000 (13:21 -0700)]
Avoid unused static function warning in nsswitch.c.
David S. Miller [Fri, 28 Sep 2012 20:15:51 +0000 (13:15 -0700)]
Add missed ildouble case in yesterday's sparc ULPs update for clog/clog10.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
David S. Miller [Fri, 28 Sep 2012 20:02:42 +0000 (13:02 -0700)]
Add Niagara-4 optimized memcpy and mempcpy.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
file.
* sysdeps/sparc/sparc64/multiarch/Makefile: Add to
sysdep_routines.
* sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
and mempcpy when HWCAP_SPARC_CRYPTO is set.
Pino Toscano [Fri, 28 Sep 2012 19:33:52 +0000 (21:33 +0200)]
tst-mknodat: create a FIFO instead of a socket
A FIFO is the only special file which is guaranteed to be created with mknod/mknodat.
Jeff Law [Fri, 28 Sep 2012 18:48:42 +0000 (12:48 -0600)]
2012-09-28 Andreas Schwab <schwab@linux-m68k.org>
[BZ #6530]
* stdio-common/vfprintf.c (process_string_arg): Revert
2000-07-22 change.
2011-09-28 Jonathan Nieder <jrnieder@gmail.com>
* stdio-common/Makefile (tst-sprintf-ENV): Set environment
for testcase.
* stdio-common/tst-sprintf.c: Include <locale.h>
(main): Test sprintf's handling of incomplete multibyte
characters.
H.J. Lu [Fri, 28 Sep 2012 18:38:26 +0000 (11:38 -0700)]
Re-order the last ChangeLog entry
H.J. Lu [Fri, 28 Sep 2012 16:42:08 +0000 (09:42 -0700)]
Remove mips VERSYMIDX macro definition
H.J. Lu [Fri, 28 Sep 2012 16:41:16 +0000 (09:41 -0700)]
Remove arm ADDRIDX macro definition
H.J. Lu [Fri, 28 Sep 2012 18:30:57 +0000 (11:30 -0700)]
Define VERSYMIDX/VALIDX/ADDRIDX in ldsodefs.h
H.J. Lu [Fri, 28 Sep 2012 18:25:56 +0000 (11:25 -0700)]
Improve ChangeLog entry for x86_64 strncmp-ssse3.S
Richard Henderson [Fri, 28 Sep 2012 17:51:01 +0000 (10:51 -0700)]
alpha: Fix all users of SYSCALL_ERROR_HANDLER
The fix begun in
64e65bc1 was incomplete. Fixed by adding
a new SYSCALL_ERROR_FALLTHRU macro.
Pino Toscano [Fri, 28 Sep 2012 16:35:43 +0000 (18:35 +0200)]
aio_fsync: fix the access mode check
Make use of O_ACCMODE and O_RDONLY instead of assuming details of the O_* flags.
Jeff Law [Fri, 28 Sep 2012 16:15:05 +0000 (10:15 -0600)]
[BZ #11438]
* sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918
* addresses
to global scope.
* posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
addresses are in the same scope as 192.0.2/24.
* posix/gai.conf: Document new scope table defaults.
H.J. Lu [Fri, 28 Sep 2012 14:58:02 +0000 (07:58 -0700)]
Fix a typo in ChangeLog
Siddhesh Poyarekar [Fri, 28 Sep 2012 13:07:23 +0000 (18:37 +0530)]
Don't flush write buffer for ftell
[BZ #5298]
Use write pointer state along with the file offset and/or the read
pointers to get the current file position.
Siddhesh Poyarekar [Fri, 28 Sep 2012 12:50:40 +0000 (18:20 +0530)]
Adjust wide data buffer pointers during fseek and ftell
[BZ #14543]
Set the internal buffer state correctly whenever the external buffer
state is modified by fseek by either computing the current
_IO_read_ptr/end for the internal buffer based on the new _IO_read_ptr
in the external buffer or converting the content read into the
external buffer, up to the extent of the requested fseek offset.
David S. Miller [Fri, 28 Sep 2012 05:27:32 +0000 (22:27 -0700)]
Update sparc ULPS for recent clog/clog10 activity.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
David S. Miller [Fri, 28 Sep 2012 04:33:54 +0000 (21:33 -0700)]
Fix sparc64 crashes with LD_BIND_NOW and --enable-bind-now.
[BZ #14376]
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
pass reloc->r_addend in as the 'high' argument to
sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
Pino Toscano [Thu, 27 Sep 2012 23:08:17 +0000 (01:08 +0200)]
Include <pthread.h> where needed.
Steve Ellcey [Thu, 27 Sep 2012 21:07:15 +0000 (14:07 -0700)]
Remove sysdeps/ieee754/ldbl-128/bits/huge_vall.h and let builds use
bits/huge_vall.h instead. There is no longer any need for the special
huge_vall.h file.
Steve Ellcey [Thu, 27 Sep 2012 21:06:11 +0000 (14:06 -0700)]
Remove sysdeps/ieee754/ldbl-128/bits/huge_vall.h and let builds
use bits/huge_vall.h instead. There is no longer any need for
the special huge_vall.h file.
H.J. Lu [Thu, 27 Sep 2012 14:43:03 +0000 (07:43 -0700)]
Don't define x86-64 __strncmp_ssse3 in libc.a
Marek Polacek [Wed, 26 Sep 2012 10:58:36 +0000 (12:58 +0200)]
Fix up definitions for older compilers.
Markus Trippelsdorf [Wed, 26 Sep 2012 10:46:51 +0000 (12:46 +0200)]
Update x86-64 ULPs
Joseph Myers [Wed, 26 Sep 2012 00:30:54 +0000 (00:30 +0000)]
Add __ppc_get_timebase_freq to powerpc-nofpu ABI baseline.
Roland McGrath [Tue, 25 Sep 2012 23:21:15 +0000 (16:21 -0700)]
Declare targets with .PHONY in Makefile.in.
Tulio Magno Quites Machado Filho [Tue, 25 Sep 2012 19:48:28 +0000 (14:48 -0500)]
Add __ppc_get_timebase_freq to ppc.h.
Alan Modra [Tue, 25 Sep 2012 21:30:06 +0000 (16:30 -0500)]
Fix bugs in powerpc pthread_once.
Ref gcc.gnu.org/bugzilla/show_bug.cgi?id=52839#c10
Release barriers are needed to ensure that any memory written by
init_routine is seen by other threads before *once_control changes.
In the case of clear_once_control we need to flush any partially
written state.
Joseph Myers [Tue, 25 Sep 2012 19:49:50 +0000 (19:49 +0000)]
Fix order of bug list in NEWS and remove duplicate entry.
Joseph Myers [Tue, 25 Sep 2012 19:43:49 +0000 (19:43 +0000)]
Fix inaccuracy of clog, clog10 near |z| = 1 (bug 13629).
Joseph Myers [Tue, 25 Sep 2012 19:41:26 +0000 (19:41 +0000)]
Add bug 14621 to NEWS.
Joseph Myers [Tue, 25 Sep 2012 19:38:15 +0000 (19:38 +0000)]
Use size_t instead of int for internal variables in glob (bug 14621).
Liubov Dmitrieva [Tue, 25 Sep 2012 18:44:46 +0000 (20:44 +0200)]
Add optimized sincosf for SSE2 for x86 and x86-64
Liubov Dmitrieva [Tue, 25 Sep 2012 18:41:17 +0000 (20:41 +0200)]
Fix wrong ussage of sincos for subnormal arguments
Joseph Myers [Tue, 25 Sep 2012 12:37:37 +0000 (12:37 +0000)]
Remove various _G_*_t type names.
Siddhesh Poyarekar [Tue, 25 Sep 2012 08:40:29 +0000 (14:10 +0530)]
Shrink heap on linux when overcommit_memory == 2
Using madvise with MADV_DONTNEED to release memory back to the kernel
is not sufficient to change the commit charge accounted against the
process on Linux. It is OK however, when overcommit is enabled or is
heuristic. However, when overcommit is restricted to a percentage of
memory setting the contents of /proc/sys/vm/overcommit_memory as 2, it
makes a difference since memory requests will fail. Hence, we do what
we do with secure exec binaries, which is to call mmap on the region
to be dropped with MAP_FIXED. This internally unmaps the pages in
question and reduces the amount of memory accounted against the
process.
Siddhesh Poyarekar [Tue, 25 Sep 2012 03:58:43 +0000 (09:28 +0530)]
Fix minor typos in comments
Dmitry V. Levin [Mon, 24 Sep 2012 20:52:13 +0000 (20:52 +0000)]
Set "fail on error" mode directly in testsuite shell scripts
Dmitry V. Levin [Mon, 24 Sep 2012 20:58:00 +0000 (20:58 +0000)]
Add copyright notices to testsuite shell scripts
H.J. Lu [Tue, 25 Sep 2012 00:31:36 +0000 (17:31 -0700)]
Use static link by default for --disable-shared
Mike Frysinger [Mon, 24 Sep 2012 21:52:18 +0000 (17:52 -0400)]
ia64: define new get-rounding-mode.h header
The new strtod function wants rounding information from the C lib, so
move the guts of the ia64 version into a header file for it to use.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Mon, 24 Sep 2012 21:50:17 +0000 (17:50 -0400)]
ia64: override crtbeginT.o
The ia64 gcc port has never shipped a crtbeginT.o, so keep using the
old crtbegin.o object when static linking.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Chris Metcalf [Mon, 24 Sep 2012 20:03:33 +0000 (16:03 -0400)]
tile: fix two comments that said "tile" to properly say "tilepro"