[tree-ssa] Draw the CFG
Diego Novillo
dnovillo@redhat.com
Mon Apr 14 16:48:00 GMT 2003
On Sun, 2003-04-13 at 19:39, Pop Sébastian wrote:
> + void
> + draw_tree_cfg ()
> + {
> + FILE *dump_file;
> +
> + if (n_basic_blocks > 0)
> + {
> + dump_file = fopen ("tree_cfg.dot", "w");
> + if (dump_file)
> + {
> + tree_cfg2dot (dump_file);
> + fclose (dump_file);
> + system ("dotty tree_cfg.dot");
>
Hmm, no. I'm allergic to system(). Besides, what's wrong with
-fdump-tree-dot?
Diego.
More information about the Gcc-patches
mailing list