From 7088e2b0e8c334ca346f88cc2b143d9db2c97fbf Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Fri, 13 Mar 2015 09:45:48 +0000 Subject: [PATCH] graph.c (print_graph_cfg): Make function names visible and append parenthesis to it. 2015-03-13 Thomas Preud'homme 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 | 6 ++++++ gcc/graph.c | 7 ++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3f24ed8d569..eb5a2d9fc8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-03-13 Thomas Preud'homme + + * 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 PR middle-end/44563 diff --git a/gcc/graph.c b/gcc/graph.c index a1eb24c49cc..5fb0d781bc2 100644 --- a/gcc/graph.c +++ b/gcc/graph.c @@ -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);