Patchwork [5/7] Move code out of ifdef HAVE_cloog section.

login
register
mail settings
Submitter Sebastian Pop
Date Dec. 28, 2010, 5:58 a.m.
Message ID <1293515882-16339-7-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/76816/
State New
Headers show

Comments

Sebastian Pop - Dec. 28, 2010, 5:58 a.m.
2010-12-27  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-opencl.c (h_context, h_cmd_queue, h_program): Moved
	out of ifdef HAVE_cloog section.
---
 gcc/ChangeLog.graphite |    5 +++++
 gcc/graphite-opencl.c  |   22 +++++++++-------------
 2 files changed, 14 insertions(+), 13 deletions(-)

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 198b1c1..ede7a35 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,10 @@ 
 2010-12-27  Sebastian Pop  <sebastian.pop@amd.com>
 
+	* graphite-opencl.c (h_context, h_cmd_queue, h_program): Moved
+	out of ifdef HAVE_cloog section.
+
+2010-12-27  Sebastian Pop  <sebastian.pop@amd.com>
+
 	* Makefile.in (graphite-opencl.o): Depends on
 	graphite-opencl-functions.def.
 	* graphite-opencl-functions.def: New.
diff --git a/gcc/graphite-opencl.c b/gcc/graphite-opencl.c
index e6af69d..9b4743e 100644
--- a/gcc/graphite-opencl.c
+++ b/gcc/graphite-opencl.c
@@ -74,6 +74,15 @@ 
 #include "hashtab.h"
 #include "tree.h"
 
+/* Variable, which holds OpenCL context.  */
+static GTY(()) tree h_context;
+
+/* Variable, which holds OpenCL command queue.  */
+static GTY(()) tree h_cmd_queue;
+
+/* Variable, which holds OpenCL program for current function.  */
+static GTY(()) tree h_program;
+
 #ifdef HAVE_cloog
 #include "cloog/cloog.h"
 #include "ppl_c.h"
@@ -308,19 +317,6 @@  static const char *opencl_function_names[] =
 
 #undef DEFOPENCLCODE
 
-#endif
-
-/* Variable, which holds OpenCL context.  */
-static GTY(()) tree h_context;
-
-/* Variable, which holds OpenCL command queue.  */
-static GTY(()) tree h_cmd_queue;
-
-/* Variable, which holds OpenCL program for current function.  */
-static GTY(()) tree h_program;
-
-#ifdef HAVE_cloog
-
 /* This vector holds opencl_data, which represents arrays.
    Arrays have constant sizes, so buffers for each of them can
    be created only once.  */