libtcc1: Make float stubs weak.
* lib/libtcc1.c (__floatundidf, __floatundixf, __fixunsxfdi, __fixxfdi, __fixsfdi, __fixunsdfdi, __fixunsdfsi, __floatdisf, __floatdidf): Add __attribute__ ((weak)).
This commit is contained in:
parent
1e102e1d46
commit
d9226ca678
|
@ -176,6 +176,7 @@ __ashrdi3 (long a, long ah, long b)
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
|
__attribute__((weak))
|
||||||
#if HAVE_LONG_LONG && HAVE_FLOAT
|
#if HAVE_LONG_LONG && HAVE_FLOAT
|
||||||
__floatundidf (unsigned long long a)
|
__floatundidf (unsigned long long a)
|
||||||
#else
|
#else
|
||||||
|
@ -193,9 +194,11 @@ __floatundidf (unsigned long a)
|
||||||
|
|
||||||
#if HAVE_LONG_LONG && HAVE_FLOAT
|
#if HAVE_LONG_LONG && HAVE_FLOAT
|
||||||
long double
|
long double
|
||||||
|
__attribute__((weak))
|
||||||
__floatundixf (unsigned long long a)
|
__floatundixf (unsigned long long a)
|
||||||
#else
|
#else
|
||||||
double
|
double
|
||||||
|
__attribute__((weak))
|
||||||
__floatundixf (unsigned long a)
|
__floatundixf (unsigned long a)
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
|
@ -213,6 +216,7 @@ unsigned long long
|
||||||
#else
|
#else
|
||||||
unsigned long
|
unsigned long
|
||||||
#endif
|
#endif
|
||||||
|
__attribute__((weak))
|
||||||
__fixunsxfdi (double a1)
|
__fixunsxfdi (double a1)
|
||||||
{
|
{
|
||||||
#if !__TINYC__
|
#if !__TINYC__
|
||||||
|
@ -231,6 +235,7 @@ int
|
||||||
#else // !__TINYCC__
|
#else // !__TINYCC__
|
||||||
long long
|
long long
|
||||||
#endif // !__TINYCC__
|
#endif // !__TINYCC__
|
||||||
|
__attribute__((weak))
|
||||||
__fixdfdi (double a1)
|
__fixdfdi (double a1)
|
||||||
{
|
{
|
||||||
#if !__TINYC__
|
#if !__TINYC__
|
||||||
|
@ -244,11 +249,11 @@ __fixdfdi (double a1)
|
||||||
|
|
||||||
#if HAVE_LONG_LONG
|
#if HAVE_LONG_LONG
|
||||||
unsigned long long
|
unsigned long long
|
||||||
__fixxfdi (double a1)
|
|
||||||
#else
|
#else
|
||||||
unsigned long
|
unsigned long
|
||||||
__fixxfdi (double a1)
|
|
||||||
#endif
|
#endif
|
||||||
|
__attribute__((weak))
|
||||||
|
__fixxfdi (double a1)
|
||||||
{
|
{
|
||||||
#if !__TINYC__
|
#if !__TINYC__
|
||||||
static int stub = 0;
|
static int stub = 0;
|
||||||
|
@ -264,6 +269,7 @@ long long
|
||||||
#else
|
#else
|
||||||
long
|
long
|
||||||
#endif
|
#endif
|
||||||
|
__attribute__((weak))
|
||||||
__fixsfdi (double a1)
|
__fixsfdi (double a1)
|
||||||
{
|
{
|
||||||
#if !__TINYC__
|
#if !__TINYC__
|
||||||
|
@ -276,6 +282,7 @@ __fixsfdi (double a1)
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
|
__attribute__((weak))
|
||||||
__fixunsdfdi (double num, double den)
|
__fixunsdfdi (double num, double den)
|
||||||
{
|
{
|
||||||
#if !__TINYC__
|
#if !__TINYC__
|
||||||
|
@ -288,6 +295,7 @@ __fixunsdfdi (double num, double den)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
__attribute__((weak))
|
||||||
__fixunsdfsi (int a, int b)
|
__fixunsdfsi (int a, int b)
|
||||||
{
|
{
|
||||||
#if !__TINYC__
|
#if !__TINYC__
|
||||||
|
@ -301,6 +309,7 @@ __fixunsdfsi (int a, int b)
|
||||||
|
|
||||||
#if __arm__
|
#if __arm__
|
||||||
int
|
int
|
||||||
|
__attribute__((weak))
|
||||||
__floatdisf (int a, int b)
|
__floatdisf (int a, int b)
|
||||||
{
|
{
|
||||||
#if !__TINYC__
|
#if !__TINYC__
|
||||||
|
@ -313,6 +322,7 @@ __floatdisf (int a, int b)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
__attribute__((weak))
|
||||||
__floatdidf (int a, int b)
|
__floatdidf (int a, int b)
|
||||||
{
|
{
|
||||||
#if !__TINYC__
|
#if !__TINYC__
|
||||||
|
|
Loading…
Reference in a new issue