graph.c (print_graph_cfg): Make function names visible and append parenthesis to it.
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 13 Mar 2015 09:45:48 +0000 (09:45 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Fri, 13 Mar 2015 09:45:48 +0000 (09:45 +0000)
2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>

   gcc/
    * graph.c (print_graph_cfg): Make function names visible and append
    parenthesis to it.  Also make groups of basic blocks belonging to the
    same function visible.

From-SVN: r221412

gcc/ChangeLog
gcc/graph.c

index 3f24ed8d5690db71cca0cacbc73c094ee850ebe1..eb5a2d9fc8d29b5f233d3a84ac4cbe22b1cf4a59 100644 (file)
@@ -1,3 +1,9 @@
+2015-03-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * graph.c (print_graph_cfg): Make function names visible and append
+       parenthesis to it.  Also make groups of basic blocks belonging to the
+       same function visible.
+
 2015-03-12  Richard Biener  <rguenther@suse.de>
 
        PR middle-end/44563
index a1eb24c49ccb99faba3201a9068cd3dceaf9d194..5fb0d781bc211532410b51e796865afa9e59ea3e 100644 (file)
@@ -292,9 +292,10 @@ print_graph_cfg (const char *base, struct function *fun)
   pretty_printer graph_slim_pp;
   graph_slim_pp.buffer->stream = fp;
   pretty_printer *const pp = &graph_slim_pp;
-  pp_printf (pp, "subgraph \"%s\" {\n"
-                "\tcolor=\"black\";\n"
-                "\tlabel=\"%s\";\n",
+  pp_printf (pp, "subgraph \"cluster_%s\" {\n"
+                "\tstyle=\"dashed\";\n"
+                "\tcolor=\"black\";\n"
+                "\tlabel=\"%s ()\";\n",
                 funcname, funcname);
   draw_cfg_nodes (pp, fun);
   draw_cfg_edges (pp, fun);