aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/boost/boost/consider-hardfp.patch
blob: 66808a69ddf12561c2f34404f80b3004c2c02bc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
When using soft-float, on ARM we should not expect the FE_* symbols

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Upstream-Status: Pending

Index: boost_1_60_0/boost/test/execution_monitor.hpp
===================================================================
--- boost_1_60_0.orig/boost/test/execution_monitor.hpp
+++ boost_1_60_0/boost/test/execution_monitor.hpp
@@ -484,7 +484,8 @@ enum masks {
     BOOST_FPE_UNDERFLOW = EM_UNDERFLOW|EM_DENORMAL,
 
     BOOST_FPE_ALL       = MCW_EM,
-#elif defined(BOOST_NO_FENV_H) || defined(BOOST_CLANG)
+#elif defined(BOOST_NO_FENV_H) || defined(BOOST_CLANG) \
+    || defined(__ARM_PCS)
     BOOST_FPE_ALL       = 1,
 #else
     BOOST_FPE_DIVBYZERO = FE_DIVBYZERO,