Added
Link Here
|
0 |
- |
1 |
--- sql/mysqld.cc.orig 2021-06-15 10:16:51 UTC |
|
|
2 |
+++ sql/mysqld.cc |
3 |
@@ -205,7 +205,7 @@ typedef fp_except fp_except_t; |
4 |
|
5 |
inline void setup_fpu() |
6 |
{ |
7 |
-#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT) |
8 |
+#if defined(__FreeBSD__) && defined(HAVE_IEEEFP_H) && !defined(HAVE_FEDISABLEEXCEPT) && defined(FP_X_INV) |
9 |
/* We can't handle floating point exceptions with threads, so disable |
10 |
this on freebsd |
11 |
Don't fall for overflow, underflow,divide-by-zero or loss of precision. |
12 |
@@ -218,7 +218,7 @@ inline void setup_fpu() |
13 |
fpsetmask(~(FP_X_INV | FP_X_OFL | FP_X_UFL | FP_X_DZ | |
14 |
FP_X_IMP)); |
15 |
#endif /* FP_X_DNML */ |
16 |
-#endif /* __FreeBSD__ && HAVE_IEEEFP_H && !HAVE_FEDISABLEEXCEPT */ |
17 |
+#endif /* __FreeBSD__ && HAVE_IEEEFP_H && !HAVE_FEDISABLEEXCEPT && FP_X_INV */ |
18 |
|
19 |
#ifdef HAVE_FEDISABLEEXCEPT |
20 |
fedisableexcept(FE_ALL_EXCEPT); |