aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSebastian Pop <sebastian.pop@amd.com>2010-09-30 21:19:58 +0000
committerSebastian Pop <spop@gcc.gnu.org>2010-09-30 21:19:58 +0000
commit0ba825679df27615521caeeed0edc1be2f81cdc0 (patch)
tree61522cff49b0391e3eb9cdf70cb6528b096deb41 /gcc
parent69ac2bb6d54037525026b8db372fdca31e5f40bf (diff)
downloadgcc-0ba825679df27615521caeeed0edc1be2f81cdc0.zip
gcc-0ba825679df27615521caeeed0edc1be2f81cdc0.tar.gz
gcc-0ba825679df27615521caeeed0edc1be2f81cdc0.tar.bz2
Fix pretty printers.
2010-09-09 Sebastian Pop <sebastian.pop@amd.com> * graphite-poly.c (print_pbb_body): Add missing closing parenthesis. (print_scop_header): Removed. Inlined in the only call place... (print_scop): ... here. From-SVN: r164798
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ChangeLog.graphite6
-rw-r--r--gcc/graphite-poly.c36
3 files changed, 27 insertions, 21 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8bb7675..8ae720a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
+ * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
+ (print_scop_header): Removed. Inlined in the only call place...
+ (print_scop): ... here.
+
+2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
+
* graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 6a98c8c..99d4204 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,11 @@
2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
+ * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
+ (print_scop_header): Removed. Inlined in the only call place...
+ (print_scop): ... here.
+
+2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
+
* graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
2010-09-02 Vladimir Kargov <kargov@gmail.com>
diff --git a/gcc/graphite-poly.c b/gcc/graphite-poly.c
index 96a0a70..46f1971 100644
--- a/gcc/graphite-poly.c
+++ b/gcc/graphite-poly.c
@@ -1249,13 +1249,16 @@ print_pbb_body (FILE *file, poly_bb_p pbb, int verbosity,
fprintf (file, "# Body (\n");
if (!statement_body_provided)
- {
- if (verbosity > 0)
- fprintf (file, "# Statement body is not provided\n");
+ {
+ if (verbosity > 0)
+ fprintf (file, "# Statement body is not provided\n");
- fprintf (file, "0\n");
- return;
- }
+ fprintf (file, "0\n");
+
+ if (verbosity > 1)
+ fprintf (file, "#)\n");
+ return;
+ }
if (verbosity > 0)
fprintf (file, "# Statement body is provided\n");
@@ -1394,12 +1397,14 @@ print_scop_context (FILE *file, scop_p scop, int verbosity)
fprintf (file, "# )\n");
}
-/* Print to FILE the SCOP header: context, parameters, and statements
- number. */
+/* Print to FILE the SCOP, at some VERBOSITY level. */
-static void
-print_scop_header (FILE *file, scop_p scop, int verbosity)
+void
+print_scop (FILE *file, scop_p scop, int verbosity)
{
+ int i;
+ poly_bb_p pbb;
+
fprintf (file, "SCoP 1\n#(\n");
fprintf (file, "# Language\nGimple\n");
openscop_print_scop_context (file, scop, verbosity);
@@ -1409,17 +1414,6 @@ print_scop_header (FILE *file, scop_p scop, int verbosity)
fprintf (file, "# Number of statements\n");
fprintf (file, "%d\n",VEC_length (poly_bb_p, SCOP_BBS (scop)));
-}
-
-/* Print to FILE the SCOP, at some VERBOSITY level. */
-
-void
-print_scop (FILE *file, scop_p scop, int verbosity)
-{
- int i;
- poly_bb_p pbb;
-
- print_scop_header (file, scop, verbosity);
FOR_EACH_VEC_ELT (poly_bb_p, SCOP_BBS (scop), i, pbb)
print_pbb (file, pbb, verbosity);