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
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
Carlos O'Donell
30f696374d
Fifth argument of la_pltenter() is not constant.
...
The original runtime linker auditing interface described
by Solaris allows the 5th argument of la_pltenter() to be
modified. This patch cleans up the ldsodefs.h definitions
such that the 5th argument is not constant.
At one point the 5th argument *was* constant but this was
changed with commit 2413fdba7a
.
This patch updates alpha, ia64, mips, sh and sparc with similar
changes.
2012-08-16 08:41:05 -07:00
David S. Miller
faa2bccba5
Update SPARC ULPs.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-08-03 20:39:26 -07:00
David S. Miller
e2eabb2c3b
Update sparc ULPs.
2012-07-31 14:22:42 +00:00
David S. Miller
e5abc686ef
Update sparc ULPs.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-07-27 21:14:41 -07:00
Joseph Myers
3129cfc6ec
Move testsuite audit definitions to sysdeps tst-audit.h files.
2012-07-26 11:29:07 +00:00
Joseph Myers
56e49b714e
Move ldsodefs.h audit definitions to sysdeps directories.
2012-07-25 16:03:02 +00:00
Marek Polacek
3b05db33f6
Remove TLS configure checks.
2012-07-17 23:57:43 +02:00
Joseph Myers
cfc82fd8ac
Split tls-macros.h into sysdeps directories.
2012-07-17 11:30:58 +00:00
David S. Miller
6b90f98178
Update sparc ULPs.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-07-11 02:50:31 -07:00
David S. Miller
1c2cfe8193
Update sparc ulps after Joseph's math.h fixes.
...
* sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
entries.
2012-05-31 16:25:07 -07:00
David S. Miller
f230c29b40
Avoid performance penalty in sparc optimized memcpy/memset.
...
fmovd clears the current exception field in the %fsr, fsrc2
does not and therefore runs more efficiently on some cpus.
* sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
values between float registers.
* sysdeps/sparc/sparc64/memset.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
2012-05-31 14:19:30 -07:00
David S. Miller
1c58d5dceb
Simulate sparc fpu exceptions using real FP ops again in soft-fp.
...
* sysdeps/sparc/sparc32/soft-fp/q_util.c
(___Q_simulate_exceptions): Use real FP ops rather than writing
into the %fsr.
* sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
Likewise.
2012-05-30 23:09:25 -07:00
David S. Miller
ae251b0b58
Fix underflow generation in soft-fp.
...
* soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
(FP_TRAPPING_EXCEPTIONS): Provide default implementation.
* sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
(FP_TRAPPING_EXCEPTIONS): Define.
* sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
(FP_TRAPPING_EXCEPTIONS): Define.
* soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
subnormals only when inexact has been signalled or underflow
exceptions are enabled.
(_FP_PACK_CANONICAL): Likewise.
2012-05-30 13:41:01 -07:00
David S. Miller
d66ef399f5
Fix underflow reporting and tie up loose ends in sparc soft-fp.
...
* sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
(___Q_zero): New.
(__Q_simulate_exceptions): Return void. Change to simulate
exceptions by writing into the %fsr.
* sysdeps/sparc/sparc64/soft-fp/qp_util.c
(__Qp_handle_exceptions): Likewise.
(numbers): Delete.
* sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
__Qp_handle_exceptions.
* sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
__Qp_handle_exceptions.
* sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
as unused and give dummy FP_RND_NEAREST initializer.
(FP_INHIBIT_RESULTS): Define.
(___Q_simulate_exceptions): Update declaration.
(FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
formatting.
* sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
as unused and give dummy FP_RND_NEAREST initializer.
(__Qp_handle_exceptions): Update declaration.
(FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
formatting.
2012-05-27 21:11:42 -07:00
Joseph Myers
795405f956
Don't include exceptions in libm-test-ulps test names.
2012-05-24 12:14:03 +00:00
H.J. Lu
20c07380db
Rename __WORDSIZE_COMPAT32 to __WORDSIZE_TIME64_COMPAT32
2012-05-21 13:39:55 -07:00
Richard Henderson
c7683a6d02
Add <sys/auxv.h> and getauxval.
2012-05-20 10:40:35 -07:00
David S. Miller
cbcbe830f9
Update sparc ULPs for ccos, csin, ccosh, csinh tests.
2012-05-19 15:36:55 +00:00
Joseph Myers
a9538892ad
Split up stackguard-macros.h into sysdeps directories.
2012-05-15 23:34:30 +00:00
David S. Miller
842b81d611
Mark sparc %fsr load and store inline asms as volatile.
...
* sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
* sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
(_FPU_SETCW): Likewise.
2012-05-11 13:58:41 -07:00
David S. Miller
ee0db19075
Minor optimization to sparc VIS3 floor() implementation.
...
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
movxtod instead of popping the value on the stack.
2012-05-08 11:17:07 -07:00
David S. Miller
dee4a4e3d0
With -frounding-math, some sparc ULPs need to be adjusted.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-05-08 10:58:01 -07:00
David S. Miller
05760585e0
Update sparc ULPs for recently added exp tests.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-05-07 19:29:24 -07:00
David S. Miller
7f18b530e9
Fix sparc libm when all of glibc is built with -frounding-math.
...
[BZ #14074 ]
* sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
(SETUP_PIC_REG): Use it.
(SETUP_PIC_REG_LEAF): Use it.
2012-05-07 16:54:11 -07:00
David S. Miller
d77f993f64
Update sparc ULPs for recently added acos/asin tests.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-05-02 16:44:21 -07:00
David S. Miller
33f244f40b
Fix missing long-double compat symbols on sparc v9.
...
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
long-double compat symbols.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
* sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
2012-04-26 02:50:20 -07:00
David S. Miller
cfa1f3e865
Restore non-v9 32-bit sparc build.
...
* sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
HWCAP_* values only after the memory barriers have been defined.
(atomic_full_barrier): Define.
(atomic_read_barrier): Define.
(atomic_write_barrier): Define.
2012-04-25 22:24:00 -07:00
David S. Miller
aab39a094e
Delete everything under sysdeps/unix/sparc/
...
* sysdeps/unix/sparc/brk.S: Delete.
* sysdeps/unix/sparc/dl-brk.S: Delete.
* sysdeps/unix/sparc/pipe.S: Delete.
* sysdeps/unix/sparc/sysdep.S: Delete.
* sysdeps/unix/sparc/sysdep.h: Delete.
* sysdeps/unix/sparc/vfork.S: Delete.
* sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
* sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
ret_ERRVAL, r0, r1, MOVE): Define.
(JUMPTARGET): Remove.
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
sysdeps/unix/sparc/sysdep.h
(ENTRY, END): Remove.
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
2012-04-25 11:52:31 -07:00
David S. Miller
95aa737cf9
Forgot to delete the sparc64 memcopy.h which tries to include the sparc32 one
...
* sysdeps/sparc/sparc64/memcopy.h: Delete.
2012-04-18 11:13:14 -07:00
Andreas Jaeger
7a99a61461
Finish ilogb changes
...
[BZ# 6794]
* sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
* sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
* sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
* sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
* sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
* sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
* sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
* sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
2012-04-18 14:31:43 +02:00
David S. Miller
e5270c239d
There is no legitimate reason to override reg_char on sparc32.
...
* sysdeps/sparc/sparc32/memcopy.h: Delete.
2012-04-17 21:30:15 -07:00
David S. Miller
55939d6d45
Update sparc libm ULPs.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-04-11 12:25:00 -07:00
David S. Miller
5ed848f3d8
Handle some new sparc relocation types.
...
* elf/elf.h (R_SPARC_WDISP10): Define.
* sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
R_SPARC_SIZE32.
* sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
R_SPARC_SIZE64 and R_SPARC_H34.
2012-04-07 09:29:14 -07:00
David S. Miller
993eb0541c
Reduce down to one definition of _ELF_DYNAMIC_DO_RELOC.
...
* elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
definition.
* sysdeps/powerpc/powerpc32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Delete.
* sysdeps/s390/s390-32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.
* sysdeps/sparc/sparc32/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.
* sysdeps/sparc/sparc64/dl-machine.h
(ELF_MACHINE_PLTREL_OVERLAP): Likewise.
2012-04-05 15:28:37 -07:00
David S. Miller
88d85d4f00
Optimize mempcpy on sparc.
...
* sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
that branches into memcpy.
* sysdeps/sparc/sparc64/memcpy.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
bits.
* sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
implementation too.
* sysdeps/sparc/mempcpy.S: New file.
2012-03-28 22:35:26 -07:00
David S. Miller
e5aa83e16d
Do not elide the libc hidden def of sparc's memset/memcpy when multiarching.
...
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
the IFUNC routine in the libc case.
* sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
2012-03-28 22:26:38 -07:00
David S. Miller
88570753ec
Use generic memset/memcpy in rtld on sparcv9/sparc64.
...
* sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
* sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
* sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
* sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
* sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
* sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
* sysdeps/sparc/sparc64/rtld-memset.c: New file.
* sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
2012-03-28 22:22:15 -07:00
David S. Miller
249d7567cc
Fix bugs and improve performance of niagara memset/bzero.
...
* sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
loop to 256 bytes instead of 64 bytes and fix test signedness.
2012-03-28 21:59:43 -07:00
David S. Miller
18c9d62b9c
Make sparc's -fPIC addition to ASFLAGS-.os more robust.
...
* sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
* sysdeps/sparc/sparc32/Makefile: rather than here...
* sysdeps/sparc/sparc64/Makefile: and here.
2012-03-28 14:25:42 -07:00
Andreas Jaeger
51d8bb8f3b
Regenerate configure files
2012-03-28 09:37:58 +02:00
David S. Miller
39197fb03f
Fix sparc64/elf merge
...
* sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
have-as-vis3 check.
2012-03-28 09:29:20 +02:00
Andreas Jaeger
8cd23080c4
Move sysdeps/sparc/{,sparc32,sparc64}/elf files
...
* sysdeps/sparc/elf/configure.in: Moved to ...
* sysdeps/sparc/configure.in: ... here.
* sysdeps/sparc/elf/configure: Delete file.
* sysdeps/sparc/sparc32/elf/start.S: Moved to ...
* sysdeps/sparc/sparc32/start.S: ... here.
* sysdeps/sparc/sparc64/elf/start.S: Moved to ...
* sysdeps/sparc/sparc64/start.S: ... here.
* sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
* sysdeps/sparc/sparc32/Makefile: ... this.
* sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
* sysdeps/sparc/sparc64/Makefile: ... this.
2012-03-28 09:26:30 +02:00
David S. Miller
4c42a0c1d5
Update sparc ULPs for recently added tests and bug fixes.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-03-23 11:57:53 -07:00
David S. Miller
6f4db457f8
Update sparc ULPs for recently added tests.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-03-21 14:20:46 -07:00
H.J. Lu
eb96ffb07d
Move stdio-common/_itoa.h to sysdeps/generic
2012-03-20 16:00:23 -07:00
David S. Miller
e1497744f0
Update sparc ULPs for newly added tests.
...
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-03-19 15:46:15 -07:00
David S. Miller
5df98260fe
Fix sparc build after math_private.h cleanups.
...
* sysdeps/sparc/fpu/fenv_private.h: New file.
* sysdeps/sparc/fpu/math_private.h: Use it.
(libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
Remove.
(libc_feholdexcept_setround, libc_feholdexcept_setroundf,
(libc_feholdexcept_setroundl): Remove.
(libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
Remove.
(libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
(libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
2012-03-19 15:12:50 -07:00