graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
authorRichard Biener <rguenther@suse.de>
Fri, 30 Jun 2017 09:49:44 +0000 (09:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 30 Jun 2017 09:49:44 +0000 (09:49 +0000)
2017-06-30  Richard Biener  <rguenther@suse.de>

* graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.

From-SVN: r249834

gcc/ChangeLog
gcc/graph.c

index 5401bdab0f42a346b0d31f8e94583ab40d8d2093..f4c435f70a2b1ce6f18f7ae68eb70321853f002c 100644 (file)
@@ -1,3 +1,7 @@
+2017-06-30  Richard Biener  <rguenther@suse.de>
+
+       * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
+
 2017-06-30  Martin Liska  <mliska@suse.cz>
 
        PR sanitizer/81021
index 2197a7e32af902eb7c460728143703b8eb8793d0..d953fea0f5665e172ad73daecd7f541d38da7b12 100644 (file)
@@ -136,13 +136,13 @@ draw_cfg_node_succ_edges (pretty_printer *pp, int funcdef_no, basic_block bb)
 
       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");