summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2017-07-11 10:02:09 +0800
committerYang Rong <rong.r.yang@intel.com>2017-07-20 12:20:41 +0800
commitb62f814bfcbef10fc65bf171205ce49da16aad6b (patch)
tree2f0d6ca1f9568e508deec65538d29b119cda1361
parent8dbb9c6e4f6835ae2276e5dec973cec86b849959 (diff)
Fix GCC6 build bug
GCC6 refine the c headers and need to add the needed function header, like the abs in math.h. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--backend/src/backend/gen_insn_selection_optimize.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/src/backend/gen_insn_selection_optimize.cpp b/backend/src/backend/gen_insn_selection_optimize.cpp
index 2ab2a7f9..71333a40 100644
--- a/backend/src/backend/gen_insn_selection_optimize.cpp
+++ b/backend/src/backend/gen_insn_selection_optimize.cpp
@@ -9,6 +9,7 @@
#include <algorithm>
#include <climits>
#include <map>
+#include <math.h>
namespace gbe
{