platform/upstream/glibc.git
11 years agoFix a typo in the mremap comment.
Roland McGrath [Mon, 11 Feb 2013 21:06:09 +0000 (13:06 -0800)]
Fix a typo in the mremap comment.

11 years agoAdd CFI information for MIPS assembly sources.
Joseph Myers [Mon, 11 Feb 2013 18:19:14 +0000 (18:19 +0000)]
Add CFI information for MIPS assembly sources.

11 years agoFix typo in ChangeLog entry for commit 03759f47db62930f2dddf1c9733ef89b9d99e2da
Tom de Vries [Mon, 11 Feb 2013 13:52:13 +0000 (14:52 +0100)]
Fix typo in ChangeLog entry for commit 03759f47db62930f2dddf1c9733ef89b9d99e2da

11 years agoFix PF_LOCAL socket example sockaddr_un size calculation.
Roland McGrath [Fri, 8 Feb 2013 22:55:50 +0000 (14:55 -0800)]
Fix PF_LOCAL socket example sockaddr_un size calculation.

11 years agom68k: update kernel-features.h
Andreas Schwab [Fri, 8 Feb 2013 22:18:53 +0000 (23:18 +0100)]
m68k: update kernel-features.h

11 years agoRemove CHECK_N and bp-checks.h.
Joseph Myers [Fri, 8 Feb 2013 20:06:30 +0000 (20:06 +0000)]
Remove CHECK_N and bp-checks.h.

11 years agoRemove dead variable in generic strcpy.
Roland McGrath [Fri, 8 Feb 2013 18:46:32 +0000 (10:46 -0800)]
Remove dead variable in generic strcpy.

11 years agoSupport sysdeps/.../include/ directories.
Roland McGrath [Fri, 8 Feb 2013 18:18:52 +0000 (10:18 -0800)]
Support sysdeps/.../include/ directories.

11 years agoRefactor code out of nscd's two main poll loops.
Carlos O'Donell [Thu, 7 Feb 2013 19:28:53 +0000 (14:28 -0500)]
Refactor code out of nscd's two main poll loops.

We refactor the inotify file checking code and the
database clearing code out of the main_loop_poll and
mail_loop_epoll functions. We document some the related
functions with appropriate comments.

11 years agoAdd more comments to _dl_load_cache_lookup().
Carlos O'Donell [Thu, 7 Feb 2013 18:53:46 +0000 (13:53 -0500)]
Add more comments to _dl_load_cache_lookup().

Calling _dl_load_cache_lookup will load the cache if not already.
If loading the cache fails no more attempts will be made to load
the cache.

11 years agoBZ #15006: Updates NEWS and ChangeLog.
Carlos O'Donell [Fri, 8 Feb 2013 17:37:44 +0000 (12:37 -0500)]
BZ #15006: Updates NEWS and ChangeLog.

11 years agoARM: Support loading unmarked objects from cache.
Carlos O'Donell [Fri, 8 Feb 2013 17:26:12 +0000 (12:26 -0500)]
ARM: Support loading unmarked objects from cache.

ARM now supports loading unmarked objects from
the dynamic loader cache. Unmarked objects can
be used with the hard-float or soft-float ABI.
We must support loading unmarked objects during
the transition period from a binutils that does
not mark objects to one that does mark them with
the correct ELF flags.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
11 years agoUse ENTRY and END in more MIPS .S files.
Joseph Myers [Fri, 8 Feb 2013 02:03:10 +0000 (02:03 +0000)]
Use ENTRY and END in more MIPS .S files.

11 years agoRemove CHECK_1 and CHECK_1_NULL_OK.
Joseph Myers [Fri, 8 Feb 2013 01:12:11 +0000 (01:12 +0000)]
Remove CHECK_1 and CHECK_1_NULL_OK.

11 years agoRemove CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH for C code.
Joseph Myers [Fri, 8 Feb 2013 01:10:40 +0000 (01:10 +0000)]
Remove CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH for C code.

11 years agoRemove lots of inline keywords.
Roland McGrath [Thu, 7 Feb 2013 22:44:18 +0000 (14:44 -0800)]
Remove lots of inline keywords.

11 years agoMove nss directory into sysdeps Subdirs.
Roland McGrath [Tue, 5 Feb 2013 22:32:48 +0000 (14:32 -0800)]
Move nss directory into sysdeps Subdirs.

11 years agoReplace an alloca use with a variable-length array.
Roland McGrath [Tue, 5 Feb 2013 20:15:56 +0000 (12:15 -0800)]
Replace an alloca use with a variable-length array.

11 years agoFix aliases in stub lseek.
Roland McGrath [Tue, 5 Feb 2013 19:38:14 +0000 (11:38 -0800)]
Fix aliases in stub lseek.

11 years agoAdd missing includes to sysdeps/generic/malloc-sysdep.h.
Roland McGrath [Tue, 5 Feb 2013 19:34:06 +0000 (11:34 -0800)]
Add missing includes to sysdeps/generic/malloc-sysdep.h.

11 years agoMIPS: Correct formatting of syscall wrapper `asm' specifiers.
Maciej W. Rozycki [Tue, 5 Feb 2013 15:31:08 +0000 (15:31 +0000)]
MIPS: Correct formatting of syscall wrapper `asm' specifiers.

11 years agoMIPS: Respect the legacy syscall restart convention.
Maciej W. Rozycki [Tue, 5 Feb 2013 14:41:32 +0000 (14:41 +0000)]
MIPS: Respect the legacy syscall restart convention.

That convention requires the instruction immediately preceding SYSCALL
to initialize $v0 with the syscall number.  Then if a restart triggers,
$v0 will have been clobbered by the syscall interrupted, and needs to be
reinititalized.  The kernel will decrement the PC by 4 before switching
back to the user mode so that $v0 has been reloaded before SYSCALL is
executed again.  This implies the place $v0 is loaded from must be
preserved across a syscall, e.g. an immediate, static register, stack
slot, etc.

The restriction was lifted with Linux 2.6.36 kernel release and no
special requirements are placed around the SYSCALL instruction anymore,
however we still support older kernel binaries.

11 years agogetenv: Remove check for non-standard endianness.
Carlos O'Donell [Tue, 5 Feb 2013 01:06:46 +0000 (20:06 -0500)]
getenv: Remove check for non-standard endianness.

stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
else clause and remove check for non-standard endianness.

11 years agoAdd long-double sparc ULPs updates missing in previous commit.
David S. Miller [Mon, 4 Feb 2013 20:06:42 +0000 (12:06 -0800)]
Add long-double sparc ULPs updates missing in previous commit.

11 years agoUpdate sparc ULPs after Joseph's casin fixes.
David S. Miller [Mon, 4 Feb 2013 18:31:18 +0000 (10:31 -0800)]
Update sparc ULPs after Joseph's casin fixes.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

11 years agoRemove CHECK_STRING, CHECK_STRING_NULL_OK and __ubp_memchr.
Joseph Myers [Mon, 4 Feb 2013 16:29:39 +0000 (16:29 +0000)]
Remove CHECK_STRING, CHECK_STRING_NULL_OK and __ubp_memchr.

11 years agoDon't use GLIBC_PRIVATE errno outside of libraries
Andreas Schwab [Mon, 28 Jan 2013 16:51:03 +0000 (17:51 +0100)]
Don't use GLIBC_PRIVATE errno outside of libraries

11 years agoImprove link_map.l_addr comment.
Jan Kratochvil [Sat, 2 Feb 2013 09:29:17 +0000 (10:29 +0100)]
Improve link_map.l_addr comment.

11 years agoRemove unmaintained and unused localedata/CHECKSUMS
Andreas Jaeger [Fri, 1 Feb 2013 07:11:05 +0000 (08:11 +0100)]
Remove unmaintained and unused localedata/CHECKSUMS

11 years agoRemove BOUNDED_N and BOUNDED_1.
Joseph Myers [Fri, 1 Feb 2013 06:35:29 +0000 (06:35 +0000)]
Remove BOUNDED_N and BOUNDED_1.

11 years agoRemove bp-start.h and INIT_ARGV_and_ENVIRON.
Joseph Myers [Fri, 1 Feb 2013 00:06:18 +0000 (00:06 +0000)]
Remove bp-start.h and INIT_ARGV_and_ENVIRON.

11 years agoRemove CHECK_IOCTL, CHECK_FCNTL and CHECK_N_PAGES.
Joseph Myers [Thu, 31 Jan 2013 23:01:01 +0000 (23:01 +0000)]
Remove CHECK_IOCTL, CHECK_FCNTL and CHECK_N_PAGES.

11 years agoRemove CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
Joseph Myers [Thu, 31 Jan 2013 23:00:15 +0000 (23:00 +0000)]
Remove CHECK_SIGSET and CHECK_SIGSET_NULL_OK.

11 years agoRemove bp-semctl.h and CHECK_SEMCTL.
Joseph Myers [Thu, 31 Jan 2013 22:59:04 +0000 (22:59 +0000)]
Remove bp-semctl.h and CHECK_SEMCTL.

11 years agoRemove bp-thunks code.
Joseph Myers [Thu, 31 Jan 2013 22:57:06 +0000 (22:57 +0000)]
Remove bp-thunks code.

11 years agoFix casinh spurious underflows away from [-i,i] (bug 15062).
Joseph Myers [Thu, 31 Jan 2013 22:55:29 +0000 (22:55 +0000)]
Fix casinh spurious underflows away from [-i,i] (bug 15062).

11 years agoUpdate German translations.
David S. Miller [Thu, 31 Jan 2013 20:13:24 +0000 (15:13 -0500)]
Update German translations.

* po/de.po: Update from translation team.

11 years agoMIPS: Correct NewABI syscall wrapper whitespace damage.
Maciej W. Rozycki [Tue, 29 Jan 2013 13:30:16 +0000 (13:30 +0000)]
MIPS: Correct NewABI syscall wrapper whitespace damage.

11 years ago * time/tzfile.c: Include stdint.h for SIZE_MAX.
Maxim Kuvyrkov [Sat, 26 Jan 2013 01:56:21 +0000 (14:56 +1300)]
* time/tzfile.c: Include stdint.h for SIZE_MAX.

11 years ago2013-01-25 Steve Ellcey <sellcey@mips.com>
Steve Ellcey [Sat, 26 Jan 2013 00:11:40 +0000 (16:11 -0800)]
2013-01-25  Steve Ellcey  <sellcey@mips.com>

* sysdeps/mips/memmove.c: Remove.

11 years agoDon't bother checking for $CC option to accept ISO C89.
Thomas Schwinge [Fri, 25 Jan 2013 11:44:45 +0000 (12:44 +0100)]
Don't bother checking for $CC option to accept ISO C89.

11 years agoconfigure: Default to CPP="$CC -E" unless overridden.
Thomas Schwinge [Fri, 25 Jan 2013 11:33:19 +0000 (12:33 +0100)]
configure: Default to CPP="$CC -E" unless overridden.

11 years agoAArch64: Adding optimized strncmp implementation.
Marcus Shawcroft [Wed, 23 Jan 2013 16:33:14 +0000 (16:33 +0000)]
AArch64: Adding optimized strncmp implementation.

11 years agoAArch64: Adding optimized strnlen implementation.
Marcus Shawcroft [Wed, 23 Jan 2013 16:32:33 +0000 (16:32 +0000)]
AArch64: Adding optimized strnlen implementation.

11 years agoAvoid backtrace tests matching filenames when searching for function names.
Joseph Myers [Thu, 24 Jan 2013 00:23:13 +0000 (00:23 +0000)]
Avoid backtrace tests matching filenames when searching for function names.

11 years agoWhitespace fix for __glibc_likely/__glibc_unlikely defns.
Roland McGrath [Wed, 23 Jan 2013 23:00:39 +0000 (15:00 -0800)]
Whitespace fix for __glibc_likely/__glibc_unlikely defns.

11 years agoAdd a minor 'cas' atomic optimization on sparc.
David S. Miller [Wed, 23 Jan 2013 19:27:24 +0000 (11:27 -0800)]
Add a minor 'cas' atomic optimization on sparc.

* sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
(__arch_compare_and_exchange_val_32_acq): Use %g0 as second
argument of CAS if possible.
* sysdeps/sparc/sparc64/bits/atomic.h
(__arch_compare_and_exchange_val_32_acq): Likewise.
(__arch_compare_and_exchange_val_64_acq): Likewise.

11 years agoulimit: remove buggy bsd implementation
Pino Toscano [Wed, 23 Jan 2013 16:29:35 +0000 (17:29 +0100)]
ulimit: remove buggy bsd implementation

The bsd implementation of ulimit produces wrong return values, so remove it
in favour of the posix implementation.

The only regression for non-Linux implementations using bsd sysdeps and not
providing an own ulimit is that the __UL_GETMAXBRK case (which is non-standard)
is left unimplemented (giving EINVAL).

11 years agoulimit: include <limits.h>
Pino Toscano [Wed, 23 Jan 2013 16:27:45 +0000 (17:27 +0100)]
ulimit: include <limits.h>

11 years agoulimit: move linux implementation as posix
Pino Toscano [Wed, 23 Jan 2013 16:25:53 +0000 (17:25 +0100)]
ulimit: move linux implementation as posix

The linux implementation of ulimit works correctly and has nothing specific
to Linux, so move it as general posix implementation.

11 years agoS/390: Fix setjmp/longjmp FPR save/restore
Andreas Krebbel [Wed, 23 Jan 2013 09:00:24 +0000 (10:00 +0100)]
S/390: Fix setjmp/longjmp FPR save/restore

11 years agoBuild elf/tst-array2 and elf/tst-array5 with --no-as-needed
Adam Conrad [Wed, 23 Jan 2013 06:05:33 +0000 (23:05 -0700)]
Build elf/tst-array2 and elf/tst-array5 with --no-as-needed

* elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
(LDFLAGS-tst-array5): Likewise.

11 years agoMake bits/wchar.h correct for all architectures (bug 15036).
Joseph Myers [Wed, 23 Jan 2013 00:42:51 +0000 (00:42 +0000)]
Make bits/wchar.h correct for all architectures (bug 15036).

11 years agoUse libgcc unwinder for sparc backtraces, if available.
David S. Miller [Mon, 21 Jan 2013 22:13:04 +0000 (14:13 -0800)]
Use libgcc unwinder for sparc backtraces, if available.

* sysdeps/sparc/backtrace.c: New file.
* sysdeps/sparc/sparc32/backtrace.h: New file.
* sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
* sysdeps/sparc/sparc64/backtrace.h: New file.
* sysdeps/sparc/sparc64/backtrace.c: Delete.
* sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
-funwind-tables.

11 years agoAvoid busy loop in wordexp when substituted command closed its stdout
Andreas Schwab [Sat, 19 Jan 2013 16:18:47 +0000 (17:18 +0100)]
Avoid busy loop in wordexp when substituted command closed its stdout

11 years agom68k: update libm test ULPs
Andreas Schwab [Sun, 20 Jan 2013 19:58:19 +0000 (20:58 +0100)]
m68k: update libm test ULPs

11 years agom68k: add unwind tables to backtrace
Andreas Schwab [Sun, 20 Jan 2013 00:31:07 +0000 (01:31 +0100)]
m68k: add unwind tables to backtrace

11 years agoRemove use of mpa2.h
Andreas Schwab [Sun, 20 Jan 2013 01:03:42 +0000 (02:03 +0100)]
Remove use of mpa2.h

11 years agoAdd backtrace for m68k
Andreas Schwab [Sat, 19 Jan 2013 21:17:45 +0000 (22:17 +0100)]
Add backtrace for m68k

11 years agoAdd not-cancel.h for m68k/nptl
Andreas Schwab [Sat, 19 Jan 2013 17:58:24 +0000 (18:58 +0100)]
Add not-cancel.h for m68k/nptl

11 years agoAdd tests that backtrace and backtrace_symbols produce correct results.
Joseph Myers [Fri, 18 Jan 2013 15:49:43 +0000 (15:49 +0000)]
Add tests that backtrace and backtrace_symbols produce correct results.

11 years agoCorrected ChangeLog date of __kernel_get_tbfreq fix.
Ryan S. Arnold [Fri, 18 Jan 2013 13:52:18 +0000 (07:52 -0600)]
Corrected ChangeLog date of __kernel_get_tbfreq fix.

11 years agoPowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
Anton Blanchard [Tue, 15 Jan 2013 18:50:46 +0000 (12:50 -0600)]
PowerPC: Rename __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.

In order for the __kernel_get_tbfreq vDSO call to work the
INTERNAL_VSYSCALL_NCS macro needed to be updated to prevent it from
assuming an integer return type (since the timebase frequency is a 64-bit
value) by specifying the type of the return type as a macro parameter.  The
macro then specifically declares the return value as a 'register' (or
implied pair) of the denoted type.  The compiler is then informed that this
register (or implied pair) is to be used for the return value.

11 years agoUpdate NEWS
Siddhesh Poyarekar [Fri, 18 Jan 2013 09:11:14 +0000 (14:41 +0530)]
Update NEWS

11 years agoFix application of the exception mask
Siddhesh Poyarekar [Fri, 18 Jan 2013 08:46:25 +0000 (14:16 +0530)]
Fix application of the exception mask

Fixes BZ #14496.

11 years agoSimplify calculation of 2^-m in __mpexp
Siddhesh Poyarekar [Fri, 18 Jan 2013 05:48:13 +0000 (11:18 +0530)]
Simplify calculation of 2^-m in __mpexp

11 years agoRemove unnecessary multiplication with RADIXI
Siddhesh Poyarekar [Fri, 18 Jan 2013 05:44:34 +0000 (11:14 +0530)]
Remove unnecessary multiplication with RADIXI

11 years agoUpdate sparc ULPs.
David S. Miller [Fri, 18 Jan 2013 04:45:04 +0000 (20:45 -0800)]
Update sparc ULPs.

* sysdeps/sparc/fpu/libm-test-ulps: Update.

11 years agoFix cacos real-part inaccuracy for result real part near 0 (bug 15023).
Joseph Myers [Thu, 17 Jan 2013 20:25:51 +0000 (20:25 +0000)]
Fix cacos real-part inaccuracy for result real part near 0 (bug 15023).

11 years agoAdd HAVE_MREMAP for mremap usage
Pino Toscano [Thu, 17 Jan 2013 20:08:12 +0000 (21:08 +0100)]
Add HAVE_MREMAP for mremap usage

Introduce (only on Linux) and use a HAVE_MREMAP symbol to advertize mremap
availability.

Move the malloc-sysdep.h include from arena.c to malloc.c, since what is
provided by malloc-sysdep.h is needed earlier in malloc.c, before the inclusion
of arena.c.

11 years agoAArch64: Implement optimized strlen.
Marcus Shawcroft [Wed, 16 Jan 2013 13:57:42 +0000 (13:57 +0000)]
AArch64: Implement optimized strlen.

11 years agoAArch64: Implement optimized strcmp
Marcus Shawcroft [Wed, 16 Jan 2013 13:29:29 +0000 (13:29 +0000)]
AArch64: Implement optimized strcmp

11 years agoAArch64: Implement optimized bzero.
Marcus Shawcroft [Wed, 16 Jan 2013 13:29:05 +0000 (13:29 +0000)]
AArch64: Implement optimized bzero.

11 years agoAArch64: Implement optimized memmove.
Marcus Shawcroft [Wed, 16 Jan 2013 13:28:39 +0000 (13:28 +0000)]
AArch64: Implement optimized memmove.

11 years agoAArch64: Implement optimized memcpy.
Marcus Shawcroft [Wed, 16 Jan 2013 13:28:03 +0000 (13:28 +0000)]
AArch64: Implement optimized memcpy.

11 years agoAArch64: Implement optimized memset.
Marcus Shawcroft [Wed, 16 Jan 2013 13:03:43 +0000 (13:03 +0000)]
AArch64: Implement optimized memset.

11 years agoAArch64: Implement optimized memcmp.
Marcus Shawcroft [Wed, 16 Jan 2013 12:58:40 +0000 (12:58 +0000)]
AArch64: Implement optimized memcmp.

11 years agoAArch64: Tidyup whitespace.
Marcus Shawcroft [Wed, 16 Jan 2013 12:53:34 +0000 (12:53 +0000)]
AArch64: Tidyup whitespace.

11 years agoFix ChangeLog
Siddhesh Poyarekar [Thu, 17 Jan 2013 09:37:53 +0000 (15:07 +0530)]
Fix ChangeLog

11 years agoFix header comment
Siddhesh Poyarekar [Thu, 17 Jan 2013 09:35:22 +0000 (15:05 +0530)]
Fix header comment

11 years agoImplement x86 SIZE32/SIZE64 relocations
H.J. Lu [Thu, 17 Jan 2013 04:31:03 +0000 (20:31 -0800)]
Implement x86 SIZE32/SIZE64 relocations

11 years agoAdapt installed powerpc headers better for soft-float / no-FPRs.
Joseph Myers [Thu, 17 Jan 2013 02:08:51 +0000 (02:08 +0000)]
Adapt installed powerpc headers better for soft-float / no-FPRs.

11 years agoHide reference to mktemp in libpthread
Andreas Schwab [Tue, 15 Jan 2013 13:36:09 +0000 (14:36 +0100)]
Hide reference to mktemp in libpthread

11 years agoConsolidate constant defines into mpa.h
Siddhesh Poyarekar [Wed, 16 Jan 2013 10:36:48 +0000 (16:06 +0530)]
Consolidate constant defines into mpa.h

11 years agoFix the value of TWO
Siddhesh Poyarekar [Wed, 16 Jan 2013 09:22:48 +0000 (14:52 +0530)]
Fix the value of TWO

11 years agoOptimize trunc{,f} on sparc.
David S. Miller [Wed, 16 Jan 2013 07:59:02 +0000 (23:59 -0800)]
Optimize trunc{,f} on sparc.

* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
trunc{,f} to libm-sysdep_routes.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
* sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
* sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.

11 years agoOptimize nearbyint{,f} on sparc.
David S. Miller [Wed, 16 Jan 2013 04:59:54 +0000 (20:59 -0800)]
Optimize nearbyint{,f} on sparc.

* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
nearbyint{,f} to libm-sysdep_routes.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
* sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
* sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.

11 years agoAdd missing changelog for previous commit.
David S. Miller [Wed, 16 Jan 2013 04:56:39 +0000 (20:56 -0800)]
Add missing changelog for previous commit.

11 years agoUse libc_fe*() in 32-bit nearbyint()
David S. Miller [Wed, 16 Jan 2013 04:32:13 +0000 (20:32 -0800)]
Use libc_fe*() in 32-bit nearbyint()

* sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
libc_feholdexcept and libc_fesetenv.

11 years agoscsi/sg.h: include stddef.h for size_t
Mike Frysinger [Sat, 12 Jan 2013 23:52:41 +0000 (18:52 -0500)]
scsi/sg.h: include stddef.h for size_t

This header uses size_t but doesn't include stddef.h for it.  So when
packages happen to include this before any header that defines size_t,
they get a build failure.

Reviewed-by: Carlos O'Donell <codonell@redhat.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agoOptimize sparc {ceil,floor}{,f} using vis2 'siam' instruction.
David S. Miller [Tue, 15 Jan 2013 05:47:29 +0000 (21:47 -0800)]
Optimize sparc {ceil,floor}{,f} using vis2 'siam' instruction.

* sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
(SPARC_ASM_VIS2_IFUNC): Likewise.
(SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
use of 'siam' instruction.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
new VIS2 routines.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
routines to libm-sysdep_routines.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.

11 years agoOptimize fdim/fdimf on sparc.
David S. Miller [Tue, 15 Jan 2013 02:15:49 +0000 (18:15 -0800)]
Optimize fdim/fdimf on sparc.

* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
fdim/fdimf to libm-sysdep_routines.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
* sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
* sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
* sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
* sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.

11 years agoUse $(host-test-program-cmd) not $(test-program-cmd) for bug-setlocale1.
Joseph Myers [Mon, 14 Jan 2013 22:10:58 +0000 (22:10 +0000)]
Use $(host-test-program-cmd) not $(test-program-cmd) for bug-setlocale1.

11 years agoFix up log format, wrap a long line.
Roland McGrath [Mon, 14 Jan 2013 17:57:33 +0000 (09:57 -0800)]
Fix up log format, wrap a long line.

11 years agoMinor tweak to mp multiplication
Siddhesh Poyarekar [Mon, 14 Jan 2013 16:06:58 +0000 (21:36 +0530)]
Minor tweak to mp multiplication

Add a local variable to remove extra copies to/from memory in the Z
array.

11 years agoFix code formatting in mpa.c
Siddhesh Poyarekar [Mon, 14 Jan 2013 16:01:25 +0000 (21:31 +0530)]
Fix code formatting in mpa.c

This includes the overridden mpa.c in power4.

11 years agoRemove unnecessary local variable mptwo
Siddhesh Poyarekar [Mon, 14 Jan 2013 15:53:47 +0000 (21:23 +0530)]
Remove unnecessary local variable mptwo

11 years agomanual: glob flags: fix sorting order
Mike Frysinger [Fri, 21 Dec 2012 05:03:17 +0000 (00:03 -0500)]
manual: glob flags: fix sorting order

Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agomanual: glob flags: mention the GNU extensions
Mike Frysinger [Fri, 21 Dec 2012 05:02:06 +0000 (00:02 -0500)]
manual: glob flags: mention the GNU extensions

The glob flags page reads as if this section is comprehensive when it
is not -- a lot of GNU extensions exist.  Point that out in the intro.

Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
11 years agomanual: glob: document the gl_flags field
Mike Frysinger [Fri, 21 Dec 2012 04:59:42 +0000 (23:59 -0500)]
manual: glob: document the gl_flags field

The More Flags for Globbing section indirectly mentions gl_flags when
talking about GLOB_MAGCHAR.  Mention it explicitly when covering the
glob_t types.

Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>