This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[graphite] disable debugging while printing dot graph
- From: "Sebastian Pop" <sebpop at gmail dot com>
- To: "GCC Patches" <gcc-patches at gcc dot gnu dot org>, "Tobias Grosser" <grosser at fim dot uni-passau dot de>
- Date: Tue, 29 Jan 2008 19:50:58 -0600
- Subject: [graphite] disable debugging while printing dot graph
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. */