[patch] Rework RTL CFG graph dumping to dump DOT format

Steven Bosscher stevenb.gcc@gmail.com
Fri Nov 23 09:47:00 GMT 2012


Hello,

The graph.[ch] code to dump the CFG for viewing with VCG is quite
broken and hasn't been updated to follow the advances in the CFG
infrastructure.

The attached patch is the first in a series of patches I have planned
to update the CFG-as-graph dumping code to dump GraphViz DOT input
instead. The attached archive is an example input/output.

There's still quite a lot of work to be done:
- use pretty-print in the slim RTL dumping
- move the escaped-string printing into pretty-print
- make the basic block content dumping a cfghook
- make these dumps work for GIMPLE also

For the moment, this is a good starting point.

Obviously there are no changes in code generation due to this patch,
so IMHO this patch (and the rest of the series) should be safe for
stage3. Hopefully everyone else agrees :-)

Bootstrapped&tested on powerpc64-unknown-linux-gnu. OK for trunk?

Ciao!
Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.tar.gz
Type: application/x-gzip
Size: 75309 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121123/74fd0211/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cfg_graph_dot.diff
Type: application/octet-stream
Size: 35250 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121123/74fd0211/attachment.obj>


More information about the Gcc-patches mailing list