This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]