platform/upstream/glibc.git
12 years agoAdd missing sparc32 NPTL file otherwise we use the wrong lowlevellock.c implementation.
David S. Miller [Fri, 16 Mar 2012 04:11:22 +0000 (21:11 -0700)]
Add missing sparc32 NPTL file otherwise we use the wrong lowlevellock.c implementation.

nptl/

[BZ #13844]
* sysdeps/unix/sysv/linux/sparc/sparc32/libc-lowlevellock.c: New file.

12 years agoSparc long double is emulated in software, therefore use dbl-64's s_fma.c
David S. Miller [Fri, 16 Mar 2012 03:53:16 +0000 (20:53 -0700)]
Sparc long double is emulated in software, therefore use dbl-64's s_fma.c

* sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
* sysdeps/sparc/sparc64/fpu/s_fma.c: New file.

12 years agoCreate a header for sparc ifunc expansion and use it for VIS3 ifuncs.
David S. Miller [Fri, 16 Mar 2012 03:20:49 +0000 (20:20 -0700)]
Create a header for sparc ifunc expansion and use it for VIS3 ifuncs.

* sysdeps/sparc/sparc-ifunc.h: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use sparc-ifunc.h
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.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_finite.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.

12 years agoUse double precision instead of scaling for powerpc __ieee754_hypotf
Andreas Schwab [Thu, 15 Mar 2012 14:16:31 +0000 (15:16 +0100)]
Use double precision instead of scaling for powerpc __ieee754_hypotf

12 years agoUpdate.
Andreas Jaeger [Thu, 15 Mar 2012 17:04:51 +0000 (18:04 +0100)]
Update.

12 years agoUpdate
Andreas Jaeger [Thu, 15 Mar 2012 17:03:38 +0000 (18:03 +0100)]
Update

12 years agoUse 40 digits in tests
Andreas Jaeger [Thu, 15 Mar 2012 17:02:02 +0000 (18:02 +0100)]
Use 40 digits in tests

12 years ago* sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
Andreas Jaeger [Thu, 15 Mar 2012 16:34:24 +0000 (17:34 +0100)]
* sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
ieee754/flt-32 implementation for tan.
* math/libm-test.inc (tan_test): Add tests for large input.
* sysdeps/i386/fpu/libm-test-ulps: Update.

12 years ago [BZ #13852]
Andreas Jaeger [Thu, 15 Mar 2012 16:23:43 +0000 (17:23 +0100)]
[BZ #13852]
* sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
ieee754/flt-32 implementation.
* sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
* sysdeps/i386/fpu/s_cosf.S: Likewise.
* sysdeps/i386/fpu/s_sincosf.S: Likewise.
* sysdeps/i386/fpu/s_sinf.S: Likewise.

* math/libm-test.inc (cos_test): Enable some large input tests for
float as well
(sin_test): Likewise.
(sincos_test): Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Update.

12 years ago [BZ #13658]
Andreas Jaeger [Thu, 15 Mar 2012 15:25:57 +0000 (16:25 +0100)]
[BZ #13658]
* math/libm-test.inc (cos_test): Add more test cases.
(sin_test): Likewise.
(sincos_test): Likewise.

12 years agoFix typo.
Andreas Jaeger [Thu, 15 Mar 2012 15:11:25 +0000 (16:11 +0100)]
Fix typo.

12 years ago [BZ #13837]
Andreas Jaeger [Thu, 15 Mar 2012 13:34:03 +0000 (14:34 +0100)]
[BZ #13837]
* math/libm-test.inc (cos_test): Add a test case for large input
value.
(sin_test): Likewise.
(sincos_test): Likewise.

12 years agoAdd 13658
Andreas Jaeger [Thu, 15 Mar 2012 13:24:20 +0000 (14:24 +0100)]
Add 13658

12 years agoMerge branch 'bug13658-branch'
Andreas Jaeger [Thu, 15 Mar 2012 13:21:59 +0000 (14:21 +0100)]
Merge branch 'bug13658-branch'

12 years agoCleanup formatting.
Andreas Jaeger [Thu, 15 Mar 2012 13:14:39 +0000 (14:14 +0100)]
Cleanup formatting.

12 years agoUpdate powerpc libm ULPs
Andreas Schwab [Thu, 15 Mar 2012 00:05:14 +0000 (01:05 +0100)]
Update powerpc libm ULPs

12 years agoSparc optimized fmin{,f} and fmax{,f}.
David S. Miller [Thu, 15 Mar 2012 09:13:54 +0000 (02:13 -0700)]
Sparc optimized fmin{,f} and fmax{,f}.

* sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
* sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
* sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
* sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
fmin/fmax sysdep routines.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.

12 years agoMerge branch 'master' into bug13658-branch
Andreas Jaeger [Thu, 15 Mar 2012 08:55:49 +0000 (09:55 +0100)]
Merge branch 'master' into bug13658-branch

12 years agoAdd more sparc VIS3 optimized math routines.
David S. Miller [Thu, 15 Mar 2012 07:11:17 +0000 (00:11 -0700)]
Add more sparc VIS3 optimized math routines.

* sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3 routines.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS3 routines.

* sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
New file.

12 years agoUpdate sparc ULPs for newly added csqrt tests.
David S. Miller [Thu, 15 Mar 2012 00:25:35 +0000 (17:25 -0700)]
Update sparc ULPs for newly added csqrt tests.

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

12 years agoAdd framework for using sparc VIS3 instructions, use it for copysign/signbit.
David S. Miller [Wed, 14 Mar 2012 23:29:47 +0000 (16:29 -0700)]
Add framework for using sparc VIS3 instructions, use it for copysign/signbit.

* sysdeps/sparc/configure.in: New file.
* sysdeps/sparc/configure: Generate.
* configure.in (libc_cv_sparc_as_vis3): Substitute.
* configure: Regenerate.
* config.h.in (HAVE_AS_VIS3_SUPPORT): New.
* config.make.in (have-as-vis3): New.
* sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
available use -Av9d instead of -Av9a.
* sysdeps/sparc/sparc64/Makefile: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S: New file.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
* sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.

12 years agoSmall optimization to sparc 64-bit copysign.
David S. Miller [Wed, 14 Mar 2012 23:21:40 +0000 (16:21 -0700)]
Small optimization to sparc 64-bit copysign.

* sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use fzeros/fnegs
to load 0x80000000 into a float register instead of using the stack.
* sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.

12 years agoInstall bits/syscall.h through install-headers.
Joseph Myers [Wed, 14 Mar 2012 20:09:44 +0000 (20:09 +0000)]
Install bits/syscall.h through install-headers.

12 years agoNEWS update for BZ#13846
Roland McGrath [Wed, 14 Mar 2012 18:13:37 +0000 (11:13 -0700)]
NEWS update for BZ#13846

12 years agoBZ#13846: manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
Roland McGrath [Wed, 14 Mar 2012 17:53:13 +0000 (10:53 -0700)]
BZ#13846: manual/llio.texi (Memory-mapped I/O): Fix wrong function name.

12 years agoUpdate ULPs.
Andreas Jaeger [Wed, 14 Mar 2012 16:23:31 +0000 (17:23 +0100)]
Update ULPs.

12 years agoImplement and use libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit
Andreas Jaeger [Wed, 14 Mar 2012 16:20:10 +0000 (17:20 +0100)]
Implement and use libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit
so that double arithmetic in s_sin is done in 53 bit (without extend i386 double precision)

12 years agoRemove files so that i386 uses the iee754/dbl-64 sin and cos implementation.
Andreas Jaeger [Wed, 14 Mar 2012 15:50:33 +0000 (16:50 +0100)]
Remove files so that i386 uses the iee754/dbl-64 sin and cos implementation.

12 years agoMerge branch 'master' into bug13658-branch
Andreas Jaeger [Wed, 14 Mar 2012 15:36:17 +0000 (16:36 +0100)]
Merge branch 'master' into bug13658-branch

12 years agoFix csqrt overflow/underflow (bug 13841).
Joseph Myers [Wed, 14 Mar 2012 11:53:32 +0000 (11:53 +0000)]
Fix csqrt overflow/underflow (bug 13841).

12 years agoAdd 13840 to NEWS.
Joseph Myers [Wed, 14 Mar 2012 01:18:57 +0000 (01:18 +0000)]
Add 13840 to NEWS.

12 years agoAdd tests for hypot overflow/underflow.
Joseph Myers [Wed, 14 Mar 2012 01:12:05 +0000 (01:12 +0000)]
Add tests for hypot overflow/underflow.

12 years agoFix hypotf overflow/underflow by using double precision instead of scaling.
David S. Miller [Wed, 14 Mar 2012 01:08:58 +0000 (18:08 -0700)]
Fix hypotf overflow/underflow by using double precision instead of scaling.

[BZ #13840]
* sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
double-precision for the calculation instead of scaling.

12 years agoClean up dbl-64 rint, nearbyint.
Joseph Myers [Tue, 13 Mar 2012 14:12:44 +0000 (14:12 +0000)]
Clean up dbl-64 rint, nearbyint.

12 years agoRemove no longer needed assembler offset generation on sparc.
David S. Miller [Tue, 13 Mar 2012 10:09:00 +0000 (03:09 -0700)]
Remove no longer needed assembler offset generation on sparc.

* sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
* sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
rtld-global-offsets.h
* sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.

12 years agoFix generic ldbl-128 expm1l just like x86-64 and i386 variants were.
David S. Miller [Tue, 13 Mar 2012 07:31:48 +0000 (00:31 -0700)]
Fix generic ldbl-128 expm1l just like x86-64 and i386 variants were.

* sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
large parameters.

12 years agoUse correct implementation for dl-fxstatat64 on sparc64.
David S. Miller [Tue, 13 Mar 2012 07:45:34 +0000 (00:45 -0700)]
Use correct implementation for dl-fxstatat64 on sparc64.

* sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.

12 years agoFix warning in Linux openat implementation when __ASSUME_ATFCTS is set.
David S. Miller [Tue, 13 Mar 2012 07:43:20 +0000 (00:43 -0700)]
Fix warning in Linux openat implementation when __ASSUME_ATFCTS is set.

* sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
'err' in the ifdef scope in which it is actually used.

12 years agoAdd missing string.h include for strcpy calls.
David S. Miller [Tue, 13 Mar 2012 07:33:58 +0000 (00:33 -0700)]
Add missing string.h include for strcpy calls.

* nss/nss_db/db-init.c: Include string.h

12 years agoFix another instance of the _dl_random masking bug, plus coding style.
David S. Miller [Mon, 12 Mar 2012 22:57:17 +0000 (15:57 -0700)]
Fix another instance of the _dl_random masking bug, plus coding style.

* sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
masking out of the most significant byte of random value used.
* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
Fix coding style in previous change.

12 years agoAdd some missing sparc kernel-feature.h entries.
David S. Miller [Mon, 12 Mar 2012 22:51:15 +0000 (15:51 -0700)]
Add some missing sparc kernel-feature.h entries.

* sysdeps/unix/sysv/linux/kernel-features.h
(__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
(__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
expression.
(__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
later.

12 years agoFix some 64-bit sparc build warnings.
David S. Miller [Mon, 12 Mar 2012 03:13:55 +0000 (20:13 -0700)]
Fix some 64-bit sparc build warnings.

* sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
(__makecontext): Fix signedness of pointer casts setting up 'sp'.
* sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
for 'resultvar' otherwise things get truncated on 64-bit.

12 years agoFix typing of the bit twiddling done in _dl_setup_stack_chk_guard.
David S. Miller [Mon, 12 Mar 2012 02:41:43 +0000 (19:41 -0700)]
Fix typing of the bit twiddling done in _dl_setup_stack_chk_guard.

* sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
Fix masking out of the most significant byte of random value used.

12 years agoUpdate sparc ULPs for recently added tests.
David S. Miller [Mon, 12 Mar 2012 01:46:30 +0000 (18:46 -0700)]
Update sparc ULPs for recently added tests.

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

12 years agoUpdate powerpc libm ULPs
Andreas Schwab [Sat, 10 Mar 2012 17:20:51 +0000 (18:20 +0100)]
Update powerpc libm ULPs

12 years agoFix bugs in sparc PLT profiling register management, and add sparc sotruss support.
David S. Miller [Sat, 10 Mar 2012 04:48:06 +0000 (20:48 -0800)]
Fix bugs in sparc PLT profiling register management, and add sparc sotruss support.

* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
variables with appropriate CPP guards.
* sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
frame pointer, not the stack pointer.  Correct layout comments.  Fix test
on resulting framesize and the management of the outregs buffer for pltexit.
Preserve floating point return values across _dl_call_pltexit call.
* sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
framesize and the management of the outregs buffer for pltexit.
Preserve floating point return values across _dl_call_pltexit
call.
* elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
(print_exit): Fix format string for return register value.

12 years agoUse standard build rule to build rpcgen.
Joseph Myers [Sat, 10 Mar 2012 00:56:21 +0000 (00:56 +0000)]
Use standard build rule to build rpcgen.

12 years agoAdd 13566 to list of bugs fixed in NEWS.
Joseph Myers [Sat, 10 Mar 2012 00:49:31 +0000 (00:49 +0000)]
Add 13566 to list of bugs fixed in NEWS.

12 years agoReplace FSF snail mail address with URL in miscellaneous files.
Paul Eggert [Sat, 10 Mar 2012 00:44:13 +0000 (00:44 +0000)]
Replace FSF snail mail address with URL in miscellaneous files.

12 years agoReplace FSF snail mail address with URL in localedata.
Paul Eggert [Sat, 10 Mar 2012 00:44:00 +0000 (00:44 +0000)]
Replace FSF snail mail address with URL in localedata.

12 years agoReplace FSF snail mail address with URL in gperf input.
Paul Eggert [Sat, 10 Mar 2012 00:43:12 +0000 (00:43 +0000)]
Replace FSF snail mail address with URL in gperf input.

12 years agoReplace FSF snail mail address with URL in Yacc input.
Paul Eggert [Fri, 9 Mar 2012 23:35:39 +0000 (23:35 +0000)]
Replace FSF snail mail address with URL in Yacc input.

12 years agoFix it harder.
Roland McGrath [Sat, 10 Mar 2012 00:45:04 +0000 (16:45 -0800)]
Fix it harder.

12 years agoFix ChangeLog format.
Richard Henderson [Sat, 10 Mar 2012 00:34:18 +0000 (16:34 -0800)]
Fix ChangeLog format.

12 years agoMove math/math_private.h to sysdeps/generic/math_private.h.
Richard Henderson [Fri, 9 Mar 2012 23:45:34 +0000 (15:45 -0800)]
Move math/math_private.h to sysdeps/generic/math_private.h.

This reverts commit 60d6f5a6f50d838bcb4240fcc0223cac445c6c83.

12 years agoUse include_next to chain math_private.h headers.
Richard Henderson [Fri, 9 Mar 2012 19:35:13 +0000 (11:35 -0800)]
Use include_next to chain math_private.h headers.

12 years agoUse <> for math.h and math_private.h everywhere.
Richard Henderson [Fri, 9 Mar 2012 19:29:16 +0000 (11:29 -0800)]
Use <> for math.h and math_private.h everywhere.

Entire tree edited via find | grep | sed.

12 years agoRemove __GNU_LIBRARY__ conditionals from rpcgen.
Joseph Myers [Fri, 9 Mar 2012 22:46:12 +0000 (22:46 +0000)]
Remove __GNU_LIBRARY__ conditionals from rpcgen.

12 years agoFix sparc build after recent math changes.
David S. Miller [Fri, 9 Mar 2012 22:37:57 +0000 (14:37 -0800)]
Fix sparc build after recent math changes.

* include/math_private.h: New file.

12 years agoSplit enum __socket_type from bits/socket.h to bits/socket_type.h.
Joseph Myers [Fri, 9 Mar 2012 22:36:06 +0000 (22:36 +0000)]
Split enum __socket_type from bits/socket.h to bits/socket_type.h.

12 years agoAlways declare gets for C++ up to C++11 without checking __USE_GNU.
Joseph Myers [Fri, 9 Mar 2012 22:08:39 +0000 (22:08 +0000)]
Always declare gets for C++ up to C++11 without checking __USE_GNU.

12 years agoInstall bits/stdio_lim.h in install-headers.
Joseph Myers [Fri, 9 Mar 2012 22:05:49 +0000 (22:05 +0000)]
Install bits/stdio_lim.h in install-headers.

12 years agoMake pthread.h define all symbols from time.h.
Joseph Myers [Fri, 9 Mar 2012 21:10:45 +0000 (21:10 +0000)]
Make pthread.h define all symbols from time.h.

See:
http://www.pasc.org/interps/unofficial/db/p1003.1c/pasc-1003.1c-46.html
http://www.pasc.org/interps/unofficial/db/p1003.1/pasc-1003.1-86.html
https://www.opengroup.org/sophocles/show_mail.tpl?CALLER=index.tpl&source=L&listname=austin-group-l&id=17302
(Geoff Clare, austin-group-l, 9 Mar 2012)

12 years agopowerpc: Convert __ieee754_sqrt{,f} from macros to inlines.
Richard Henderson [Wed, 7 Mar 2012 17:16:59 +0000 (09:16 -0800)]
powerpc: Convert __ieee754_sqrt{,f} from macros to inlines.

12 years agox86_64: Convert __rint* and __floor* from macros to inlines.
Richard Henderson [Tue, 6 Mar 2012 23:58:51 +0000 (15:58 -0800)]
x86_64: Convert __rint* and __floor* from macros to inlines.

12 years agox86_64: Convert __ieee754_sqrt{,f,l} from macros to inlines.
Richard Henderson [Tue, 6 Mar 2012 23:41:14 +0000 (15:41 -0800)]
x86_64: Convert __ieee754_sqrt{,f,l} from macros to inlines.

12 years agoUse target-specific math_private.h in math_ldbl_opt.h.
Richard Henderson [Wed, 7 Mar 2012 17:19:26 +0000 (09:19 -0800)]
Use target-specific math_private.h in math_ldbl_opt.h.

12 years agoUpdate copyright year after my most recent changes.
David S. Miller [Thu, 8 Mar 2012 08:46:09 +0000 (00:46 -0800)]
Update copyright year after my most recent changes.

nptl/

* sysdeps/unix/sysv/linux/sparc/sem_post.c: Update copyright year.

/

* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
copyright year.
* sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.

12 years agoFix struct timespec normalization (as used in many other places).
Thomas Schwinge [Thu, 8 Mar 2012 10:49:43 +0000 (11:49 +0100)]
Fix struct timespec normalization (as used in many other places).

12 years agoWork around kernel rejecting valid absolute timestamps.
Thomas Schwinge [Thu, 8 Mar 2012 10:22:41 +0000 (11:22 +0100)]
Work around kernel rejecting valid absolute timestamps.

12 years agoInvalid timeouts in SH sem_timedwait.
Thomas Schwinge [Thu, 8 Mar 2012 09:45:05 +0000 (10:45 +0100)]
Invalid timeouts in SH sem_timedwait.

We adjusted nwaiters even though this isn't necessary.

12 years agoAdd further tests
Andreas Jaeger [Thu, 8 Mar 2012 09:44:32 +0000 (10:44 +0100)]
Add further tests

12 years agoFix 9554ebf2d4da22591e974d3cf2ed09a2b8dbdbd8.
Thomas Schwinge [Thu, 8 Mar 2012 08:33:12 +0000 (09:33 +0100)]
Fix 9554ebf2d4da22591e974d3cf2ed09a2b8dbdbd8.

| Invalid timeouts in i386 sem_timedwait.
|
| We adjusted nwaiters even though this isn't necessary.

12 years agoClean up tst-fphex test
Ulrich Drepper [Thu, 8 Mar 2012 08:02:24 +0000 (03:02 -0500)]
Clean up tst-fphex test

12 years agoMerge branch 'master' of ssh://sourceware.org/git/glibc
Ulrich Drepper [Thu, 8 Mar 2012 07:49:12 +0000 (02:49 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/glibc

Conflicts:
ChangeLog

12 years agoFix up long double fphex test
Marek Polacek [Thu, 8 Mar 2012 07:46:43 +0000 (02:46 -0500)]
Fix up long double fphex test

12 years agoEnhance fphex test.
Marek Polacek [Thu, 8 Mar 2012 07:32:47 +0000 (08:32 +0100)]
Enhance fphex test.

12 years agoMerge branch 'master' of ssh://sourceware.org/git/glibc
Ulrich Drepper [Thu, 8 Mar 2012 06:57:38 +0000 (01:57 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/glibc

12 years agoAdd bug 6911 to NEWS.
Joseph Myers [Thu, 8 Mar 2012 01:39:16 +0000 (01:39 +0000)]
Add bug 6911 to NEWS.

12 years agoClean up glibc manual references to "GNU system" (bug 6911).
Joseph Myers [Thu, 8 Mar 2012 01:27:38 +0000 (01:27 +0000)]
Clean up glibc manual references to "GNU system" (bug 6911).

12 years agoFix .ctors/.dtors header configure test for bootstrapping.
Joseph Myers [Thu, 8 Mar 2012 00:17:27 +0000 (00:17 +0000)]
Fix .ctors/.dtors header configure test for bootstrapping.

12 years agoFix sysdeps/i386/configure.in cpuid.h test for bootstrapping.
Joseph Myers [Wed, 7 Mar 2012 20:51:54 +0000 (20:51 +0000)]
Fix sysdeps/i386/configure.in cpuid.h test for bootstrapping.

12 years agoWeaken two NPTL configure link tests to compile tests.
Joseph Myers [Wed, 7 Mar 2012 19:34:22 +0000 (19:34 +0000)]
Weaken two NPTL configure link tests to compile tests.

12 years agoFix signs of zeros from casinh, cacosh etc. (bug 10716).
Joseph Myers [Wed, 7 Mar 2012 15:15:19 +0000 (15:15 +0000)]
Fix signs of zeros from casinh, cacosh etc. (bug 10716).

12 years agoWS fixes
Ulrich Drepper [Wed, 7 Mar 2012 14:46:20 +0000 (09:46 -0500)]
WS fixes

12 years ago [BZ #13658]
Andreas Jaeger [Wed, 7 Mar 2012 13:51:39 +0000 (14:51 +0100)]
[BZ #13658]
* sysdeps/x86_64/fpu/s_sincos.S: Delete.

* math/libm-test.inc (sincos_test): Add test for large input.

12 years agoUpdate traditional Chinese translation
Ulrich Drepper [Wed, 7 Mar 2012 10:35:30 +0000 (05:35 -0500)]
Update traditional Chinese translation

12 years agoRemove distribute variable from Makefiles
Ulrich Drepper [Wed, 7 Mar 2012 10:17:13 +0000 (05:17 -0500)]
Remove distribute variable from Makefiles

12 years agoDon't install timezone rule files
Ulrich Drepper [Wed, 7 Mar 2012 09:48:47 +0000 (04:48 -0500)]
Don't install timezone rule files

12 years agoGet rid of superfluous assignments in sem_timedwait
Thomas Schwinge [Wed, 7 Mar 2012 09:11:11 +0000 (04:11 -0500)]
Get rid of superfluous assignments in sem_timedwait

12 years agoMerge branch 'master' of ssh://sourceware.org/git/glibc
Ulrich Drepper [Wed, 7 Mar 2012 08:32:29 +0000 (03:32 -0500)]
Merge branch 'master' of ssh://sourceware.org/git/glibc

Conflicts:
ChangeLog

12 years agoMerge branch 'master' into bug13658-branch
Andreas Jaeger [Wed, 7 Mar 2012 07:55:31 +0000 (08:55 +0100)]
Merge branch 'master' into bug13658-branch

12 years agoFix CL
Ulrich Drepper [Wed, 7 Mar 2012 05:28:22 +0000 (00:28 -0500)]
Fix CL

12 years agoBetter CL
Ulrich Drepper [Wed, 7 Mar 2012 04:39:31 +0000 (23:39 -0500)]
Better CL

12 years agoRemove private information from libc-lock.h
Ulrich Drepper [Wed, 7 Mar 2012 04:37:35 +0000 (23:37 -0500)]
Remove private information from libc-lock.h

12 years agoAdd missing gshadow handling in __nss_configure_lookup
Ulrich Drepper [Wed, 7 Mar 2012 02:55:18 +0000 (21:55 -0500)]
Add missing gshadow handling in __nss_configure_lookup

12 years agoFormatting fixes
Ulrich Drepper [Wed, 7 Mar 2012 02:45:53 +0000 (21:45 -0500)]
Formatting fixes

12 years agoWrap too-long log entry.
Roland McGrath [Tue, 6 Mar 2012 23:59:05 +0000 (15:59 -0800)]
Wrap too-long log entry.

12 years agoFix up long double fphex.
Marek Polacek [Tue, 6 Mar 2012 21:05:56 +0000 (22:05 +0100)]
Fix up long double fphex.

12 years agoFix several build warnings on sparc.
David S. Miller [Tue, 6 Mar 2012 19:15:26 +0000 (11:15 -0800)]
Fix several build warnings on sparc.

/

* sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
(set_obp_int): New function.
(get_obp_int): New function.
(__get_clockfreq_via_dev_openprom): Likewise.
* sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P): Avoid
unused variable warnings on 'val' and use builtin_expect.
(INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with builtin_expect.
(INLINE_CLONE_SYSCALL): Likewise.

nptl/

* sysdeps/unix/sysv/linux/sparc/sem_post.c (__new_sem_post): Use
atomic_increment and remove unused local variable.
(__old_sem_post): Likewise.