This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 5/7] Move code out of ifdef HAVE_cloog section.
- From: Sebastian Pop <sebpop at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: gcc-graphite at googlegroups dot com, amonakov at ispras dot ru, kayrick at ispras dot ru, Sebastian Pop <sebpop at gmail dot com>
- Date: Mon, 27 Dec 2010 23:58:00 -0600
- Subject: [PATCH 5/7] Move code out of ifdef HAVE_cloog section.
- References: <1293515882-16339-1-git-send-email-sebpop@gmail.com>
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(-)
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. */
--
1.7.1