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]

[PATCH] Fix dot-fn


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");


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