[graphite] disable debugging while printing dot graph
Sebastian Pop
sebpop@gmail.com
Wed Jan 30 11:20:00 GMT 2008
While we print the graph in dot_all_scops_1, we call
basic_block_simple_for_scop_p which prints debug output which mixes
with the graph output. Disable it by setting dump_flags to 0 until
we finish the function call.
2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
* graphite.c (dot_all_scops_1): Disable debug output while printing graph.
--- gcc/graphite.c
+++ gcc/graphite.c
@@ -197,6 +197,10 @@ dot_all_scops_1 (FILE *file)
const char* color;
int i;
+ /* Disable debugging while printing graph. */
+ int tmp_dump_flags = dump_flags;
+ dump_flags = 0;
+
fprintf (file, "digraph all {\n");
FOR_ALL_BB (bb)
@@ -259,6 +263,8 @@ dot_all_scops_1 (FILE *file)
fprintf (file, "%d [shape=box];\n", scop->exit->index);
fputs ("}\n\n", file);
+
+ dump_flags = tmp_dump_flags;
}
/* Display all SCoPs using dotty. */
More information about the Gcc-patches
mailing list