Workaround the __builtin_isnan() type error for clang 3.4.
Similar to clang 3.3, it seems that clang 3.4 declares an incompatible function prototypes for __builtin_isnan(). To workaround this issue, we should not declare the function prototype for __builtin_isnan(). Note: Though it may be good to fix this in clang type checker, like __builtin_nexttoward(), however it seems non-trivial since __builtin_isnsn() might be overloaded. We can revert this after we have fixed the clang builtin definition. Change-Id: I329b56225f3d229b0c141bb8414c4369f154efda
This commit is contained in:
@@ -528,10 +528,10 @@ double __builtin_fma(double, double, double) __NDK_FPABI_MATH__;
|
|||||||
double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
|
double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
|
||||||
int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
|
int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
|
||||||
/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */
|
/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */
|
||||||
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4)
|
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5)
|
||||||
int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
|
int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
|
||||||
#else
|
#else
|
||||||
/* clang < 3.4 has faulty prototype for __builtin_isnan */
|
/* clang < 3.5 has faulty prototype for __builtin_isnan */
|
||||||
#endif
|
#endif
|
||||||
double __builtin_lgamma(double) __NDK_FPABI_MATH__;
|
double __builtin_lgamma(double) __NDK_FPABI_MATH__;
|
||||||
long long __builtin_llrint(double) __NDK_FPABI_MATH__;
|
long long __builtin_llrint(double) __NDK_FPABI_MATH__;
|
||||||
|
|||||||
@@ -533,7 +533,7 @@ double __builtin_fma(double, double, double) __NDK_FPABI_MATH__;
|
|||||||
double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
|
double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
|
||||||
int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
|
int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
|
||||||
/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */
|
/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */
|
||||||
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4)
|
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5)
|
||||||
int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
|
int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
|
||||||
#else
|
#else
|
||||||
/* clang < 3.4 has faulty prototype for __builtin_isnan */
|
/* clang < 3.4 has faulty prototype for __builtin_isnan */
|
||||||
@@ -686,7 +686,7 @@ long double __builtin_modfl(long double, long double *) __NDK_FPABI_MATH__; /* f
|
|||||||
long double __builtin_nanl(const char *) __NDK_FPABI_MATH__ __pure2;
|
long double __builtin_nanl(const char *) __NDK_FPABI_MATH__ __pure2;
|
||||||
long double __builtin_nearbyintl(long double) __NDK_FPABI_MATH__;
|
long double __builtin_nearbyintl(long double) __NDK_FPABI_MATH__;
|
||||||
long double __builtin_nextafterl(long double, long double) __NDK_FPABI_MATH__;
|
long double __builtin_nextafterl(long double, long double) __NDK_FPABI_MATH__;
|
||||||
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4)
|
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5)
|
||||||
double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__;
|
double __builtin_nexttoward(double, long double) __NDK_FPABI_MATH__;
|
||||||
float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__;
|
float __builtin_nexttowardf(float, long double) __NDK_FPABI_MATH__;
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -523,10 +523,10 @@ double __builtin_fma(double, double, double) __NDK_FPABI_MATH__;
|
|||||||
double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
|
double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
|
||||||
int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
|
int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
|
||||||
/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */
|
/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */
|
||||||
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4)
|
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5)
|
||||||
int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
|
int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
|
||||||
#else
|
#else
|
||||||
/* clang < 3.4 has faulty prototype for __builtin_isnan */
|
/* clang < 3.5 has faulty prototype for __builtin_isnan */
|
||||||
#endif
|
#endif
|
||||||
double __builtin_lgamma(double) __NDK_FPABI_MATH__;
|
double __builtin_lgamma(double) __NDK_FPABI_MATH__;
|
||||||
long long __builtin_llrint(double) __NDK_FPABI_MATH__;
|
long long __builtin_llrint(double) __NDK_FPABI_MATH__;
|
||||||
|
|||||||
@@ -523,10 +523,10 @@ double __builtin_fma(double, double, double) __NDK_FPABI_MATH__;
|
|||||||
double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
|
double __builtin_hypot(double, double) __NDK_FPABI_MATH__;
|
||||||
int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
|
int __builtin_ilogb(double) __NDK_FPABI_MATH__ __pure2;
|
||||||
/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */
|
/* int __builtin_isinf(double) __NDK_FPABI_MATH__ __pure2; */
|
||||||
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4)
|
#if !defined(__clang__) || __clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 5)
|
||||||
int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
|
int __builtin_isnan(double) __NDK_FPABI_MATH__ __pure2;
|
||||||
#else
|
#else
|
||||||
/* clang < 3.4 has faulty prototype for __builtin_isnan */
|
/* clang < 3.5 has faulty prototype for __builtin_isnan */
|
||||||
#endif
|
#endif
|
||||||
double __builtin_lgamma(double) __NDK_FPABI_MATH__;
|
double __builtin_lgamma(double) __NDK_FPABI_MATH__;
|
||||||
long long __builtin_llrint(double) __NDK_FPABI_MATH__;
|
long long __builtin_llrint(double) __NDK_FPABI_MATH__;
|
||||||
|
|||||||
Reference in New Issue
Block a user