1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

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.
This commit is contained in:
David S. Miller
2012-04-26 02:50:20 -07:00
parent cfa1f3e865
commit 33f244f40b
15 changed files with 103 additions and 0 deletions

View File

@@ -1,3 +1,21 @@
2012-04-26 David S. Miller <davem@davemloft.net>
* 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-25 David S. Miller <davem@davemloft.net> 2012-04-25 David S. Miller <davem@davemloft.net>
* sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get

View File

@@ -1,11 +1,18 @@
#include <sparc-ifunc.h> #include <sparc-ifunc.h>
#include <math_ldbl_opt.h>
SPARC_ASM_VIS3_IFUNC(ceil) SPARC_ASM_VIS3_IFUNC(ceil)
weak_alias (__ceil, ceil) weak_alias (__ceil, ceil)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
compat_symbol (libm, __ceil, ceill, GLIBC_2_0)
#endif
# undef weak_alias # undef weak_alias
# define weak_alias(a, b) # define weak_alias(a, b)
# undef compat_symbol
# define compat_symbol(a, b, c, d)
#define __ceil __ceil_generic #define __ceil __ceil_generic

View File

@@ -1,11 +1,18 @@
#include <sparc-ifunc.h> #include <sparc-ifunc.h>
#include <math_ldbl_opt.h>
SPARC_ASM_VIS3_IFUNC(floor) SPARC_ASM_VIS3_IFUNC(floor)
weak_alias (__floor, floor) weak_alias (__floor, floor)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
compat_symbol (libm, __floor, floorl, GLIBC_2_0)
#endif
# undef weak_alias # undef weak_alias
# define weak_alias(a, b) # define weak_alias(a, b)
# undef compat_symbol
# define compat_symbol(a, b, c, d)
#define __floor __floor_generic #define __floor __floor_generic

View File

@@ -1,11 +1,18 @@
#include <sparc-ifunc.h> #include <sparc-ifunc.h>
#include <math_ldbl_opt.h>
SPARC_ASM_VIS3_IFUNC(fmax) SPARC_ASM_VIS3_IFUNC(fmax)
weak_alias (__fmax, fmax) weak_alias (__fmax, fmax)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
compat_symbol (libm, __fmax, fmaxl, GLIBC_2_1);
#endif
# undef weak_alias # undef weak_alias
# define weak_alias(a, b) # define weak_alias(a, b)
# undef compat_symbol
# define compat_symbol(a, b, c, d)
#define __fmax __fmax_generic #define __fmax __fmax_generic

View File

@@ -1,11 +1,18 @@
#include <sparc-ifunc.h> #include <sparc-ifunc.h>
#include <math_ldbl_opt.h>
SPARC_ASM_VIS3_IFUNC(fmin) SPARC_ASM_VIS3_IFUNC(fmin)
weak_alias (__fmin, fmin) weak_alias (__fmin, fmin)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
compat_symbol (libm, __fmin, fminl, GLIBC_2_1);
#endif
# undef weak_alias # undef weak_alias
# define weak_alias(a, b) # define weak_alias(a, b)
# undef compat_symbol
# define compat_symbol(a, b, c, d)
#define __fmin __fmin_generic #define __fmin __fmin_generic

View File

@@ -1,4 +1,5 @@
#include <sparc-ifunc.h> #include <sparc-ifunc.h>
#include <math_ldbl_opt.h>
SPARC_ASM_VIS3_IFUNC(llrint) SPARC_ASM_VIS3_IFUNC(llrint)
@@ -7,10 +8,16 @@ weak_alias (__llrint, llrint)
strong_alias (__llrint, __lllrint) strong_alias (__llrint, __lllrint)
weak_alias (__lllrint, lllrint) weak_alias (__lllrint, lllrint)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
compat_symbol (libm, __llrint, llrintl, GLIBC_2_1)
#endif
# undef weak_alias # undef weak_alias
# define weak_alias(a, b) # define weak_alias(a, b)
# undef strong_alias # undef strong_alias
# define strong_alias(a, b) # define strong_alias(a, b)
# undef compat_symbol
# define compat_symbol(a, b, c, d)
#define __llrint __llrint_generic #define __llrint __llrint_generic

View File

@@ -1,11 +1,18 @@
#include <sparc-ifunc.h> #include <sparc-ifunc.h>
#include <math_ldbl_opt.h>
SPARC_ASM_VIS3_IFUNC(rint) SPARC_ASM_VIS3_IFUNC(rint)
weak_alias (__rint, rint) weak_alias (__rint, rint)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
compat_symbol (libm, __rint, rintl, GLIBC_2_0)
#endif
# undef weak_alias # undef weak_alias
# define weak_alias(a, b) # define weak_alias(a, b)
# undef compat_symbol
# define compat_symbol(a, b, c, d)
#define __rint __rint_generic #define __rint __rint_generic

View File

@@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h>
/* Since changing the rounding mode is extremely expensive, we /* Since changing the rounding mode is extremely expensive, we
try to round up using a method that is rounding mode try to round up using a method that is rounding mode
@@ -85,3 +86,7 @@ ENTRY (__ceil)
for %f0, SIGN_BIT, %f0 for %f0, SIGN_BIT, %f0
END (__ceil) END (__ceil)
weak_alias (__ceil, ceil) weak_alias (__ceil, ceil)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
compat_symbol (libm, __ceil, ceill, GLIBC_2_0)
#endif

View File

@@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h>
/* Since changing the rounding mode is extremely expensive, we /* Since changing the rounding mode is extremely expensive, we
try to round up using a method that is rounding mode try to round up using a method that is rounding mode
@@ -85,3 +86,7 @@ ENTRY (__floor)
for %f0, SIGN_BIT, %f0 for %f0, SIGN_BIT, %f0
END (__floor) END (__floor)
weak_alias (__floor, floor) weak_alias (__floor, floor)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
compat_symbol (libm, __floor, floorl, GLIBC_2_0)
#endif

View File

@@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h>
#define SIGN_BIT %f12 /* -0.0 */ #define SIGN_BIT %f12 /* -0.0 */
@@ -38,3 +39,7 @@ ENTRY (__fmax)
fandnot2 %f0, %f4, %f0 fandnot2 %f0, %f4, %f0
END (__fmax) END (__fmax)
weak_alias (__fmax, fmax) weak_alias (__fmax, fmax)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
compat_symbol (libm, __fmax, fmaxl, GLIBC_2_1);
#endif

View File

@@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h>
#define SIGN_BIT %f12 /* -0.0 */ #define SIGN_BIT %f12 /* -0.0 */
@@ -38,3 +39,7 @@ ENTRY (__fmin)
for %f0, %f4, %f0 for %f0, %f4, %f0
END (__fmin) END (__fmin)
weak_alias (__fmin, fmin) weak_alias (__fmin, fmin)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
compat_symbol (libm, __fmin, fminl, GLIBC_2_1);
#endif

View File

@@ -17,6 +17,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h>
ENTRY (__isnan) ENTRY (__isnan)
sethi %hi(0x7ff00000), %g1 sethi %hi(0x7ff00000), %g1
@@ -30,3 +31,10 @@ ENTRY (__isnan)
END (__isnan) END (__isnan)
hidden_def (__isnan) hidden_def (__isnan)
weak_alias (__isnan, isnan) weak_alias (__isnan, isnan)
#ifndef IS_IN_libm
# if LONG_DOUBLE_COMPAT(libc, GLIBC_2_0)
compat_symbol (libc, __isnan, __isnanl, GLIBC_2_0);
compat_symbol (libc, isnan, isnanl, GLIBC_2_0);
# endif
#endif

View File

@@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h>
/* We pop constants into the FPU registers using the incoming /* We pop constants into the FPU registers using the incoming
argument stack slots, since this avoid having to use any PIC argument stack slots, since this avoid having to use any PIC
@@ -65,3 +66,7 @@ ENTRY (__llrint)
ldd [%sp + 72], %o0 ldd [%sp + 72], %o0
END (__llrint) END (__llrint)
weak_alias (__llrint, llrint) weak_alias (__llrint, llrint)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
compat_symbol (libm, __llrint, llrintl, GLIBC_2_1)
#endif

View File

@@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h>
/* We pop constants into the FPU registers using the incoming /* We pop constants into the FPU registers using the incoming
argument stack slots, since this avoid having to use any PIC argument stack slots, since this avoid having to use any PIC
@@ -65,3 +66,7 @@ ENTRY (__lrint)
ld [%sp + 72], %o0 ld [%sp + 72], %o0
END (__lrint) END (__lrint)
weak_alias (__lrint, lrint) weak_alias (__lrint, lrint)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
compat_symbol (libm, __lrint, lrintl, GLIBC_2_1)
#endif

View File

@@ -18,6 +18,7 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <sysdep.h> #include <sysdep.h>
#include <math_ldbl_opt.h>
/* We pop constants into the FPU registers using the incoming /* We pop constants into the FPU registers using the incoming
argument stack slots, since this avoid having to use any PIC argument stack slots, since this avoid having to use any PIC
@@ -62,3 +63,7 @@ ENTRY (__rint)
for %f0, SIGN_BIT, %f0 for %f0, SIGN_BIT, %f0
END (__rint) END (__rint)
weak_alias (__rint, rint) weak_alias (__rint, rint)
#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_0)
compat_symbol (libm, __rint, rintl, GLIBC_2_0)
#endif