public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Fix dot-fn
@ 2017-06-30  9:48 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2017-06-30  9:48 UTC (permalink / raw)
  To: gcc-patches


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-30  9:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-30  9:48 [PATCH] Fix dot-fn Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).