This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix dot-fn
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Jun 2017 11:48:54 +0200 (CEST)
- Subject: [PATCH] Fix dot-fn
- Authentication-results: sourceware.org; auth=none
Committed.
2017-06-30 Richard Biener <rguenther@suse.de>
* graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
Index: gcc/graph.c
===================================================================
--- gcc/graph.c (revision 249832)
+++ gcc/graph.c (working copy)
@@ -136,13 +136,13 @@ draw_cfg_node_succ_edges (pretty_printer
pp_printf (pp,
"\tfn_%d_basic_block_%d:s -> fn_%d_basic_block_%d:n "
- "[style=%s,color=%s,weight=%d,constraint=%s];\n",
+ "[style=%s,color=%s,weight=%d,constraint=%s",
funcdef_no, e->src->index,
funcdef_no, e->dest->index,
style, color, weight,
(e->flags & (EDGE_FAKE | EDGE_DFS_BACK)) ? "false" : "true");
if (e->probability.initialized_p ())
- pp_printf (pp, ", label=\"[%i%%]\"",
+ pp_printf (pp, ",label=\"[%i%%]\"",
e->probability.to_reg_br_prob_base ()
* 100 / REG_BR_PROB_BASE);
pp_printf (pp, "];\n");