Roland McGrath [Tue, 12 Mar 2013 19:47:36 +0000 (12:47 -0700)]
Add sysdeps/init_array to produce empty crt[in].o and use .preinit_array for gcrt1.o
Roland McGrath [Tue, 12 Mar 2013 19:49:13 +0000 (12:49 -0700)]
Fix up log entry.
Mike Frysinger [Mon, 11 Mar 2013 01:22:12 +0000 (01:22 +0000)]
ia64: fix set-but-unused warnings with syscalls
These macros often set up a variable that later macros sometimes do
not use. Add unused attribute to avoid that.
Similarly, the ia64 code tends to check the err field rather than
the val (which is opposite of most arches) leading to the same
kind of warning. Replace this with a dummy reference.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Mon, 11 Mar 2013 01:20:39 +0000 (01:20 +0000)]
ia64: fix strict aliasing warnings with libm error
The current code declares double constants by using a char buffer and
then casting the pointer to a different type. This makes the aliasing
logic unhappy. Change it to use a union instead to avoid that.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 10 Mar 2013 11:49:29 +0000 (11:49 +0000)]
ia64: fix strict aliasing warnings with func descriptors
Function pointers on ia64 are like parisc -- they're plabels. While
the parisc port enjoys a gcc builtin for extracting the address here,
ia64 has no such luck.
Casting & dereferencing in one go triggers a strict aliasing warning.
Use a union to fix that.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Joseph Myers [Mon, 11 Mar 2013 23:55:55 +0000 (23:55 +0000)]
Add comments about ARM configure -fno-unwind-tables handling.
Roland McGrath [Mon, 11 Mar 2013 23:45:25 +0000 (16:45 -0700)]
ARM: Consolidate setjmp details in include/bits/setjmp.h file.
Roland McGrath [Mon, 11 Mar 2013 23:44:31 +0000 (16:44 -0700)]
ARM: Convert string/ assembly to unified syntax.
Roland McGrath [Mon, 11 Mar 2013 17:57:55 +0000 (10:57 -0700)]
ARM: Use r10 instead of r9.
Andreas Jaeger [Mon, 11 Mar 2013 18:57:48 +0000 (19:57 +0100)]
AM33: Use <bits/mman.h>
Andreas Jaeger [Mon, 11 Mar 2013 18:56:44 +0000 (19:56 +0100)]
Use <bits/mman.h> on ia64
Roland McGrath [Mon, 11 Mar 2013 16:26:43 +0000 (09:26 -0700)]
Clean up ARM preconfigure.
Ondrej Bilka [Mon, 11 Mar 2013 14:39:08 +0000 (15:39 +0100)]
Remove Prefer_SSE_for_memop on x64
Andreas Schwab [Tue, 5 Mar 2013 09:54:01 +0000 (10:54 +0100)]
Remove extra pthread_atfork compat symbols
Mike Frysinger [Sun, 10 Mar 2013 22:53:15 +0000 (22:53 +0000)]
ia64: makecontext: fix signed warnings
The ia64_rse_is_rnat_slot func expects an unsigned pointer, but we're
passing in a signed pointer. The signness doesn't matter here, so
convert it to unsigned.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 10 Mar 2013 11:48:40 +0000 (11:48 +0000)]
ia64: fix NEED_DL_SYSINFO_DSO conditionals
The recent change to clean up these defines missed the ia64 logic.
Update it accordingly.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Paul Pluzhnikov [Sat, 9 Mar 2013 04:31:23 +0000 (20:31 -0800)]
Set LC_ALL=C before sed.
Roland McGrath [Fri, 8 Mar 2013 22:31:33 +0000 (14:31 -0800)]
Add dependency tracking for preconfigure files.
Joseph Myers [Fri, 8 Mar 2013 21:27:42 +0000 (21:27 +0000)]
Remove __malloc_ptr_t.
Joseph Myers [Fri, 8 Mar 2013 16:47:43 +0000 (16:47 +0000)]
Use ISO C prototype for __default_morecore.
Joseph Myers [Fri, 8 Mar 2013 16:46:45 +0000 (16:46 +0000)]
Remove __malloc_ptrdiff_t.
Joseph Myers [Fri, 8 Mar 2013 16:46:07 +0000 (16:46 +0000)]
Remove __malloc_size_t.
Adhemerval Zanella [Fri, 8 Mar 2013 14:07:15 +0000 (11:07 -0300)]
PowerPC: unify math_ldbl.h implementations
This patch removes redudant definition from PowerPC specific
math_ldbl, using the definitions from ieee754 math_ldbl.h.
Siddhesh Poyarekar [Fri, 8 Mar 2013 06:08:41 +0000 (11:38 +0530)]
Consolidate copies of mp code in powerpc
Retain a single copy of the mp code in power4 instead of the two
identical copies in powerpc32 and powerpc64.
Richard Henderson [Thu, 7 Mar 2013 17:07:51 +0000 (09:07 -0800)]
arm: Implement armv6 optimized string routines
The strcpy and strchr (and related) functions are four times faster
than the byte-by-byte default versions.
The strlen function is twice as fast for long strings and 50% faster
for short strings over the armv4 version.
Andreas Jaeger [Thu, 7 Mar 2013 14:28:54 +0000 (15:28 +0100)]
AARCH64: Use <bits/mman-linux.h>
* sysdeps/unix/sysv/linux/aarch64/bits/mman.h: Remove all
defines provided by bits/mman-linux.h and include <bits/mman-linux.h>.
Andreas Jaeger [Thu, 7 Mar 2013 12:06:20 +0000 (13:06 +0100)]
Install <bits/mman-linux.h>
* sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
bits/mman-linux.h.
Siddhesh Poyarekar [Thu, 7 Mar 2013 07:55:02 +0000 (13:25 +0530)]
Merge powerpc slowexp.c into generic code
Siddhesh Poyarekar [Thu, 7 Mar 2013 07:53:07 +0000 (13:23 +0530)]
Merge powerpc slowpow.c into generic code
Siddhesh Poyarekar [Thu, 7 Mar 2013 07:48:56 +0000 (13:18 +0530)]
Use an intermediate variable to sum exponents in powerpc __mul and __sqr
Siddhesh Poyarekar [Thu, 7 Mar 2013 06:53:29 +0000 (12:23 +0530)]
Use generic mpa.c code for everything except __mul and __sqr
Siddhesh Poyarekar [Thu, 7 Mar 2013 06:45:08 +0000 (12:15 +0530)]
Remove PIPE_BUF Linux-specific code
Fixes BZ #12723
The variable pipe buffer size does nothing to the value of PIPE_BUF,
since the number of bytes that are atomically written is still
PIPE_BUF on Linux.
Ondrej Bilka [Wed, 6 Mar 2013 21:27:18 +0000 (22:27 +0100)]
Revert " * sysdeps/x86_64/strlen.S: Replace with new SSE2 based implementation"
This reverts commit
b79188d71716b6286866e06add976fe84100595e.
Ondrej Bilka [Wed, 6 Mar 2013 20:41:32 +0000 (21:41 +0100)]
* sysdeps/x86_64/strlen.S: Replace with new SSE2 based implementation
which is faster on all x86_64 architectures.
Tested on AMD, Intel Nehalem, SNB, IVB.
Patsy Franklin [Wed, 6 Mar 2013 17:54:10 +0000 (12:54 -0500)]
T_REMOVEDIR and AT_EACCESS have the same value.
Add comments to fcntl.h explaining why AT_REMOVEDIR
and AT_EACCESS can have the same value.
Andreas Jaeger [Wed, 6 Mar 2013 16:36:37 +0000 (17:36 +0100)]
Use <bits/mman-linux.h> for MIPS
* sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS):
Allow definition via __MAP_ANONYMOUS.
* sysdeps/unix/sysv/linux/mips/bits/mman.h: Remove all defines
provided by bits/mman-linux.h and include <bits/mman-linux.h>.
(__MAP_ANONYMOUS): Define.
Richard Henderson [Wed, 27 Feb 2013 00:17:51 +0000 (16:17 -0800)]
arm: Add optimized add_n and sub_n
Written from scratch rather than copied from GMP, due to LGPL 2.1 vs
GPL 3, but tested with the GMP testsuite.
This is 250% faster than the generic code as measured on Cortex-A15,
and the same speed as GMP on the same core, and probably everywhere.
Richard Henderson [Tue, 26 Feb 2013 23:49:51 +0000 (15:49 -0800)]
arm: Add optimized submul_1
Written from scratch rather than copied from GMP, due to LGPL 2.1 vs
GPL 3, but tested with the GMP testsuite.
This is 50% faster than the generic code as measured on Cortex-A15.
It is 25% slower than the current GMP routine on the same core.
Richard Henderson [Tue, 26 Feb 2013 23:45:57 +0000 (15:45 -0800)]
arm: Add optimized addmul_1
Written from scratch rather than copied from GMP, due to LGPL 2.1 vs
GPL 3, but tested with the GMP testsuite.
This is 25% faster than the generic code as measured on Cortex-A15,
and the same speed as GMP on the same core. It's probably slower
than GMP on the A8 and A9 cores though.
Richard Henderson [Wed, 13 Feb 2013 20:06:42 +0000 (12:06 -0800)]
arm: Add optimized ffs for armv6t2
Richard Henderson [Fri, 1 Mar 2013 05:37:02 +0000 (21:37 -0800)]
arm: Implement hard-tp for GET_TLS
Richard Henderson [Wed, 27 Feb 2013 21:33:09 +0000 (13:33 -0800)]
arm: Tidy architecture selection
Richard Henderson [Fri, 15 Feb 2013 06:15:55 +0000 (22:15 -0800)]
arm: Unless arm4t, pop return address directly into pc
Richard Henderson [Fri, 15 Feb 2013 05:45:50 +0000 (21:45 -0800)]
arm: Commonize BX conditionals
Add BLX macro in addition and use it where appropriate.
Richard Henderson [Fri, 15 Feb 2013 05:17:19 +0000 (21:17 -0800)]
arm: Delete LOADREGS macro
There was only one user. It's "condition" argument was used
for "ia" rather than an actual condition. The apcs26 syntax
is almost certainly not needed, given current binutils requirements.
Richard Henderson [Fri, 15 Feb 2013 05:00:14 +0000 (21:00 -0800)]
arm: Use push/pop mnemonics
For arm this makes no difference--the result is bit-for-bit identical;
for thumb this results in smaller encodings. Perhaps it ought not and
this is in fact an assembler bug, but I also think it's clearer.
Richard Henderson [Thu, 14 Feb 2013 18:32:04 +0000 (10:32 -0800)]
arm: Enable thumb2 mode in assembly files
The preceeding patches have allowed for the few incompatibilities
between arm and thumb2 mode, or have marked the file as not wanting
to use thumb2 mode.
Richard Henderson [Thu, 14 Feb 2013 04:10:45 +0000 (20:10 -0800)]
arm: Introduce and use GET_TLS
Factor out the sequence needed to call kuser_get_tls, as we can't
play subtract into pc games in thumb mode. Prepare for hard-tp,
pulling the save of LR into the macro.
Richard Henderson [Thu, 14 Feb 2013 17:46:56 +0000 (09:46 -0800)]
arm: Introduce and use NEGOFF series of macros
There are several places in which we access negative offsets from
the thread-pointer, but thumb2 only supports positive offsets in
memory references.
Avoid duplicating the rather large macros in which these references
are embedded by abstracting out the operation.
Richard Henderson [Thu, 14 Feb 2013 05:21:39 +0000 (21:21 -0800)]
arm: Introduce and use LDST_PCREL
Macro-ising the few instances where we need to distinguish between
arm and thumb pc-relative memory operations.
Andreas Jaeger [Wed, 6 Mar 2013 15:39:56 +0000 (16:39 +0100)]
Remove MAP_GROWSUP on s390
* sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP):
Remove, it's not part of Linux headers.
Andreas Jaeger [Wed, 6 Mar 2013 15:35:19 +0000 (16:35 +0100)]
Sync with Linux 3.8
Andreas Jaeger [Wed, 6 Mar 2013 15:29:43 +0000 (16:29 +0100)]
Update date of last entry
Andreas Jaeger [Wed, 6 Mar 2013 15:28:39 +0000 (16:28 +0100)]
Use <bits/mman-linux.h> on M68k
Andreas Jaeger [Wed, 6 Mar 2013 15:27:24 +0000 (16:27 +0100)]
Use <bits/mman-linux.h> on ARM
Andreas Krebbel [Wed, 6 Mar 2013 08:57:32 +0000 (09:57 +0100)]
S/390: Add BZ number to changelog entry and NEWS.
Paul Pluzhnikov [Wed, 6 Mar 2013 05:38:19 +0000 (21:38 -0800)]
Replace __builtin_expect(..., 0) with __glibc_unlikely().
Joseph Myers [Wed, 6 Mar 2013 00:10:21 +0000 (00:10 +0000)]
Remove powerpc64 bounded-pointers code.
Paul Pluzhnikov [Tue, 5 Mar 2013 21:44:33 +0000 (13:44 -0800)]
* stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
call free(NULL).
Andreas Jaeger [Tue, 5 Mar 2013 20:59:58 +0000 (21:59 +0100)]
Use bits/mman-linux.h for TILE
* sysdeps/unix/sysv/linux/tile/bits/mman.h: Remove all defines
provided by bits/mman-linux.h and include <bits/mman-linux.h>.
David S. Miller [Tue, 5 Mar 2013 19:29:06 +0000 (14:29 -0500)]
Update Spanish PO file from translation team.
* po/es.po: Update from translation team.
Andreas Jaeger [Tue, 5 Mar 2013 18:40:13 +0000 (19:40 +0100)]
Define MCL_CURRENT, MCL_FUTURE in bits/mman-linux.h
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
<bits/mman-linux.h>.
(MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
is fine.
* sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
<bits/mman-linux.h> to end of file.
(MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
is fine.
* sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
<bits/mman-linux.h> to end of file.
(MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
is fine.
* sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
<bits/mman-linux.h> to end of file.
* sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
(MCL_CURRENT, MCL_FUTURE): Define here.
Andreas Krebbel [Tue, 5 Mar 2013 12:19:03 +0000 (13:19 +0100)]
S/390: Use attribute_hidden in ifunc-resolve.c
Andreas Krebbel [Tue, 5 Mar 2013 07:15:33 +0000 (08:15 +0100)]
S/390: Fix rt_sigprocmask syscall invocation in get/set/swapcontext.
Joseph Myers [Mon, 4 Mar 2013 23:53:05 +0000 (23:53 +0000)]
Remove powerpc32 strncmp comments about bounded pointers.
Andreas Jaeger [Mon, 4 Mar 2013 19:34:05 +0000 (20:34 +0100)]
Fix ChangeLog
remove duplicate line, use commit date
Andreas Jaeger [Mon, 4 Mar 2013 19:21:25 +0000 (20:21 +0100)]
Create <bits/mman-linux.h>
* sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with
Linux common definitions.
* sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
provided by bits/mman-linux.h and include <bits/mman-linux.h>.
* sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
Roland McGrath [Mon, 4 Mar 2013 17:40:25 +0000 (09:40 -0800)]
Rejigger i386 dl-sysdep.h files.
Adhemerval Zanella [Mon, 4 Mar 2013 14:37:51 +0000 (11:37 -0300)]
BZ #15055: Use __ieee754_sqrl in acoshl for lbdl-128ibm
Joseph Myers [Fri, 1 Mar 2013 22:53:27 +0000 (22:53 +0000)]
Use same installed powerpc headers for hard and soft float.
Roland McGrath [Fri, 1 Mar 2013 22:44:44 +0000 (14:44 -0800)]
Fix NEED_DL_SYSINFO_DSO conditionals.
Carlos O'Donell [Fri, 1 Mar 2013 21:18:08 +0000 (16:18 -0500)]
Revert GLIBC_PTHREAD_DEFAULT_STACKSIZE changes.
This reverts the change that allows the POSIX Thread default stack size
to be changed by the environment variable
GLIBC_PTHREAD_DEFAULT_STACKSIZE. It has been requested that more
discussion happen before this change goes into 2.18.
Siddhesh Poyarekar [Fri, 1 Mar 2013 15:15:17 +0000 (20:45 +0530)]
Fix build warning
Siddhesh Poyarekar [Fri, 1 Mar 2013 15:13:40 +0000 (20:43 +0530)]
Update NEWS
Siddhesh Poyarekar [Fri, 1 Mar 2013 08:45:39 +0000 (14:15 +0530)]
Set default stack size from program environment
New environment variable GLIBC_PTHREAD_DEFAULT_STACKSIZE to do this.
Chris Metcalf [Thu, 28 Feb 2013 21:51:56 +0000 (16:51 -0500)]
tile: Add priority inheritance futex support
Joseph Myers [Thu, 28 Feb 2013 21:28:57 +0000 (21:28 +0000)]
Remove bounded-pointers relics from am33 code.
Joseph Myers [Thu, 28 Feb 2013 21:23:47 +0000 (21:23 +0000)]
Remove powerpc32 bounded-pointers code.
Richard Henderson [Thu, 14 Feb 2013 04:32:14 +0000 (20:32 -0800)]
arm: Mark assembly files that will not use thumb mode
Some routines are written with complex LDM/STM insns that cannot be
used in thumb mode, or are highly conditional requiring excessive
IT insns.
When a future patch goes in to enable thumb2 by default, this marker
will be used to override that default.
Richard Henderson [Thu, 14 Feb 2013 04:27:09 +0000 (20:27 -0800)]
arm: Add IT insns for thumb mode
These are ignored by the assembler in ARM mode, so by
default this has no effect on generated code.
Richard Henderson [Wed, 13 Feb 2013 01:15:52 +0000 (17:15 -0800)]
arm: Introduce and use PC_OFS
Scour the source for raw "-8" adjustments that are related to the
offset created by reading the pc.
Richard Henderson [Thu, 28 Feb 2013 07:04:17 +0000 (23:04 -0800)]
arm: Tidy whitespace in sysdep.h files
Richard Henderson [Tue, 12 Feb 2013 18:44:10 +0000 (10:44 -0800)]
arm: Include libc-do-syscall in sysdep-rtld-routines
When compiling with -mthumb, ld.so itself also needs __libc_do_syscall.
Richard Henderson [Fri, 15 Feb 2013 20:54:48 +0000 (12:54 -0800)]
arm: Handle armv6 in preconfigure
Richard Henderson [Fri, 15 Feb 2013 20:54:26 +0000 (12:54 -0800)]
arm: Update preconfigure fragment for gcc 4.8
New defines from gcc 4.8:
#define __ARM_ARCH_ISA_ARM 1
#define __ARM_ARCH_PROFILE 65
#define __ARM_ARCH_ISA_THUMB 2
#define __ARM_ARCH 7
all of which got in the way of the one we wanted:
#define __ARM_ARCH_7A__ 1
Siddhesh Poyarekar [Thu, 28 Feb 2013 05:43:05 +0000 (11:13 +0530)]
Sync up ppc add_magnitudes and sub_magnitudes with default code
Roland McGrath [Thu, 28 Feb 2013 00:36:47 +0000 (16:36 -0800)]
ARM: Macroize use of .cfi_sections directive.
Maciej W. Rozycki [Wed, 27 Feb 2013 23:45:07 +0000 (23:45 +0000)]
Add support for building as MIPS16 code.
Roland McGrath [Wed, 27 Feb 2013 22:59:25 +0000 (14:59 -0800)]
Add license exception text to gmon-start.
Richard Henderson [Wed, 27 Feb 2013 18:01:53 +0000 (10:01 -0800)]
Fix file modes
Richard Henderson [Thu, 14 Feb 2013 03:52:15 +0000 (19:52 -0800)]
Sync config.guess and config.sub with upstream
Siddhesh Poyarekar [Wed, 27 Feb 2013 05:58:20 +0000 (11:28 +0530)]
Format mpsqrt.c
Siddhesh Poyarekar [Wed, 27 Feb 2013 05:57:41 +0000 (11:27 +0530)]
Format mpatan2.c
Siddhesh Poyarekar [Wed, 27 Feb 2013 05:56:22 +0000 (11:26 +0530)]
Format mpatan.c
Siddhesh Poyarekar [Wed, 27 Feb 2013 05:55:39 +0000 (11:25 +0530)]
Format mptan.c
Siddhesh Poyarekar [Wed, 27 Feb 2013 05:54:45 +0000 (11:24 +0530)]
Format mplog.c
Roland McGrath [Wed, 27 Feb 2013 02:50:17 +0000 (18:50 -0800)]
Fix last change.
Roland McGrath [Wed, 27 Feb 2013 00:01:06 +0000 (16:01 -0800)]
Generalize %.v.i rule a bit.
Siddhesh Poyarekar [Tue, 26 Feb 2013 15:58:16 +0000 (21:28 +0530)]
Another tweak to the multiplication algorithm
Reduce the formula to calculate mantissa so that we reduce the net
number of multiplications performed.
Siddhesh Poyarekar [Tue, 26 Feb 2013 09:45:27 +0000 (15:15 +0530)]
Don't duplicate mpone and mptwo