Patchwork [5/5] Fix typo.

login
register
mail settings
Submitter Sebastian Pop
Date May 24, 2011, 6:51 p.m.
Message ID <1306263072-5821-6-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/97198/
State New
Headers show

Comments

Sebastian Pop - May 24, 2011, 6:51 p.m.
2011-05-24  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-opencl-codegen.c (opencl_print_local_vars): Fix typo.
---
 gcc/ChangeLog.graphite        |    4 ++++
 gcc/graphite-opencl-codegen.c |    6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

Patch

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 9f71fe8..a4130b9 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,9 @@ 
 2011-05-24  Sebastian Pop  <sebastian.pop@amd.com>
 
+	* graphite-opencl-codegen.c (opencl_print_local_vars): Fix typo.
+
+2011-05-24  Sebastian Pop  <sebastian.pop@amd.com>
+
 	* graphite-dependences.c (graphite_outer_subscript_bound): Remove
 	memory leaks, add one more assert.
 
diff --git a/gcc/graphite-opencl-codegen.c b/gcc/graphite-opencl-codegen.c
index 891fef0..e2eea2e 100644
--- a/gcc/graphite-opencl-codegen.c
+++ b/gcc/graphite-opencl-codegen.c
@@ -682,7 +682,7 @@  opencl_perfect_nested_to_kernel (opencl_main code_gen, struct clast_for *f,
    innermost iterators to append respectively.  */
 
 static void
-opencl_print_local_vars (const char *fist, const char *last,
+opencl_print_local_vars (const char *first, const char *last,
 			 const char *type, opencl_main code_gen)
 {
   char **names = cloog_names_scattering (code_gen->root_names);
@@ -693,7 +693,7 @@  opencl_print_local_vars (const char *fist, const char *last,
     {
       const char *tmp = names[i];
 
-      if (opencl_cmp_scat (fist, tmp) <= 0
+      if (opencl_cmp_scat (first, tmp) <= 0
 	  && opencl_cmp_scat (last, tmp) >= 0)
 	{
 	  const char **slot =
@@ -703,7 +703,7 @@  opencl_print_local_vars (const char *fist, const char *last,
 	  continue;
 	}
 
-      if (opencl_cmp_scat (fist, tmp) > 0)
+      if (opencl_cmp_scat (first, tmp) > 0)
 	continue;
 
       opencl_append_string_to_body (type, code_gen);