Patchwork [06/44] Remove spaces from matrix lines.

login
register
mail settings
Submitter Sebastian Pop
Date Sept. 30, 2010, 6 p.m.
Message ID <1285869696-10915-7-git-send-email-sebpop@gmail.com>
Download mbox | patch
Permalink /patch/66196/
State New
Headers show

Comments

Sebastian Pop - Sept. 30, 2010, 6 p.m.
From: spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>

2010-08-11  Riyadh Baghdadi <baghdadi.mr@gmail.com>

	* graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
	from matrix lines.
	* graphite-poly.c (openscop_print_scattering_function_1): Same.
	(print_scattering_function_1): Same.
	(openscop_print_pbb_domain): Same.
	(openscop_print_scop_context): Same.
	(print_scop_context): Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/graphite@163172 138bc75d-0d04-0410-961f-82ee72b054a4
---
 gcc/ChangeLog             |   10 ++++++++++
 gcc/ChangeLog.graphite    |   10 ++++++++++
 gcc/graphite-cloog-util.c |    6 +++++-
 gcc/graphite-poly.c       |   10 +++++-----
 4 files changed, 30 insertions(+), 6 deletions(-)

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 766517e..6219c2b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,15 @@ 
 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
+	* graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
+	from matrix lines.
+	* graphite-poly.c (openscop_print_scattering_function_1): Same.
+	(print_scattering_function_1): Same.
+	(openscop_print_pbb_domain): Same.
+	(openscop_print_scop_context): Same.
+	(print_scop_context): Same.
+
+2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
+
 	* graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
 	(openscop_print_pdr_polyhedron): Print pph.
 
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index c1c5842..75252e4 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,15 @@ 
 2010-08-11  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
+	* graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
+	from matrix lines.
+	* graphite-poly.c (openscop_print_scattering_function_1): Same.
+	(print_scattering_function_1): Same.
+	(openscop_print_pbb_domain): Same.
+	(openscop_print_scop_context): Same.
+	(print_scop_context): Same.
+
+2010-08-11  Riyadh Baghdadi <baghdadi.mr@gmail.com>
+
 	* graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
 	(openscop_print_pdr_polyhedron): Print pph.
 
diff --git a/gcc/graphite-cloog-util.c b/gcc/graphite-cloog-util.c
index 0bb5d74..949e8d4 100644
--- a/gcc/graphite-cloog-util.c
+++ b/gcc/graphite-cloog-util.c
@@ -315,7 +315,11 @@  openscop_print_cloog_matrix (FILE *file, CloogMatrix *mat,
   for (i = 0; i < cloog_matrix_nrows (mat); i++)
     {
       for (j = 0; j < cloog_matrix_ncolumns (mat); j++)
-	fprintf (file, "%6ld ", mpz_get_si (mat->p[i][j]));
+        if (j == 0)
+	  fprintf (file, "%ld ", mpz_get_si (mat->p[i][j]));
+        else
+	  fprintf (file, "%6ld ", mpz_get_si (mat->p[i][j]));
+
       fprintf (file, "\n");
     }
 }
diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c
index 0b1b5d8..878ef60 100644
--- a/gcc/graphite-poly.c
+++ b/gcc/graphite-poly.c
@@ -255,7 +255,7 @@  openscop_print_scattering_function_1 (FILE *file, poly_bb_p pbb, int verbosity)
   if (verbosity > 0)
     {
       fprintf (file, "# scattering bb_%d (\n", pbb_index (pbb));
-      fprintf (file, "#  eq");
+      fprintf (file, "#eq");
 
       for (i = 0; i < pbb_nb_scattering_transform (pbb); i++)
 	fprintf (file, "     s%d", (int) i);
@@ -301,7 +301,7 @@  print_scattering_function_1 (FILE *file, poly_bb_p pbb, int verbosity)
   if (verbosity > 0)
     {
       fprintf (file, "# scattering bb_%d (\n", pbb_index (pbb));
-      fprintf (file, "#  eq");
+      fprintf (file, "#eq");
 
       for (i = 0; i < pbb_nb_scattering_transform (pbb); i++)
 	fprintf (file, "     s%d", (int) i);
@@ -731,7 +731,7 @@  openscop_print_pbb_domain (FILE *file, poly_bb_p pbb, int verbosity)
   if (verbosity > 0)
     {
       fprintf (file, "\n# Iteration domain of bb_%d (\n", GBB_BB (gbb)->index);
-      fprintf (file, "#  eq");
+      fprintf (file, "#eq");
 
       for (i = 0; i < pbb_dim_iter_domain (pbb); i++)
 	fprintf (file, "     i%d", (int) i);
@@ -1025,7 +1025,7 @@  openscop_print_scop_context (FILE *file, scop_p scop, int verbosity)
   if (verbosity > 0)
     {
       fprintf (file, "# Context (\n");
-      fprintf (file, "#  eq");
+      fprintf (file, "#eq");
 
       for (i = 0; i < scop_nb_params (scop); i++)
 	fprintf (file, "     p%d", (int) i);
@@ -1054,7 +1054,7 @@  print_scop_context (FILE *file, scop_p scop, int verbosity)
   if (verbosity > 0)
     {
       fprintf (file, "# Context (\n");
-      fprintf (file, "#  eq");
+      fprintf (file, "#eq");
 
       for (i = 0; i < scop_nb_params (scop); i++)
 	fprintf (file, "     p%d", (int) i);