Comments
Patch
@@ -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.
@@ -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. */