[PATCH v2] Make lto-dump dump callgraph in DOT format

Giuliano Belinassi giuliano.belinassi@usp.br
Tue Jul 2 12:36:00 GMT 2019


This patch makes lto-dump the symtab callgraph in graphviz DOT format.

Previously, the suggested patch had some minor and checkstyle issues
that were fixed in this version.


    gcc/ChangeLog
    2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>

            * cgraph.c (dump_graphviz): New function
            * cgraph.h (dump_graphviz): New function
            * symtab.c (dump_graphviz): New function

    gcc/lto/ChangeLog
    2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>

            * lang.opt (flag_dump_callgraph): New flag
            * lto-dump.c (dump_symtab_graphviz): New function
            * lto-dump.c (dump_tool_help): New option
            * lto-dump.c (lto_main): New option
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callgraph-lto-dump-v2.patch
Type: text/x-diff
Size: 5733 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190702/d9161240/attachment.bin>


More information about the Gcc-patches mailing list