Fix GCC6 build bug

Submitted by Pan Xiuli on July 11, 2017, 2:02 a.m.

Details

Message ID 1499738529-19221-1-git-send-email-xiuli.pan@intel.com
State New
Headers show
Series "Fix GCC6 build bug" ( rev: 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Pan Xiuli July 11, 2017, 2:02 a.m.
From: Pan Xiuli <xiuli.pan@intel.com>

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>
---
 backend/src/backend/gen_insn_selection_optimize.cpp | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/backend/src/backend/gen_insn_selection_optimize.cpp b/backend/src/backend/gen_insn_selection_optimize.cpp
index 2ab2a7f..71333a4 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
 {

Comments

LGTM, pushed, thanks.

> -----Original Message-----

> From: Beignet [mailto:beignet-bounces@lists.freedesktop.org] On Behalf Of

> Xiuli Pan

> Sent: Tuesday, July 11, 2017 10:02

> To: beignet@lists.freedesktop.org

> Cc: Pan, Xiuli <xiuli.pan@intel.com>

> Subject: [Beignet] [PATCH] Fix GCC6 build bug

> 

> From: Pan Xiuli <xiuli.pan@intel.com>

> 

> 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>

> ---

>  backend/src/backend/gen_insn_selection_optimize.cpp | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/backend/src/backend/gen_insn_selection_optimize.cpp

> b/backend/src/backend/gen_insn_selection_optimize.cpp

> index 2ab2a7f..71333a4 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

>  {

> --

> 2.7.4

> 

> _______________________________________________

> Beignet mailing list

> Beignet@lists.freedesktop.org

> https://lists.freedesktop.org/mailman/listinfo/beignet